Is the "&" character illegal in HTML 4.01 Strict documents?

I have always seen statements not to use &HTML in documents by itself, and use instead &.

So I tried putting &in the title and content of the page, but they check:

http://topics2look.com/code-examples/HTML/ampersand-by-itself-can-validate.html

Is &HTML 4.01 legal in itself Strict documents?

+5
source share
4 answers

section W3C HTML 4.01 Strict Charset says

References to four characters deserve special mention, as they are often used for symbols:

* "&lt;" represents the < sign.
* "&gt;" represents the > sign.
* "&amp;" represents the & sign.
* "&quot; represents the " mark.

, "<", "<" (ASCII 60), ( ). , " > " (ASCII decimal 62) " > " ( ) .

"& amp;" (ASCII 38) "&" ( ). "&"; CDATA.

"should" "must", , .

, .

, SO, ...; -)

+2

HTML 4, , SGML. , . HTML 4 , ( " " & "& raquo; " should ", " must ").

XML 4 XML- (XHTML), XML (& CharData:: = [^ &] * - ([^ &] * ']] > '[< &] *) & raquo;)

HTML 5 HTML-. (" . , . ( .) & raquo;)

HTML 5 XML XML (& CharData:: = [^ < &] * - ([^ < &] * ']] > ' [^ < &] *) & RAQUO;)

+1

, .

HTML 4.01, HTML 4 Strict doctype, , FONT.

XHTML. , XHTML XML, ( ).

, XHTML, , http://en.wikipedia.org/wiki/XHTML. HTML .

, HTML - , , doctype.

" " "unescaped ampersand", - .

+1
0

All Articles