Lecture 3 of HTML



Heading :-

There are 6 heading in HTML that have different by sizes.


            <html>
            <head>
            <title>
                      Headings
            </title>
                  </head>
               <body BGCOLOR='red' TEXT='white'>

 <h1> M Numan Sharif </h1>

 <h2> M Numan Sharif</h2>

 <h3> M Numan sharif</h3>

 <h4> M Numan Sharif </h4>

 <h5> M Numan Sharif </h5>

 <h6> M Numan Sharif </h6>

</body>
</html>


The out put is:-

M Numan Sharif

M Numan Sharif

M Numan sharif

M Numan Sharif

M Numan Sharif
M Numan Sharif
 

Paragraphs :

Paragraphs are used for writing different type of content and by inserting this tag web browser automatically justify the content on the size of browser.

An attribute “align” can also be used in this tag it also can used in heading tag.

Align : can be “left, right, center” and by default it is left.

As see the example

Program that uses different align with paragraph tag

<html>
<head>
<title>
      Paragraph tag
</title>
</head>
<body>
      <p ALIGN='left'>
 HTML stands for Hyper text markup language. Actually it is not a programming language it is a
language used for setting the images, videos, audios on the web pages. It was developed in early 1990s,
and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal
for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive
language mean <HEAD> and <head> have same meanings.
       </p>

   <p ALIGN='right'>
HTML stands for Hyper text markup language. Actually it is not a programming language it is a
language used for setting the images, videos, audios on the web pages. It was developed in early 1990s,
and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal
for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive
language mean <HEAD> and <head> have same meanings.
</p>

<p ALIGN='center'>
HTML stands for Hyper text markup language. Actually it is not a programming language it is a
language used for setting the images, videos, audios on the web pages. It was developed in early 1990s,
and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal
for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive
language mean <HEAD> and <head> have same meanings.
</p>

</body>
</html>

The paragraph tag output is:-

HTML stands for Hyper text markup language. Actually it is not a programming language it is a language used for setting the images, videos, audios on the web pages. It was developed in early 1990s, and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive language mean and have same meanings.
HTML stands for Hyper text markup language. Actually it is not a programming language it is a language used for setting the images, videos, audios on the web pages. It was developed in early 1990s, and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive language mean and have same meanings.
HTML stands for Hyper text markup language. Actually it is not a programming language it is a language used for setting the images, videos, audios on the web pages. It was developed in early 1990s, and inspired from a language SGML (Structured Generalized Mark-up Language). SGML are not ideal for transmission on the internet so this is the reason the HTML are used. HTML are not a case sensitive language mean and have same meanings.









   Line Breaks:-

It is used for break a line as a tag is used for jumping from one line to another.
A tag <BR> is used for breaking the line.
The text will print on a single line on the web browser :
Ali is a good boy.
He go to school regularly.
The text will print on a two lines on the web browser :
Ali is a good boy.<BR>
He go to school regularly.

The line break out put is:-

The text will print on a single line on the web browser : Ali is a good boy. He go to school regularly.

The text will print on a two line on the web browser : Ali is a good boy.
He go to school regularly.
See the example:
<html>
<head>
<title>
Line Breaker
</title>
</head>

<body>
The text will print on a single line on the web browser :
Ali is a good boy.
He go to school regularly.

<BR><BR>
The text will print on a two line on the web browser :
Ali is a good boy.<BR>
He go to school regularly.
</body>


</html>

No comments:

Post a Comment

Thank you for choosing https://www.htmlcodzz.com
We have receive your message and response very soon..