Primary use of HTML is to structure a web page and its content.
Let's take an example: You are constructing a house. While constructing you will be deciding how many BHK you want, how many washroom you want, how many balconies you want, how many light bulb or fans you want, whether you want to have Kids study room or not, etc.
Same way while creating a web page, using HTML you can decide how many sections will be in Header, Left Bar, Footer or sidebar.
In HTML terminology, see below examples: You want to make three sections - Header, Body and Footer. You can use below HTML code:
<div id="header">
Header Content that also includes other Links of website/page
</div>
<div id="pageBody">
Page Body comes here, It contains main content of page
</div>
<div id="footer">
Page footer comes here. It contains Copyright and Privacy Policy and other links
</div>
I hope this example is clear. If you have any issue then please comment below.
#whyhtml #codewithrakesh
Comments
Post a Comment