Log in

View Full Version : <title><b>The basics of HTML</b></title>



Jordy
15-04-2008, 11:59 PM
Titles
To create the title of a web page, use the following:
<title>Welcome to my website</title> = Text at the top of the browser
Text To create bold text, use the following:
<b>text</b> = text
To create underlined text, use the following:
<u>text</u> = text
To create italic text, use the following:
<i>text</i> = text
To cross out text, use the following:
<s>text</s> = text
To use more than one type of text, use the following:
<b><u>text</u></b> = text
Paragraphs
To create a new paragraph, use the following:
<p>TEXT FOR THE PARAGRAPH HERE</p>
To go down 1 line, use the following
<br>
To go down 2 lines, use the following
<br><br>
Alignment
None of the following will work when aligning images. Some of these HTML codes are variable.
To centre text, use the following:
<center>text</center> =
textTo align text to the right, use the following (To align right, change "left" to "right"): <p align="left">text</p>=


text

Colour
To make text blue use the following:
<font color="blue">text</font>
The bit where it says 'blue' change that code to any colours you want by just typing in the names, and remember to use the American spelling of colour!
Size and fonts
The default font on most Web Servers is 'Times New Roman' in size 3 (Also known as Size 12 in Word)
To make text size 2, use the following (Change the number to vary sizes):
<font size="2">text</font> = text
To change font, use the following:
<font face="Arial">text</font> = text
Hyperlinks and images
To create a email link, use the following:
<a href="mailto:EMAIL ADDRESS">text</a> = text ([email protected])
To create a hyperlink, use the following:
<a href="URL HERE">text</a> = text (http://www.google.com/)
To insert a image, use the following (To align the image, change the following "left" to "right" or "center":
<img src='URL OF IMAGE HERE' align='left'> = http://img233.imageshack.us/img233/6430/elfxs8.gif (http://www.google.co.uk/)
To add a hyperlink into a image, use the following:
<a href="URL HERE"><img src='URL OF IMAGE HERE' style='margin:5px;' align='left'></a> =
Marquees
To create a marquee, use the following:
<marquee>text</marquee>
Line
To create a line, use the following:
<hr>

Sticky ftw LOL

Moved by Thaddeus (Forum Moderator) from Teen Life (Foreign Languages). It's suits this forum better. :)

crans
16-04-2008, 12:08 AM
Looooool

Nice one!

Jordy
16-04-2008, 12:24 AM
nvm it's been moved to the wrong section, sorry about that, I always thought HTML was a foreign language, it's not widely spoken in the UK. thread locked.

Want to hide these adverts? Register an account for free!