HTML Basic tags | Readstall

HTML Basic tags

07-12-18 Gudditi Naganjaneyulu 0 comment

HTML- Basic Tags

Tag:   the set of commands which controls the entire structure  HTML web page. Which covers with powerful symbol  < tag >   < /tag >?

Heading tags:Any document must start with powerful line, that describe the entire documented data in a single line of text is called Heading. HTML having 6 types of heading tags which describe the entire web document future. They are given below:

<h1> ,<h2> ,<h3>,<h4>,<h5>,and <h6>

While displaying any data headings play a vital role, for the better understanding purpose takes small peace code:

<! DOCTYPE html>

      <Html>

   <Head>

      <title>Readstall.com</title>

   </Head>

   <body>

      <h1>This is heading 1</h1>

      <h2>This is heading 2</h2>

      <h3>This is heading 3</h3>

      <h4>This is heading 4</h4>

      <h5>This is heading 5</h5>

      <h6>This is heading 6</h6>

   </body>

     </html>

Output while running HTML document :

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

Paragraph tag:

  Paragraph contains two or more sentences of the matter of data, which intended to display sentences of data in the paragraph. HTML provides the  paragraph facility to display the data in a significant manner.Each paragraph contains having own code of tags to be display content of data

 < p > sentences of text to be displayed and end with < /p >

<!DOCTYPE html>

      <html>

<head>

   <title>Paragraph Example</title>

</head>

<body>

<p>Now we are generating paragraph </p>

<p> Now we are generating paragraph </p>

<p> Now we are generating paragraph </p>

       </body>

</html>

  Which generates  output

Now we are generating paragraph

Now we are generating paragraph

Now we are generating paragraph

Line breaking tag:

  Line breaking is one of powerful tag that contains the jumping function from one line to another line.This tag must contained like normal tags  must open like < bar>  data to be inserted < / br >

<!DOCTYPE html>

<html>

<head>

<title>Line Break  Example</title>

</head>

<body>

<p>Hello<br />

You delivered your assignment ontime.<br />

Thanks<br />

nani</p>

</body>

</html>

Output :

Hello

You delivered your assignment ontime.

Thanks

Nani

Center tag:

This tag play role of data which wrote on the document must display at the center of the webpage.And open  to <center >   peace of text </center >

<!DOCTYPE html>

<html>

<head>

<title>Centring Content Example</title>

</head>

<body>      <p>This text is not in the center.</p>

<center>    <p>This text is in the center.</p>

</center>

</body>

</html>

Output for the  program

This text is not in the center.

This text is in the center.

*****



Leave a reply