Sp 247

From Htmlpedia
Revision as of 12:19, 10 November 2007 by Mgueury (talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

OpenSP: NET-enabling start-tag requires SHORTTAG YES

Cause:

The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HMTL 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

Example:

Badtextexample textexample
Goodtextexample textexample

Solution:

textexample textexample

References: