Adding an Image to a Web Page

When an image is ready for the Web, you need to use the correct markup toadd it to your page, but you need to know where to store your image as well. Image location You can store images for your Web site in several places. Image storageworks best if it uses relative URLs — stored somewhere on the Web site with your other (X)HTML files. You can store images in the same root as your (X)HTML files, which gets confusing if you have a lot of files, or you can create a graphics or images directory in the root file for your Web site. Relative links...

read more

Bulleted lists in HTML

A bulleted list consists of one or more items each prefaced by a bullet (often a big dot; this book sometimes uses check marks as bullets). You use this type of list if the items’ order of presentation isn’t necessary for understanding the information presented. Formatting A bulleted list requires the following: ✓ The unordered list element (<ul>) specifies a bulleted list. ✓ A list item element (<li>) marks each item in the list. ✓ The closing tag for the unordered list element (</ul>) indicates that the list has...

read more

Creating Paragraphs in (X)HTML

Paragraphs appear more often than any other text block in Web pages. HTML browsers don’t recognize hard returns that you enter when you create your page inside an editor. You must use a <p> element to tell the browser to package all text up to the closing </p> tag as a paragraph. Formatting To create a paragraph, follow these steps: 1. Add <p> in the body of the document. 2. Type the content of the paragraph. 3. Add </p> to close that paragraph. Here’s what it looks like: <!DOCTYPE html PUBLIC “-//W3C//DTD...

read more