Troubleshooting

     

Deleting Content

graphics/troubleshooting_icon.jpg

I selected a tag and deleted it, only to find all my content had disappeared. What happened ?


You likely selected the body tag and pressed Delete while attempting to delete another tag or some portion of your content. When you use the Tag Selector for deletion, select the body tag, and then press Delete, the head content remains but the body tag returns to a completely empty state. Of course, this also means you should use this feature with care when selecting the body or other large containers on a page.

Validation Errors Related to Text

I'm getting validation errors related to text materials. Why?

This might be due to an issue with browser display.

Browsers rely on certain display models to interpret HTML and XHTML. Two such display models are referred to as inline and block . An element that is inline appears within the text itself, and therefore no carriage return is applied by the browser. Examples of inline elements include a , span , and any text formatting such as b , i , and u . Block elements are complete sections after which browsers apply a carriage return automatically. Examples of block elements include all headers, p , div , and table .

Strict forms of markup expect that the author will place all inline elements within a properly described block. This means that text should appear within a header, paragraph, list, or any other block element but should not appear alone. So, in a strict document, the following is incorrect and causes a validation error:

 Send <a href="mailto:molly@molly.com" title="email molly">me</a> an e-mail. 

To avoid errors, make sure your text is properly placed within a block element, such as a paragraph:

 <p>Send <a href="mailto:molly@molly.com" title="email molly">me</a> an e-mail.</p> 

Interestingly, this problem doesn't occur with transitional DTDs, which do not require adherence to block and inline rules.

Font Use

I want to use the font element and still have valid documents. Is that possible?

You can do so by following these DTDs:

  • HTML 4.0 transitional

  • HTML 4.01 transitional

  • XHTML 1.0

You can't use the font element in any strict HTML or XHTML document or with the XHTML 1.1 public DTD. As you are already aware, the use of the font element is highly discouraged in favor of CSS.



Using Macromedia Studio MX 2004
Special Edition Using Macromedia Studio MX 2004
ISBN: 0789730421
EAN: 2147483647
Year: N/A
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net