Heading XHTML tag


Heading Transitional   Strict
<h1></h1> tags example tags example
Must contain in opening tag ---------------------- ---------------------- ---------------------- ----------------------
Must not contain in opening tag span="" 
name="" 

----------------------
<h1 span="txt">red</h1>
<h1 name="txt">red</h1>

----------------------
As Transitional
As Transitional
 
align="left"
align="center"
align="right"
align="justify"



<h1 align="left">txt</h1>
<h1 align="center">txt</h1>
<h1 align="right">txt</h1>
<h1 align="justify">txt</h1>
Can contain in opening tag id=""
class=""
title=""

align="left"
align="center"
align="right"
align="justify"

Pass Transitional  Validation
<h1 id="red">text</h1>
<h1 class="red">text</h1>
<h1 title="red">text</h1>

<h1 align="left">txt</h1>
<h1 align="center">txt</h1>
<h1 align="right">txt</h1>
<h1 align="justify">txt</h1>
As Transitional
As Transitional


Fail Strict Validation

Must contain between tags Text 
or non-breaking space
<h1>Text</h1>
<h1>&nbsp;</h1>
As Transitional  
Can contain between tags <br />, <em>, <strong>
<span>, <a>,
  As Transitional  
Must not contain between tags <h1-6>, <p>, <div>,
<table>, <ul>, <ol>, <img>
  As Transitional  
Must not be contained in <h1-6>, <p>, <ul>, <ol>,<span>, <img>   As Transitional  
Can be contained in <div>,<table>   As Transitional