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

Nesting lists in HTML

You can create subcategories by nesting lists within lists. Some common uses for nested lists include ✓ Site maps and other navigation tools ✓ Tables of content for online books and papers ✓ Outlines You can combine any of the three kinds of lists to create nested lists, such as a multilevel table of contents or an outline that mixes numbered headings with bulleted list items as the lowest outline level. The following example starts with a numbered list that defines a list of things to do for the day and uses three bulleted lists to...

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