![]()
Now we can actually start writing a web page. <H1> Mannan's Crazy World </H1> is placed between the <Body> tag elements in the code shown in the previous section, then one would get the following Mannan's Crazy WorldNote the green horizontal lines do not appear. There are six levels (or sizes) of headings possible H1 to H6, as shown below. <H1> Mannan's Crazy World</H1><H2> Mannan's Crazy World</H2><H3> Mannan's Crazy World</H3><H4> Mannan's Crazy World</H4><H5> Mannan's Crazy World</H5><H6> Mannan's Crazy World</H6>
If you want to align the heading to the Left, centrally or to the right of the web page
then you need to add the align= attribute
to the start of the heading tag. ie: <H2 align="left" > Mannan's Crazy World </H2> <H2 align="Center" > Mannan's Crazy World </H2> <H2 align="Right" > Mannan's Crazy World </H2> The above three lines of code will produce the following effect. Mannan's Crazy WorldMannan's Crazy WorldMannan's Crazy WorldIf no align attribute is included then by default the heading is aligned left.
<p> Welcome to Mannan's home Page. </p> And you would see the following Welcome to Mannan's home Page.
You will notice that i have used an end tag for the paragraph statement. You do not
really need to issue an end tag, since the browser will automatically know that the last
paragraph has ended when a new paragraph statement is issued. But I find it useful to use, since
you can use it to contain a paragraph, and then align the paragraph itself. More on this later. <p> Welcome to Mannan's home Page. Playing With Text. </p> Then we would get Welcome to Mannan's home Page. Playing With Text.
It has ignored the carriage return. ie. the new line. <p> Welcome to Mannan's home Page. <br> Playing With Text. </p> Or <p> Welcome to Mannan's home Page. <br> Playing With Text. </p> This would give the following result. Welcome to Mannan's home Page. Playing With Text. | ||