Javascript Tutorial Part 26

myitcareer.org-Your IT Career Partner For Life. Please Bookmark It.
Homework Help | Buy Book | Buy Phone | Top Web Hosts | Hire Web Designer
Home | Interview Questions And Answers | Plan Wedding | Online Tuition
Top Domain Registrars | Hire Freelancer | Hosting Charges | Hindi News

This is wrong: <img src="picture.gif" name="picture1"/> This is correct: <img src="picture.gif" id="picture1"/> (To interoperate with older browsers for a while, you can try to use both name and id, with identical attribute
values). IMPORTANT Compatibility Note: To make your XHTML compatible with today's browsers, you should add an extra space before the "/"
symbol like this: <img src="picture.gif" id="picture1" /> Script and Style elements In XHTML the characters like "<" and "&" are treated as a part of the markup. To avoid this inside scripts or
other elements, wrap the content with a CDATA definition like this: <script>
<![CDATA[
... script content ...
]]>
</script> Documents must conform to XML rules Since XHTML documents are XML applications, XHTML documents must conform to the following XML
rules: Elements must be properly nested In HTML some elements can be improperly nested within each other like this: <b><i>This text is bold and italic</b></i> In XHTML all elements must be properly nested within each other like this <b><i>This text is bold and italic</i></b> Documents must be well-formed All XHTML elements must be nested within the <html> root element. All other elements can have sub
(children) elements. Sub elements must be in pairs and correctly nested within their parent element. The
basic document structure is:
Previous| Next