HTML #2

07Mar08

Some basic HTML Tags which are mainly used for text.

<b> </b>

That is the bold tags anything in side the two tags will be bold

e.g

<b>This is bold</a>

This is bold

<i> </i>

That is the italics tags anything inside the two tags will be in italics

e.g

<i>This is italics</i>

This is italics

<center> </center>

That is the center tags, it will center any text within them.

e.g

<center>This is in the center</center>

This is in the center

<font size=”XX” color=”XXXX”> </font>

That is the font tag it has three atributes size, color and face. Size and color are well the size and color. The face atribute is the font face e.g Verdana, Times New Roman etc. Normaly you can leave out the face atribute as the web brower will just use the defualt.

e.g

<font size=”3″ color=”red”>
This is some text!
</font>
<font size=”1″ color=”blue”>
This is some text!
</font>
<font face=”arial” color=”red”>
This is some text!
</font>

 

Size 3, colour red
Size 1, colour blue
Font face arial colour red

Note that colour is spelt the american way color.

Now lets look at some other tags.

<a href=”##”>##</a>

That is a basic hyperlink structure.

e.g

<a href=”http://www.nationpigeon.com”>Nation Pigeon</a>

Nation Pigeon

<img src=”###”>

That is the basic structure of an image tag.

e.g

<img src=”http://www.nationpigeon.com/wordpress/wp-content/themes/unsleepable_v16/images/title.gif” width=”225″ height=”80″>

That example uses the source atribute (src=”xx”), the width and height. The width and hight are not required but it will make the page load up nicer. The unbers that you enter are the width and height in pixes of the source image.

<marquee bgcolor=”##”
direction=”##” width=”##”></marquee>

That is the marquee tag (scrolling text). With that you can have the text scroll up/down/left/right, by useing the ‘direction’ atribute. You can also change the width. Aswell as the background colour.

e.g

<marquee bgcolor=”#efefef” direction=”right” width=”75%”>This is going right</marquee>
This is going right

But be warned useing this alot can get annoying. If you want any more just ask.  Sorry It dosent look that good.  I’ll get it sorted soon.


2 Responses to “HTML #2”  

  1. 1 Kevin

    YAY thanks Pete, those have actually helped w00t :)
    thanks yous

  2. 2 Pete

    No problem. :D

Leave a Reply




    HI, I'm Pete. I'm studying HND Computing and I'm trying to buy Stargate SG-1 Seasons 1 - 10 box set. I'm hoping that if I write lots of really useful information that some nice people might donate some money to me so I can buy all of the Stargate Seasons