Introduction to Text structuring (Continued-b)

 Text Structuring

Line Break Tag (<br>) : The <br> tag is used to insert line break. This is empty tag i.e. this tag does not require any closing tag.

Syntex is: 
Text <br>


Center Text Tag : the centre tag is used to place the text in the centre of the line.

Syntax is:
<center> Text </center>

Horizontal rule tag <hr> : this tag is used to produce a horizontal line spread across the width of the browser window. This is empty tag. The attributes of <hr> tag are:


Size

Changes the thickness of horizontal line.

Width

Set the width of the Rule. width can be set to a fixed number of pixels or to a percentage of the available screen width.

Noshade

Create a solid bar with no shading.

Align

Align the line as left, right or center on the browser screen.

Steps to implement <br>, <center>, <hr> tags:

Step 1: open notepad or any other HTML editor and type the following code in it.




Step 2: save the file as textstruct.html.

Step 3: now open the file in Google Chrome or any other web browser. The web page will look like as follows:


Watch Video


Subscribe to my youtube channel

So this is about text structuring we are familiar with how to align text, using break teg, using horizontal rule tag, using centre tag, etc.
In the next topic we will learn about text styles in HTML web page. To learn click on next button:



Comments