All HTML documents (webpages) use the following at the beginning and end: <html> <body>
Code
</body> </html> Note: HTML tags always use < (command) />. Example: <b>This text is Bolded</b>. Except for tags like img and meta. They are just <img> and <meta>. Here's a table filled with simple HTML tags and examples:
| Type |
Tag |
Example |
Result of Example |
| Styles |
<b> <i> <u> |
<b>This text is Bolded</b> <i>This text is Italics</i> <u>This text is Underlined</u> |
This text is Bolded This text is Italics This text is Underlined |
| Fonts |
<font color> <font size> <font face> Combined |
<font color=green>This text is green</font> <font size=1>This text is small</font> <font face="rockwell">This font is rockwell</font> <font color=green size=1 face="rockwell"> This font is a combination of all three</font> |
This text is green
This text is small
This text is rockwell
This text is a combination of the three |
| Lists |
<ul> <ol>
This is the list item <li> |
<ul> <li>This is an Unordered List</li> <li>It uses bullets</li> </ul>
<ol> <li>This is an Ordered List</li> <li>It uses numbers</li> </ol> |
- This is an Unordered List
- It uses bullets
- This is an Ordered List
- It uses numbers
|
| Links |
<a href=""> |
<a href="http://www.websitecrud.com/">This is a link</a> |
This is a link |
| Images |
<img src=""> |
<img src="http://www.websitecrud.com/websitecrud2.jpg"> |
 |
| Tables |
<table><tr><td> <tr> is the table row <td> is the table cell |
<table> <tr> <td>Cell 1, Row 1</td> <td>Cell 2, Row 1</td> </tr> <tr> <td>Cell 3, Row 2</td> <td>Cell 4, Row 2</td> </tr> </table> |
| Cell 1, Row 1 | Cell 2, Row 1 | | Cell 3, Row 2 | Cell 4, Row 2 |
|
Other useful HTML tags include: Linebreak: <br>, Meta tag: <meta>, Header: <header>, Text Header: <h1><h2><h3>etc...
|