Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Q&A

  1. Most Web pages I've seen on the Internet use <center> instead of <div align="center">. Should I be using <center> to make sure my pages are compatible with older Web browsers?

    For maximum compatibility, you might prefer to use both the obsolete <center> tag and the new <div align="center"> tag, like this: <div align="center"> <center>. This text will be centered in both old and new browsers. Don't forget to end the centered section with </center></div>.

  2. I used <ul type="square">, but the bullets came out round, not square.

    Are you using Netscape Navigator 2 or higher or Microsoft Internet Explorer 4 or higher? Alternate bullet types don't show up in any other Web browsers yet.

  3. I've seen pages on the Internet that use three-dimensional little balls or other special graphics for bullets. How do they do that?

    That trick is a little bit beyond what this chapter covers. You'll find out how to do it yourself at the end of Chapter 10, "Putting Graphics on a Web Page."

  4. How do I "full justify" text, so that both the left and right margins are flush?

    You don't. HTML 4 does not support full-justified text. You will be able to full- justify text in the future using style sheets (see Hour 16), although that feature of the style sheet standard isn't supported by any current Web browser.

Share ThisShare This

Informit Network