When you first open an HTML5 document, the first thing you will notice is that there are many more semantic tags
used throughout the document. The most notable ones are:
1. <article>: Defines an article.
2. <aside>: Defines content alongside the main content.
3. <figure>: Defines related content, an example of use is photos or code listings.
4. <figcaption>: Defines the caption for your <figure> element.
5. <header>: Defines a header for the document or section.
6. <footer>: Defines a footer for the document or section.
7. <nav>: Defines a series of links used for navigation around the site.
8. <section>: Defines a section of content.
A simple example of how an HTML5 document may be laid out follows:
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<header>
<h1>Hello World</h1>
</header>
<div class="content">
</div>
<footer>
</footer>
</body>
</html>
Comments
Post a Comment