Skip to content
CAT Study Hub

Annexure B — HTML tag sheet

Every HTML tag from the paper's annexure, grouped by Basic, Text, Links, Formatting and Table.

33 of 33 rows

GroupTagWhat it does

Basic

<body></body>

Defines the body of the page

Basic

<body bgcolor='pink'>

Background colour

Basic

<body text='black'>

Text colour of the body

Basic

<head></head>

Information about the page

Basic

<html></html>

Starts and ends the page

Basic

<title></title>

Title of the page

Basic

<br/> · <!-- -->

Line break · comment

Text

<h1></h1> … <h6></h6>

Largest to smallest heading

Text

<b> <i> <u>

Bold, italic, underline

Text

<font size='3'>

Font size 1–7

Text

<font color='green'>

Font colour

Text

<font face='Times New Roman'>

Font type

Links

<a href='URL'></a>

Hyperlink

Links

<a href='URL'><img src='name'></a>

Image link

Links

<a name='NAME'></a>

Target location in the document

Links

<a href='#NAME'></a>

Link to that target

Links

<a href='mailto:#NAME'></a>

E-mail link

Formatting

<p></p> · <p align='left'>

Paragraph · aligned left, right or center

Formatting

<center></center>

Centre text, section, table or image

Formatting

<ol> · <ol type='A','a','I','i','1'>

Numbered list · numbering type

Formatting

<ul> · <ul type='disc','square','circle'>

Bulleted list · bullet type

Formatting

<li></li>

List item

Formatting

<hr/> <hr size='3'/> <hr width='80%'/> <hr color='ff0000'/>

Horizontal line, its size, width, colour

Formatting

<img src='name'> align='left' border='1' width='200' height='200' alt='text'

Image, alignment, border, size, alternative text

Formatting

<p align='center'><img src='name'></p>

Centred image

Table

<table></table>

Creates a table

Table

<tr></tr> · <td></td>

Row · cell

Table

<th></th>

Header cell (bold, centred)

Table

<table width='50'>

Width of table

Table

<table border='1'>

Border width

Table

<table cellspacing='1'>

Space between cells

Table

<table cellpadding='1'>

Space between border and content

Table

<tr align='left'> <tr valign='top'> <td colspan='2'> <td rowspan='4'>

Horizontal and vertical alignment, columns spanned, rows spanned

The tag sheet has no bgcolor for rows. In practice <tr bgcolor="black"> and <th bgcolor="black"> both work in browsers. If you want to stay strictly inside the sheet, set a black background on each <th> cell. Check that your version renders the first row black.