Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Q&A

  1. How do I use positioning and layers to make text and graphics fly around the page? Isn't that what they call dynamic HTML?

    Dynamic HTML is a general term (used mostly for marketing purposes) meaning anything that makes Web pages move. You'll learn more about that in Hour 19, "Web Page Scripting for Non-Programmers," and Hour 20, "Setting Pages in Motion with Dynamic HTML."

    In a nutshell, scripting lets you use a simple programming language called JavaScript to modify any HTML or style sheet information (including positioning) on-the-fly in response to the mouse movements and clicks of people who visit your pages.

  2. Say I link a style sheet to my page that says all text should be blue, but there's a <span style="font-color: red"> tag in the page somewhere. Will that text come out blue or red?

    Red. Local inline styles always take precedence over external style sheets. Any style specifications you put between <style> and </style> tags at the top of a page will also take precedence over external style sheets (but not over inline styles later in the same page).

  3. Can I link more than one style sheet to a single page?

    Sure. For example, you might have a sheet for font stuff and another one for margins and spacing—just include a <link /> for each one.

Share ThisShare This

Informit Network