10.07.2017 Views

246996016-HTML5-Step-by-Step

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Key Points 65<br />

1. Replace the existing opening tag with this one:<br />

<br />

Note To avoid having to specify a path to the image file, place the image file and the<br />

HTML file in the same folder.<br />

2. Save the file, and then refresh the Internet Explorer display to check your work.<br />

CLEAN UP Close the Notepad and Internet Explorer windows.<br />

Key Points<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

To create a numbered (ordered) list, use the tags. For a bulleted (unordered)<br />

list, use the tags.<br />

Within the or tags, use tags for each list item. These tags are all<br />

two-sided. HTML does not require the closing , but XHTML does.<br />

Ordered and unordered lists can be nested. Enclose the second-level or <br />

list within a tag inside the main list.<br />

To use a different bullet character or numbering style, use the style ”list-style-type:<br />

type” attribute in the or opening tag.<br />

To create a definition list, use the tags. Within the tags, enclose<br />

each term in a tag, and enclose each definition in a tag.<br />

You can display special characters on a Web page <strong>by</strong> using HTML character entity<br />

references.<br />

To insert a horizontal line, use the tag. This is a one-sided tag. Put any specifications<br />

for the line within it, such as color, height, and width.<br />

You can specify colors <strong>by</strong> using basic or extended names, RGB values, or hexadecimal<br />

values.<br />

To assign a background color to a page, insert a style ”background-color: color”<br />

attribute into the opening tag. For a foreground color, use style ”color:<br />

color”. These attributes can be combined into a single statement with a semicolon<br />

separator, like this: style ”background-color: red; color: white”.<br />

To assign a background image to a page, insert a style ”background-image: image”<br />

attribute into the opening tag.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!