The document provides information on basic HTML tags for formatting text, images, links, lists and tables. It lists common tags like <body>, <p>, <h1-6>, <b>, <i>, <img>, <a>, <ol>, <ul>, <table>, <tr>, <td>, <th> and describes their purpose and attributes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100%(2)100% found this document useful (2 votes)
7K views1 page
HTML Tag Sheet
The document provides information on basic HTML tags for formatting text, images, links, lists and tables. It lists common tags like <body>, <p>, <h1-6>, <b>, <i>, <img>, <a>, <ol>, <ul>, <table>, <tr>, <td>, <th> and describes their purpose and attributes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
HTML TAG SHEET
Basic Tags Formatting Tags continued
Tag Description Tag Description Defines the body of the web Inserted before each list <body></body> page item, and adds a number <li></li> <body bgcolor="pink"> Sets the background colour of or symbol depending upon the web page the type of list selected <body text="black"> Sets the colour of the body text <img src="name"/> Adds an image Contains information about the Aligns an image: can also <head></head> <img src="name" be "right", "center"; document align="left"/> "bottom", "top", "middle" Creates an HTML document – <html></html> starts and ends a web page <img src="name" Sets size of border around border="1"/> an image <title></title> Defines a title for the document <img src="name" Sets the height and width of <!-- --> Comment width="200" height an image Text Tags ="200"/> Tag Description Displays alternative text <img src="name" when the mouse hovers <hl></hl> Creates the largest heading alt="alternative text"/> over the image or when the image is not found <h6></h6> Creates the smallest heading <hr/> Inserts a horizontal line <b></b> Creates bold text <hr size="3"/> Sets size (height) of line Sets width of line, in <i></i> Creates italic text <hr width="80%"/> percentage or absolute value <font size="3"></font> Sets size of font, from "1" to "7" <hr color="ff0000"/> Sets the colour of the line
<font color="green"></ Table Tags
font> Sets font colour Tag Description <font face="Times New <table></table> Creates a table Sets font type Roman"></font> <tr></tr> Creates a row in a table Links Tags <td></td> Creates a cell in a table Tag Description Creates a table header (a <a href="URL"></a> Creates a hyperlink <th></th> cell with bold, centred text) <a href="URL"><img src="URL"></a> Creates an image link <table width="50"> Sets the width of the table
Sets the width of the
<a name="NAME"></a> Creates a target location <table border="1"> border around the table cells Links to a target location Sets the space between <a href="#NAME"></a> created somewhere else in the <table cellspacing="1"> the table cells document Sets the space between a Formatting Tags <table cellpadding="1"> cell border and its contents Tag Description Sets the alignment for <p></p> Creates a new paragraph <tr align="left"> cell(s) (can also be "center" or "right") Aligns a paragraph to the "left" Sets the vertical alignment <p align="left"> (default), can also be "right", or <tr valign="top"> for cell(s) (can also be "center" "middle" or "bottom") <br/> Inserts a line break Sets the number of <ol></ol> Creates a numbered list <td colspan="2"> columns a cell should span <ol type="A","a", Defines the type of numbering Sets the number of rows a "I","i","1"></ol> used <td rowspan="4"> cell should span <ul></ul> Creates a bulleted list <ul type="disc", "square","circle"> </ul> Defines the type of bullets used