HTML Elements
HTML Headings
Syntax:
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
Output:
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
Paragraph Element
Syntax
<p> Your paragraph text goes here... </p>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Output:
Your paragraph text goes here...
This is a paragraph.
This is another paragraph
Preformatted Text
Syntax:<pre> My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
Output:
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
Horizontal Rules
The <hr> element is used to create a horizontal divider (a line) across the page. It is commonly used to separate sections of content.
Syntax:
<hr>Output:
Content above the horizontal line.
Content below the horizontal line.
Single Line Break
The <br> element inserts a line break. It is useful when you want text to continue on the next line without starting a new paragraph.
Syntax:
First line of text<br> Second line of textOutput:
Second line of text
HTML QUOTATION AND CITATION ELEMENTS
Blockquote Element
Syntax:<blockquote> Your quoted text goes here. </blockquote> Output:
"Knowledge is power."
Quotation Element
Syntax:<q>Your short quotation text goes here.</q>
Output:
Albert Einstein once said, Imagination is more important than knowledge.
Abbreviation Element
Syntax:<abbr title="Full Text Here">Abbreviation</abbr>
Output:
The WHO was founded in 1948.
Address Element
Syntax:<address> Written by John Doe.<br> Visit us at:<br> Example.com<br> Box 564, Disneyland<br> USA </address>
Output:
Visit us at:
Example.com
Box 564, Disneyland
USA
Citation Element
Syntax:<p><cite>Title of a Work</cite> by Author Name</p>
Output:
The Starry Night by Vincent van Gogh