XHTML Document Example


What Does an XHTML Document Look Like?

✍: FYIcenter.com


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 looks 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"
  <title>My First XHTML Document</title>
 <p>Hello world!</p>


Relation between HTML and XHTML

HTML Document Example

Introduction of HTML

⇑⇑ HTML Tutorials

2024-01-31, 1188🔥, 0💬