Paragraphs and Line Breaks
<P>—</P> The <P> tag defines the beginning and endin of a paragraph of text.
ALIGN=Option The alignment of the text in the paragraph
(LEFT| RIGHT| CENTER)
<H1> First Level Heading </H1>
<H2> Second Level Heading </H2>
<H3> Third Level Heading </H3>
<H4> Fourth Level Heading </H4>
<H5> Fifth Level Heading </H5>
<H6> Sixth Level Heading </H6>
When you use these tags, no other tags can be used inside these tags and if they are used, they will be ignored. Heading or sub heading can be aligned to the left, right or centre using 'ALIGN' attribute. If it is necessary <H1 ALIGN = CENTER> Title of the heading </H1> can be used to align the title at the centre of the web page. These values can be assigned to ALIGN and their 'LEFT', 'RIGHT' and 'CENTER'.
Paragraphs and Line Breaks
When you create web pages you can use <P> for paragraphs, sections and other phrases and to mark the end of such section you can use </P> ending tag. The Ending tag, in this case, is not compulsory; however there are some cases where the ending tag cannot be omitted. Such tags will be discussed later in this section. <P> for Paragraph, tells your browser to insert a blank or empty line and then begin a new line (a new paragraph). <BR> (for Line Break) tells the browser when a line has ended while <P> tells the browser to leave a blank line and begin a new paragraph.
Example
<HTML>
<HEAD>
<TITLE>Example 5.03</TITLE>
</HEAD>
<BODY>
<H1>Paragraph and line Demo</H1>
<P>This is first Paragraph </P>
<H2>This is heading 2</H2>
<P>The paragraph two<BR>The paragraph three</P>
</BODY>
</HTML>
No comments:
Post a Comment