The Grammar
The grammar is a composite of the HTML 4.01 and XHTML 1.0 standard tags and special extensions to the language as currently supported by the popular browsers.
The rules are in alphabetical order. The starting rule for an entire document is named html_document.
| [a] | ||
|---|---|---|
| [b] | ||
| [c] | ||
| [d] | ||
| [e] | ||
| [f] | ||
| [g] | ||
a_content [a] | ::= | heading |
| | text | |
a_tag | ::= | <a> |
{a_content}0 | ||
</a> | ||
abbr_tag | ::= | |
acronym_tag | ::= | |
address_content | ::= | p_tag |
| | text | |
address_tag | ::= | <address> |
{address_content}0 | ||
</address> | ||
applet_content | ::= | |
body_content | ||
applet_tag | ::= | |
b_tag | ::= | |
basefont_tag | ::= | |
bdo_tag | ::= | |
big_tag | ::= | |
blink_tag | ::= | |
block | ::= | {block_content}0 |
block_content | ::= | <isindex> |
| | basefont_tag | |
| | blockquote_tag | |
| | center_tag | |
| | dir_tag | |
| | div_tag | |
| | dl_tag | |
| | form_tag | |
| | listing_tag | |
| | menu_tag | |
| | multicol_tag | |
| | nobr_tag | |
| | ol_tag | |
| | p_tag | |
| | pre_tag | |
| | table_tag | |
| | ul_tag | |
| | xmp_tag | |
blockquote_tag | ::= | |
body_content | ::= | <bgsound> |
| | <hr> | |
| | address_tag | |
| | block | |
| | del_tag | |
| | heading | |
| | ins_tag | |
| | layer_tag | |
| | map_tag | |
| | marquee_tag | |
| | text | |
body_tag | ::= | <body> |
{body_content}0 | ||
| ||
caption_tag | ::= | |
center_tag | ::= | |
cite_tag | ::= | |
code_tag | ::= | |
colgroup_content | ::= | |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access