Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

Attribute Minimization Is Forbidden 


This is wrong:
<input checked>
<input readonly>
<input disabled>
<option selected>
<frame noresize>


This is correct:
<input checked="checked" />
<input readonly="readonly" />
<input disabled="disabled" />
<option selected="selected" />
<frame noresize="noresize" />

Here is a list of the minimized attributes in HTML and how they should be written in XHTML:

HTML XHTML 
compact compact="compact"
checked checked="checked"
declare declare="declare"
readonly readonly="readonly"
disabled disabled="disabled"
selected selected="selected"
defer defer="defer"
ismap ismap="ismap"
nohref nohref="nohref"
noshade noshade="noshade"
nowrap nowrap="nowrap"
multiple multiple="multiple"
noresize noresize="noresize"
More Tutorial
  1. XHTML - Syntax Rule
  2. XHTML - Attribute Names Must Be In Lower Case
  3. XHTML - Attribute Values Must Be Quoted
  4. XHTML - Attribute Minimization Is Forbidden
  5. XHTML - The Lang Attribute
  6. XHTML - Mandatory XHTML Elements

Tutorial


References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References