Things you want to know about websites

 

Paragraphs

Every text document is made up of paragraphs. To start a paragraph in html you use <p> tag and to end </p> tag.

Example

<html>
<body>
<p>This is the first paragraph. </p>
<p>This is the second paragraph. </p>
</
body>
</html>

will give you the following result,

This is the first pragraph.

This the second paragraph.

Line Breaks

Line breaks are used primarily when you want to move down to the next line without starting a new paragraph.

To include a line break, you use the <br /> tag.

Example

<p>First line. <br /> Second line. </p>

Result:

First line.
Second line.

Horizontal Rules

Horizontal rules are basically lines that divide sections of text on the screen.

To type a horizontal rule, you use the <hr /> tag.

Example

<html>
<body>
<p>This line is above rule. <hr />
This line is below rule. </p>
</
body>
</html>

Result:

This line is above rule.


This line is below rule.


Bookmark or Add to Favourites

Next :

Html-Document Example

Related:

Html-Headings
Html-Formatting

Link to this page :

Copy and paste the following code in an html document to link to this page,