The DIV tag is a formatting tag that you use to apply styles to blocks of text on a page. It can be used to apply styles to sections of a page, such as text enclosed within the BLOCKQUOTE tags. You can use both the STYLE and the CLASS attribute with this tag. To set [...]
Home > HTML
Embedded style sheets allow you to define styles for several tags in a page. This saves you the effort of typing the same style definition each time you use a tag and enforces consistency on the page.
You can define embedded styles by using the STYLE tag between the HEAD tags. Each style definition in an [...]
Table headings provide information about the data in the table. You can use the TH tag to add headings in a table. The TH tag defines the cell; you do not have to use the TD tag. To set the text “Product name,” “Net weight,” and “Price” as the headings for a three-column table, use [...]
You use table attributes to format a table. You can add a border, change the width and height of a table, align a table, and align data within a table. You use table attributes with the TABLE, TD, and TR tags.
BORDER attribute
A border around a table gives it a three-dimensional look. You set the border [...]
You can display lists with different bullets to call attention to each item in a list. Choose from a range of bullets types in HTML or add small images as bullets to make your page visually appealing. You can insert a list within another list in order to provide different levels within the same list.
Type [...]
Definition lists are used when you want to display terms with their definitions on a page. You add a definition list by using the DL (definition list), DT (definition term), and DD (definition description) tags.
The starting DL tag indicates the beginning of the definition list. The DL tag is a container and the ending DL [...]
Ordered lists (numbered lists) are used to display text that follows a specific sequence or is of varied importance. You can create an ordered list by using the OL (ordered list) and LI (list item) tags. The OL tag encloses the items of an ordered list. The LI tag is the same as the LI [...]
Arranging text in a list format is an effective way of displaying information. Depending on how the text is arranged, a document with one or more lists can be easier to read than a document with text in paragraph form.
On a Web page, you can create three types of lists—an unordered list, an ordered list, [...]
Working with background images
Background images that scroll with the text on a page compete with the main information on the page. You can watermark the background image so that it does not scroll with the text by fixing the background image. You use the BGPROPERTIES attribute of the BODY tag to fix a background image. To fix the [...]
Proper use of background colors and images adds contrast to enhance the appearance of text and graphics on a page. They can be used to provide a distinct look to a Web site, which makes it easily identifiable to users.
Background colors
You add a background color to a page by using the BGCOLOR attribute of the [...]
