![]()
If you wish to write web pages, then you need to learn HTML.
What’s that I here you cry! It stands for Hyper Text Markup Language, and it is
dead easy to learn. Honest!
The majority of tags come in pairs ( a start and an end) and the action carried out by
the tags is executed upon the text between the tags.
The start tag has the form of <Tag > and the end tag has the form
of </Tag >.
Note the slash (/) in the end tag. It is important to end all start tags, with an end tag.
<HTML >
- Indicates that the document is a HTML File.
A HTML file therefore consists of two parts: You can also include extra information (known as attributes) within the <BODY > Tag, so that it applies throughout the entire web page such as:
For example if you wish to have a white background and black text and red Hot links, then your body
tag would read (Note that <Tag > TexT </Tag > is the same as <Tag>TexT </Tag>
i.e. the start tag and end tag do not need to be on the same line )
What do these strange numbers "#FF3366" mean? | |||||||||||||||||||||||||||||||||||
R G B codes for various colours
Now let us put this all together, we want to set the background
colour to white, have black text, red links, and visited links in blue.
Note everything in red text are Html statements, anything in black text, is user dependent.
<HTML > <HEAD ><TITLE > Mannan's Home Page </TITLE ></HEAD > <BODY bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#0000FF" > The rest of the code goes here. </BODY > </HTML > The above code will simply present you with a blank white page with Mannan's Home Page inserted in the browsers title bar. Now its time to move onto some thing more advanced. S c a r e y or what? ![]() ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||