A heading in HTML is a way to create titles, subtitles and headlines for your text. There are six tags related to headings <h1> to <h6> which should be more than enough for any document you want to create. Coupled with CSS, you can have an unlimited amount of heading tags by using id's and classes (more on that later)..
<body> <h1>h1 Heading</h1> <h2>h2 Heading</h2> <h3>h3 Heading</h3> <h4>h4 Heading</h4> <h5>h5 Heading</h5> <h6>h6 Heading</h6> </body>
The HTML above will generate something similar to the below text. You can see that there is spacing between each header. Always remember you can style your headings later using the 'style' attribute, or using CSS.
h1 Heading
h2 Heading
h3 Heading
h4 Heading
h5 Heading
h6 Heading
Comments
Post new comment