Why use <h> ?
When we start a new paragraph, we need a header to highlight the topic which we want to write in the paragraph. For this reason we need <h>.
Headers have 6 tags.
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
We will see that in Example.
Syntax:
<h1>hay this is h1</h1>
<h2>hay this is h2</h2>
<h3>hay this is h3</h3>
<h4>hay this is h4</h4>
<h5>hay this is h5</h5>
<h6>hay this is h6</h6>
Example1:
<!DOCTYPE html>
<html>
<head>
<title>Basicgetin.blogspot</title>
</head>
<body>
<h1>hay this is h1</h1>
<h2>hay this is h2</h2>
<h3>hay this is h3</h3>
<h4>hay this is h4</h4>
<h5>hay this is h5</h5>
<h6>hay this is h6</h6>
</body>
</html>
Output:
Example 2:
In here we see the real life uses of header
<!DOCTYPE html>
<html>
<head>
<title>Basicgetin.blogspot</title>
</head>
<body>
<h1>What is a web site?</h1>
<p>
A website is a collection of
many web pages,<br> and web pages
are digital files that are
written using HTML (Hypertext Markup Language).
</p>
<h2>What is hosting?</h2>
<p>
Web hosting is an online service that
makes your website's content accessible on the internet.
</p>
<h3>How to start?</h3>
<p>
Plan your Web Development Company. Form your
Web Development Company into a Legal Entity. <br> Register
your Web Development
Company for Taxes. Open a Business Bank Account & Credit Card. <br>
Set up Accounting for your Web Development Company.
</p>
</body>
</html>
Output:
Post a Comment