Find more freelance jobs
|
Start Tag
NN IE W3 Purpose
<script>
3.0 3.0 3.2 Defines a script
<noscript>
3.0 3.0 4.0 Defines a noscript section for browsers that do not support scripting
<object>
3.0 4.0 Defines an embedded object
<param>
3.0 3.0 3.2 Defines run-time settings (parameters) for an object
<applet>
Deprecated. Use <object> instead
List of differences:
·
Tags and attributes must be in lowercase
·
All XHTML elements must be closed
·
Attribute values must be quoted and minimization is forbidden
·
The id attribute replaces the name attribute
·
The script element needs a type definition
·
Documents must conform to XML rules
·
XHTML documents have some mandatory elements
Tags and attributes must be in lower case
This is because XHTML documents are XML applications. XML is case-sensitive. Tags like <br> and <BR> are interpreted as different tags. This is wrong: <BODY BGCOLOR="#CCCCCC"> <P>This is a paragraph<P> </BODY> This is correct: <body bgcolor="#CCCCCC"> <p>This is a paragraph</p> </body> All XHTML elements must be closed Non-empty elements must have an end tag. This is wrong: <p>This is a paragraph <p>This is another paragraph This is correct: <p>This is a paragraph</p> <p>This is another paragraph</p> |