html validator tutorial


This code used to validate the html code that you have designed for example html registration form with validation

<form action=”http://validator.w3.org/check&#8221; method=”post” name=”validator” enctype=”multipart/form-data”>

<table width=”550″ cellspacing=”3″ cellpadding=”0″ border=”0″>

<tbody>
<tr>

<td width=”30%”><b>URL of page:</b></td>

<td width=”70%”> <input onclick=”toogleinput(‘url’)” value=”http://&#8221; name=”turnoff” size=”40″ id=”uri” style=”color: gray;”> <b>OR</b></td>

</tr>

<tr>

<td width=”30%”><b>Upload a file:</b></td>

<td width=”70%”><input type=”file” onclick=”toogleinput(‘upload’)” name=”uploaded_file” size=”40″ id=”uploaded_file” style=”color: black;”></td>

</tr>

<tr>

<td width=”30%”><b>Doctype:</b></td>

<td width=”70%”><select name=”doctype” id=”doctype”>
<option selected=”” value=”Inline”>Auto Detect (from doctype on page)</option>

<option>XHTML 1.1</option>
<option>XHTML Basic 1.0</option>

<option>XHTML 1.0 Strict</option>

<option>XHTML 1.0 Transitional</option>

<option>XHTML 1.0 Frameset</option>

<option>ISO/IEC 15445:2000 (ISO-HTML)</option>

<option>HTML 4.01 Strict</option>

<option>HTML 4.01 Transitional</option>

<option>HTML 4.01 Frameset</option>

<option>HTML 3.2</option>

<option>HTML 2.0</option>

</select></td>
</tr>
<tr>
<td width=”30%”>&nbsp;</td>

<td width=”70%”>&nbsp;</td>

</tr>

<tr>

<td width=”30%” valign=”top”><b>Optional:</b></td>

<td width=”70%”>

<table width=”100%” cellspacing=”0″ cellpadding=”0″ border=”0″ style=”font-size: 90%”>

<tbody>
<tr>

<td>

<input type=”checkbox” name=”ss” value=”1″ id=”ss”> Show HTML Source.</td>

<td>
<input type=”checkbox” name=”outline” value=”1″ id=”outline”> Show
Outline of page using H1 – H6 elements on the page.</td>

</tr>

<tr>

<td>
<input type=”checkbox” name=”sp” value=”1″ id=”sp”> Show SGML Parse Tree.</td>

<td>
<input type=”checkbox” name=”noatt” value=”1″ id=”noatt”> Suppress
attributes from the parse tree to make it more readable.</td>
</tr>
</tbody></table>
<p><input type=”submit” value=”Validate this page”></p></td>
</tr>

</tbody>
</table>

</form>

Advertisements
About

myself pramodh kumar yet another php developer from India and have worked on oops,procedural,yii framework,codeigniter,wordpress,joomla,api and more.

Tagged with: , , , , , , , , , , , , , , , , ,
Posted in html validator tutorial

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow php tutorial on WordPress.com
categories
Calendar
June 2012
M T W T F S S
    Jul »
 123
45678910
11121314151617
18192021222324
252627282930  
Follow me on Twitter
Blog Stats
  • 73,826 hits
%d bloggers like this: