Paragraph XHTML tag


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

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

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



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

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

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

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


Fail Strict Validation

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