HTML Lessons
- HTML Introduction
- HTML Tags
- HTML Page Structure
- HTML Backgrounds
- HTML Formatting Text
- HTML Formatting Fonts
- HTML Headings
- HTML Entities
- HTML Line Breaks
- HTML Lists
- HTML HR- Horizontal Rule
- HTML Images
- HTML Links
- Table Introduction
- Table Rows & Columns
- Table Width
- Table Alignment
- Table Border Color
- Table Background Color
- Table Background Image
- Cell Alignment
- Cell Padding
- Cell Spacing
- Cell Spanning
|
Body Backgrounds
Sometimes opening tags will have attributes and values. These tags help
define the tags even further. For example, when it comes to the background of a
page, you'll need to add attributes. The formula for
attributes is:
attribute="value"
As shown above, the attribute must be connected to the value with an equal sign
and the value must be placed in quotes.
Background Colors
To change the color of the background of your page insert
the bgcolor attribute into the opening body tag, like so:
<body bgcolor="#FFFF99">
</body>
You can also insert and image as the background. To do this insert the
background attribute, like so:
<body background="bricks.gif">
</body>
Next Lesson
|