Our Android Application, 100K+ Downloads Download
Close ads ->
Close ads ->
-->

Random Posts

Follow US

HTML Lesson Two - The Basic Elements In The Body Tag

Learn about the main and important Basic Elements In The Body Tag
Share it:
Learn HTML
What comes under body ?
Almost all visible things come under the body tag . Text, images, tables, links, lists, etc comes under it . Okay, now lets look at the way of writing text, adding images and all in HTML .

Lets look at some important elements :

Heading :
HTML has 6 headings <h1> , <h2> , <h3> , <h4> , <h5> , <h6> . Each has difference in their size .
  1. The first and the largest one is h1 and it starts with <h1> and ends with </h1> .
  2. The second one is little smaller than the first and it starts with <h2> and ends with </h2> .
  3. The third one starts with <h3> and ends with </h3> .
  4. The forth one starts with <h4> and ends with </h4> .
  5. The forth one starts with <h5> and ends with </h5> .
  6. The forth one starts with <h6> and ends with </h6> .
Lets see the difference of each headings :
<h1>Heading One</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
<h5>Heading Five</h5>
<h6>Heading Six</h6>

Output :
Different Headings

Paragraph Elements :
A paragraph starts with <p> and ends with </p> . In a paragraph the browser leaves one line before and after the paragraph .
Example :
<p>Hi, this is the test for paragraph</p>

Output :
The output will be the line " Hi, this is the test for paragraph " .

The <br/> tag :
This has no ending tag . It is just like pressing the enter button once . This tag is the code behind enter . Lets see an example .
Example :
Hai , this is an example<br/>
This is how it works
Output :
Single Line Break

Okay, this is enough for now . We will be talking about the ways of modifying text in HTML in the next class .
Share it:

Learn-HTML

Learn-To-Code

Post A Comment:

0 comments: