An page contains 3 main tags:
1. <header>
Tag
2. <main>
Tag
3. <footer>
Tag
<section>
For a section on page. <article>
For an article on page.<aside>
For content aside main content (ads).<div>
Tag:<div>
tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.<div>
tag is easily styled by using the class or id attribute.<html>
<body>
<div class="myDiv">
<h2>This is a heading in a div element</h2>
<p>This is some text in a div element.</p>
</div>
</body>
</html>
<div>
element.<span>
Tag:<span>
tag is an inline container used to mark up a part of a text, or a part of a document.<span>
tag is much like the <div>
element, but <div>
is a block-level element and <span>
is an inline element.