O'Reilly logo

HTML & XHTML: The Definitive Guide, 5th Edition by Chuck Musciano, Bill Kennedy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 supported by the latest versions of Netscape Navigator and Microsoft Internet Explorer.

The rules are in alphabetical order. The starting rule for an entire document is named html_document.

a_content [a]

::=

heading  
 

|

text

 

a_tag

::=

<a>  
   {a_content }0  
   </a>  

abbr_tag

::=

<abbr> text </abbr>

 

acronym_tag

::=

<acronym> text </acronym>

 

address_content

::=

p_tag

 
 

|

text

 

address_tag

::=

<address>  
   {address_content }0  
   </address>  

applet_content

::=

{<param>}0  
   body_content  

applet_tag

::=

<applet> applet_content </applet>

 

b_tag

::=

<b> text </b>

 

basefont_tag

::=

<basefont> body_content </basefont>

 

bdo_tag

::=

<bdo> text </bdo>

 

big_tag

::=

<big> text </big>

 

blink_tag

::=

<blink> text </blink>

 

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

::=

<blockquote> body_content </blockquote>

 

body_content

::=

<bgsound>

 
 

|

<hr>

 
 

|

address_tag

 
 

|

block

 
 

|

del_tag

 
 

|

heading

 
 

|

ins_tag ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required