Site icon TestingDocs.com

HTML5 Document Structure

Overview

In this tutorial, we will learn about HTML5 Document Structure. The
HTML5 Document begins with DOCTYPE declaration.

HTML5 Document

<!DOCTYPE html>
<html>
<head>
<meta charset=”UTF-8″>
<title>HTML 5 Tutorials- www.TestingDocs.com</title>
</head>
<body>
<header>Hero size Banner- Header Menu</header>
<nav>Navigation Bar</nav>
<article>
<section>

</section>
</article>
<aside>Sidebar</aside>
<footer>Copyright Information – Footer Links</footer>
</body>
</html>

 

DOCTYPE declaration

The <!DOCTYPE> is the first line of the HTML5 Document. It is used by the browser to understand the HTML version.

<!DOCTYPE html>

<meta charset=”UTF-8″> specified the Character encoding used in the document.

HTML5 Tags

<header> – The <header> tag represents the header of a section.

<article> – The <article> tag represents piece of content of the document, such as a blog post or news article.

<footer> – The <footer> tag represents a footer section. This may contain information about the website, copyright information, etc

The <nav> – The <nav> tag is intended for navigation hyperlinks, etc

HTML Tutorials

HTML Tutorials on this website:

https://www.testingdocs.com/html-tutorials/

More Information on HTML:

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference

Exit mobile version