Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

13 Converting to HTML/XHTML > 13.2 Setting up an HTML project > 13.2.9 Using XHTML tagging rules for HTML


13.2.9 Using XHTML tagging rules for HTML

Even if you are creating standard HTML, consider using XHTML tagging. These are the main points to remember:

Use lowercase for element and attribute names.

Enclose all attribute values in double quotes.

Explicitly close all tags.

Include a space after an element name, even in a closing tag (such as <br />).

All current HTML browsers accept these rules.

When you specify XHTML as your output type, in addition to a name attribute for anchors, Mif2Go provides an id attribute; for example:

<h3><a id="b2d" name="b2d"></a>B2D</h3>

This is because XML expects an id attribute for many purposes that are handled by the name attribute in HTML. The only way to suppress the id attribute is to specify HTML instead of XHTML as the output type.



13 Converting to HTML/XHTML > 13.2 Setting up an HTML project > 13.2.9 Using XHTML tagging rules for HTML