Today we will learn three tag of HTML. They are : Body tag (<body></body>), Paragraph tag (<p></p>),Header Elements(h1></h1>)
Let's start.
Title tag:<title></title>
This tag uses for title. When you came to my blog, you saw a title of my blog.That is :"24 Tutorial"
Body tag : <body>,</body>
This tag is very important tag of HTML. If you don't use it or if you will not close </> it , your webpage will not
open or your browser will show a error massage. So you must close it.
We will see a demo of it :
Show :
This is a test page.
Paragraph tag:<p></p>
Paragraph tag uses for create a paragraph. Sometimes we need to create a paragraph in two different subject, for this we can use this tag.
Show :
Here I also use a line break.
Note:<p align="center">
Here I use center attribute. Paragraph tag has three attributes.They are "left, right, center"
<br>
Even though you may have added line breaks within your content by using the [Enter] key, they will not render --you must use the <br> element.Empty –doesn’t contain any content so it is closed within the tag.
Let's start.
Title tag:<title></title>
This tag uses for title. When you came to my blog, you saw a title of my blog.That is :"24 Tutorial"
Body tag : <body>,</body>
This tag is very important tag of HTML. If you don't use it or if you will not close </> it , your webpage will not
open or your browser will show a error massage. So you must close it.
We will see a demo of it :
<html>
<head>
<title>This is a test</title>
</head>
<body>
This is a test page.
</body>
<html>
Show :
This is a test page.
Paragraph tag:<p></p>
Paragraph tag uses for create a paragraph. Sometimes we need to create a paragraph in two different subject, for this we can use this tag.
<html>
<title>Paragraph test</title>
<body>
<p align="center">This is a demo page. Here I use a paragraph tag<br>
Here I also use a line break.</p>
<p align="center">This is a demo page. Here I use a paragraph tag<br>
Here I also use a line break.</p>
</body>
<html>
Show :
This is a demo page. Here I use a paragraph tag
Here I also use a line break.
This is a demo page. Here I use a paragraph tagHere I also use a line break.
Note:<p align="center">
Here I use center attribute. Paragraph tag has three attributes.They are "left, right, center"
<br>
Even though you may have added line breaks within your content by using the [Enter] key, they will not render --you must use the <br> element.Empty –doesn’t contain any content so it is closed within the tag.
Header Elements:
<html>
<title>Hader Elements</title>
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
</body>
</html>
Show:
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
Thank you for read the post.
0 comments:
Post a Comment