Totel:19 Click:
1
2 3 4
XHTML Interview Questions And Answers
Page 1
Questions 1 What you understand about XHTML?
Answer
XHTML stands for eXtensible HyperText Markup Language.It is more formal and more Hard and fast version of HTML.We can define XHTML with XML dtd which make easy to handle XHTML.
Some information about XHTML are given below:
1.Target of XHTML is to replace HTML.
2.We can say that HTML4.01 and XHTML are almost same.
3.It is an more Hard and Fast version of HTML.
4.XHTML has a W3C recomendation.
5.We can say that XHTML is an Transition/combination of HTML and XML.
6.It has got official recommendation from W3C on 26th Jan 2000.
7.Using XHTML we can easily validate our document.
Questions 2 Why we use XHTML?
Answer
We use XHTML because of some important reasons those are given below:
1.XHTML can run on all new browsers.
2.It is an combination of HTML and XML so,it support many important features of them.
3.XHTML also give us facilitty to write well formed document.
4.XHTML has facility to extend.We perform this task with use of extra modules to do things withour pages.Wher as this facility not provided by HTML.
I have given you a HTML example in that example can on browsers successfully but it is not support all rules of HTML.
<html>
<head>
<title>This is wrong HTML code</title>
<body>
<h1>Wrong HTML code
</body>
In above example both html and head tags are not close.According to HTML rule it should not run.But it run successfully.So, It is an example of wrong html code.
Questions 3 How XHTML is differ from HTML?
Answer
XHTML is an more formal,Hard and Fast version of HTML.Some main difference b/w XHTML and HTML are given below:
1.In XHTML element should be properly nested.
2.In XHTML when we started an element it must have closed tag.
3.XHTML support only lowercase element.
4.In an XHTML document one root element is necessary.
But we can say that their is no much difference b/w HTML4.01 and XHTML.
Questions 4 Give an example shows properly nested element in XHTML?
Answer
In HTML we can improperly nested some element each other like that,
<b><i>Gives text as bold and italic</b></i>
Where as In XHTML, all elements must be properly nested within each other like that,
<b><i>Gives text as bold and italic</i></b>
When you create nested lists keep one thing in mind list must be within <li> and </li> tags.
<ul>
<li>Coca cola</li>
<li>Pepsi
<ul>
<li>black</li>
<li>blue</li>
</ul>
</li>
</ul>
Questions 5 Give example shows Element must be closed in XHTML?
Answer
XHTML said an Empty and Non-Empty Elements must be closed.
Example shows the case of Non-Empty Element.
<p>Write here paragraph</p>
<p>Write here another paragraph</p>
Example shows the case of Empty Element.
1.Use to break <br />
2.Use to horizontal rule <hr />
3.<img src="r4r.gif" alt="r4r logo" />
Goto Page:
1
2 3 4
XHTML Objective Questions And Answers
XHTML Objective Questions And Answers
XHTML Interview Questions And Answers
XHTML Interview Questions And Answers
R4R,XHTML Objective, XHTML Subjective, XHTML Interview Questions And Answers,XHTML,XHTML Interview,XHTML Questions ,XHTML Answers