10 Jul HTML5 Headings
Headings are vital for any HTML document or web page. You need to use <h1> to <h6> tags to define heading on the web page. For HTML5 headings too, the top level heading is <h1> and the lowest one is <h6>.
If you want to create a search engine friendly website, then use the headings to index the structure the index the structure the web pages. Heading show a well-documents structure of your website. The users can easily navigate through your web page as it have proper higher as well as lower level headings, such as,
Here’s, how you can define the headings shown above,
1 2 3 4 5 6 7 8 9 10 |
<h1>Programming</h1> <h2>Java</h2> <h3>Java Interfaces</h3> <h3>Java Package</h3> <h3>Java Synchronization</h3> <h2>Ruby</h2> <h3>Ruby Features</h3> <h3>Ruby File Structure</h3> |
Note: The HTML <head> element is different from HTML headings. You can see the <head> element between the <html> tag and the <body> tag. It is a container for metadata.
No Comments