HTML Headings
From w3cyberlearnings
Contents |
HTML - Headings
HTML Headings are very important for HTML document.
HTML - Syntax Headings
<h1>Heading1</h1> <h2>Heading2</h2> <h3>Heading3</h3> <h4>Heading4</h4> <h5>Heading5</h5> <h6>Heading6</h6>
Note
- HTML Headings are not BOLD or BIG, there are headings.
- Do not use Headings for BOLD or BIG text.
- BOLD or BIG text is not heading, so when you need to use heading use Heading: i.e (h1,h2,h3...h6).
- Headings are always lowercase.
- Use Headings to show document structure.
- Use Headings start from the main heading to the less important. (h1 is the main heading... and h6 is less most important heading)
Example 1
<html> <head> <title>Heading Example</title> </head> <body> <h1>Welcome to the party</h1> <h2>Select Menu:</h2> <p> Apple, Banana, and Coconut drink. </p> <h3>Select Meal:</h3> <p> Hotdog, pizza, noodle. </p> </body> </html>
Output TRY-IT
Related Link
- HTML - Headings
- HTML - Paragraphs
- HTML - Line Break
- HTML - line