Div, Header, Footer and Main
Different Divisions In HTML
Div:
- The Division can be done by <div> tag. Right now the page may look similar with or without using the div tag, but when we start CSS it will mean a lot.
- The <div> tag has its closing tag as </div>
- The div tag is used to make division of a page.
eg:
<div>
<p>Hi! this is division for example</p>
</div>
Header:
- The header division is to be done on head of the webpage.
- about, contact, main are the information are to be defined in a header tag.
- The header tag has its closing tag as </header>
eg:
<header>
<p> Hi!, This is Header division</p>
</header>
Footer:
Footer tag is same like header division tag.
copyright information and other information is to be defined in this section.
Footer tag has its closing section as </footer>
eg:
<footer>
<p>Hi! this is footer section</p>
</footer>
Main:
Main tag is also same as header tag.
All the main information of website is to be defined in this section.
Main content of the website is defined here.
Main tag has its closing tag as </main>
eg:
<main>
<p>Hi! This is main tag of webpage</p>
<p>All the main content will go here.</p>
</main>
Comments
Post a Comment