+ Larger Font | - Smaller Font
HTML Code
Web pages are written in Hypertext Markup Language (HTML), use hyper links to navigate to other pages and scripts for interactivity.
The code can be written in a simple text editor such as Notepad or a WYSIWYG (what you see is what you get) design tool that generates the HTML code for you.
The pictures below show the main page of our History on the Net website written in Notepad (left) and in Microsoft FrontPage (right).

HTML code is essentially an instruction that tells the viewer's internet browser how to display information, images and code.
Each piece of HTML code is known as a HTML tag and is enclosed by < > brackets. All tags used need to be both opened and closed. E.g. <p> will open a paragraph </p> will close a paragraph.
Each webpage should include tag to show the code language used as well as a Head and body section. Information in the Head section is used by search engines and is not visible to the user. Information in the body section is visible to the user. A webpage code will look something like this:
|
<HTML> <body> Information written here will be visible to viewers of your page </body> |
HTML Code Tags
| Tag | Description | Code View | Browser View | ||||
| <a | Anchor | <a href="www.historyonthenetgroup.co.uk/webdesign">Visit this site</a> | Visit this site | ||||
| <b> | Bold | <b>bold text</b> | bold text | ||||
| <bg color> | Background colour | <bgcolor="red"> | |||||
| <body> | Body | <body>your webpage</body> | your webpage | ||||
| <br> | Line break | a line of text<br>another line of text | a line of text another line of text |
||||
| <center> | Center | <center>centre position</center> | |||||
| <font> | Font | <font face="Times New Roman">Times New Roman</font> | Times New Roman | ||||
| <font> | Font | <font face="Times New Roman" size="5">Times New Roman</font> | Times New Roman | ||||
| <font> | Font | <font face="Times New Roman" size="5" color="red">Times New Roman</font> | Times New Roman | ||||
| <form> | Form | <form action="mailto:you@yourdomain.com"> Name: <input name="Name" value="" size="16"><br> Email: <input name="Email" value="" size="16"><br> <center><input type="submit"></center> </form> |
|||||
| <h1> | Heading 1 | <h1>Heading 1</h1> | Heading 1 |
||||
| <h2> | Heading 2 | <h2>Heading 2</h2> | Heading 2 |
||||
| <h3> | Heading 3 | <h3>Heading 3</h3> | Heading 3 |
||||
| <h4> | Heading 4 | <h4>Heading 4</h4> | Heading 4 | ||||
| <h5> | Heading 5 | <h5>Heading 5</h5> | Heading 5 | ||||
| <h6> | Heading 6 | <h6>Heading 6</h6> | Heading 6 | ||||
| <head> | Head | <head>text here will not show up</head> | |||||
| <hr> | Horizontal rule | <hr> | |||||
| <hr> | Horizontal rule | <hr width="50%" size="3"> | |||||
| <hr> | Horizontal rule | <hr width="50%" size="3" color="red"> | |||||
| <i> | Italic | <i>italic text</i> | italic text | ||||
| <li> | List | <li>first</li><li>second</li><li>third</li> |
|
||||
| <marquee> | Marquee | <marquee bgcolor="#ccccff" loop="-1" scrollamount="2" width="100%">Marquee</marquee> | |||||
| <menu> | Menu | <menu><li>first</li><li>second</li><li>third</li></menu> | |||||
| <ol> | Ordered list | <ol><li>first</li><li>second</li><li>third</li></ol> |
|
||||
| <option> | Form Option | <form method="post" action="cgi-bin/sendform.cgi">choose an option<select><option 1>option 1<option 2>option 2<option 3>option 3</select></form> | |||||
| <p> | Paragraph | <p align="left">paragraph
aligned left</p> <p align="center">paragraph aligned centre</p> <p align="right">paragraph aligned right</p> |
paragraph aligned left paragraph aligned centre paragraph aligned right |
||||
| <table> | Table | <table border="1"
width="85%" id="table1"> <tr><td>column 1</td><td>column 2</td></tr> <tr><td>row 2</td><td>row 2</td></tr> </table> |
|
||||
| <td> | Table data | <table border="1"
width="85%" id="table1"> <tr> <td>column 1</td><td>column 2</td><td>column 3 </tr> </table> |
|
||||
| <tr> | Table row | <table border="1"
width="85%" id="table1"> <tr bgcolor="red"> <td>column 1</td><td>column 2</td><td>column 3 </td></tr></table> |
| <u> | Underline | <u>Underline</u> | Underline |
| <ul> | Unordered list | <ul><li>first</li><li>second</li><li>third</li></ul> |
|
Do it
Yourself
Web
Hosting
Domain Names
Design
Services
Portfolio
Contact

A History on the Net Group Website
