![]() |
Home
Email the webmaster Legal stuff NEXT LESSON >>> |
| Formatting textblocks / text |
| Recall what you have learn in the previous lesson; <P>. <P> stands for paragraph, you must know by now. Hence, <P ALIGN="..."> will align the paragraph. For example, when you write <P ALIGN="RIGHT">, all the text will start from the right margin. ( Look below ) |
|
Like this
|
| So, it is an incredibly useful tag for aligning your text. |
| However, to align text to the centre of the page |
|
|
| is not possible by typing <P ALIGN="CENTER"> Instead, you should type <CENTER> before the text and then </CENTER> after the text. It is somewhat similar to 'closing a tag', whereby everything typed after </CENTER> will not be centered on the page. |
| To format text, you must have used BOLD or Italicize, as well as underline. In a word processor, you simply select the correct style from the toolbar, or by hitting 'Ctrl + (the hotkey)'. In HTML, this is no different, but instead, the hotkey you hit befor the text you want to format is '< + (the hotkey) + >'. The hotkey for BOLD is B, italics is I and underline is U. Hence, if you want to format the following text into italics, you type... |
| <I>This text is to be italicized.</I>This text is not affected by italics. |
| Now, you should understand what I mean.
For BOLD, or underline, the same tag is used, but 'I' is replaced by 'B'
or 'U' respectively.
<H1> is a level 1 heading text. This level 1 heading is the largest possible, and it becomes smaller as the value of the number next to H decreases. The smalles possible is <H6>. Again, </H1> must be used after the text. |
| Activity |
| <HTML>
<HEAD><TITLE>My homepage!</TITLE> </HEAD> <BODY> <B><U><H1>Hi, and welcome!</H1></U></B> <BR> <I>Hi and welcome to my cosy little corner of the net.</I> In my webpage, i will be talking about myself, what i like to do, as well as linking to my favorite sites on the internet. Remember, sign the guestbook before you leave! <BR></BR> Thanks for comming, and have a pleasant <I>'surf'<I>. <P> <I>Direct your comments, complaints or comedy routines to [email protected]</I> </BODY> </HTML> |