Page 105 - Viva ICSE Computer Studies 6 : E-book
P. 105
Paragraph Tag
<P> tag is used to display a long piece of text on a web browser.
HTML provides us a tag <P> which is used to create a new paragraph in a web page.
Syntax: <P>
Statements </P>
We can also align the paragraph using a ‘align’ attribute. Attributes are special code words used
inside an HTML tag to control exactly what the tag does. Align attribute is used to align a
paragraph.
• <P> Start a new paragraph.
• <P align = “center”> Align paragraph to centre.
• <P align – “right”> Align paragraph to right.
• <P align – “left”> Align paragraph to left.
• <P align – “justify”> Align paragraph evenly between left and right margins.
<CENTER> Tag
CENTER aligns the text to the centre of the page. To align the text to the centre, type <CENTER>
statements </CENTER>.
<HR> Tag
<HR> is an empty tag. It is used to insert a straight horizontal line across the web page.
Syntax: <HR>
Tag Description Example
It indicates thickness of the lines in pixels. Default
Size <hr size = 3>
thickness is 2 pixels.
It defi nes the horizontal width of the line. Default
Width is page width. It is measured in pixels or can be <hr width = 5>
given in percentage of the page width.
93