HTML is a markup language that defines the structure of the content on a web page.
HTML consists of a series of elements, which you use to wrap different parts of the content to make it appear or act a certain way.
Users tend to scan quickly to find relevant content, often just reading the headings. If they don't exist, they'll just give up.
An unstructured web page.
Search engines indexing our web page consider the contents of headings as important keywords for influencing the page's search rankings.
Visually impaired people often use programs called screen readers to check the contents of a page.
Among the various techniques used, these programs provide an outline of the document by reading out the headings, allowing their users to find the information they need quickly.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>A pretty page</title> </head> <body> </body> </html>
Let's create an HTML page!
A semantic element clearly describes its meaning to both the browser and the developer.
Non-semantic elements like <div> and <span> tell us nothing about their content. In contrast, semantic elements like <nav>, <footer>, and <article> clearly define their content.
APIs are a major part of the HTML5 world and there are a number of them to explore, including: