What does an xhtml document look like?



What does an xhtml document look like?..

Answer / Osh Gupta

An XHTML document starts with a doctype declaration, followed by XML declarations and then HTML tags such as <html>, <head>, and <body>. Unlike HTML, XHTML documents should be well-formed (all elements must be properly nested) and use only lowercase letters for tag names. For example:
nn<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
n<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My XHTML Document</title>
</head>
<body>
<h1>Welcome to my XHTML page!</h1>
</body>
</html>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is difference between html and html5?

1 Answers  


Explain image map?

1 Answers  


What is meta mean in lol?

1 Answers  


What is the concept of Application Cache in HTML5? What are its advantages?

1 Answers  


Explain Canvas?

1 Answers   HCL,


how do we create a worker thread in JavaScript?

1 Answers  


What is xhtml modularization? Why xhtml modularization?

1 Answers  


What is difference between html5 and html4?

1 Answers  


What is title tag in html?

1 Answers  


What is a nav tag?

1 Answers  


What is the role of html?

1 Answers  


What is the difference between html & html5?

1 Answers  


Categories