Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books

XHTML


XHTML interview questions


<<Previous  Next>>

XHTML - posted on August 27, 2008 at 17:10 pm by Amit Satpute

Why the need for XHTML?

If a script in an HTML document is not well formed, small devices like mobile phones fail to display the content properly. Also, upgrading all the browsers to support XML is a timely affair. An intermediate solution is XHTML that is a combination of HTML and XML. In XTML the content has to be well formed so that there is no bad HTML.

XHTML vs HTML

XHTML
Elements must be properly nested
Elements must be closed
Elements must be in lowercase
Documents must have one root element

HTML
Elements need not be properly nested
Elements need not be always closed
Elements need not be in lowercase
Documents need not have one root element

Explain the XHTML syntax rules.

Some Syntax rules that need to be followed with XHTML are:

That Attribute names must be in lower case, their values must be in quotes and their minimization is done away from usage.

Also the ‘name’ attribute has been replaced by the ‘id’ attribute. The XHTML DTD defines mandatory elements.

<<Previous  Next>>



 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.