Advance XHTML Programming Question:
Download Job Interview Questions and Answers PDF
What Does an XHTML Document Look Like?
Answer:
An XHTML document is a normal text file with predefined tags mixed with the text contents of the document. Tags are enclosed in pairs of angle brackets: "<" and ">".
Below is how a simple XHTML document will look like if you open it in a text editor:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My First XHTML Document</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
Below is how a simple XHTML document will look like if you open it in a text editor:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My First XHTML Document</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
Download XHTML Interview Questions And Answers
PDF
Previous Question | Next Question |
What Is XHTML? | What Is the Relation between XHTML and HTML? |