Here's what I learned:
Header
It is a section at the top of a webpage that contains
Navigation Menu
Search Bar
Other introductory Content
<header>
<h1>geeksforgeeks</h1>
</header>
Section
Define a section of content that typically related to the heading
<section>
<h2>HTML Tags</h2>
<p>It is a fundamental building blocks of HTML</p>
</section>
List
There are two types of List
- Ordered list - marked as numbers and alphabets
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
- Unordered List - marked as bullets,square etc...
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
Block
Starts with new line
Browsers automatically add some space before and after element
Examples:
<div>,<p>,<h1>
Inline
Doesn't start with new line
Occupy the space needed for their content
Examples:
<a>,<img>
Top comments (0)