Publish in HTML Tutorial el 25/05/2025 14:40
The <p> element is one of the most fundamental and frequently used HTML elements. It represents a paragraph of text, creating a block-level container for textual content. Browsers automatically add some margin (usually 1em) before and after each <p> element to separate paragraphs visually.
Key characteristics of the <p> element:
Here's how a basic paragraph looks in HTML:
And here's how it renders:
This is a simple paragraph in HTML.
The simplest usage of the paragraph element:
Paragraphs can contain various inline elements for text formatting:
Paragraphs can be styled with CSS for better visual presentation:
JavaScript can be used to manipulate paragraph content dynamically:
JavaScript event listeners can make paragraphs interactive:
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...