UB Computer Science and Engineering logo

Extensible Hypertext Markup Language (XHTML)

XHTML (Extensible HyperText Markup Language) is a family of XML markup languages that mirror or extend versions of the widely-used Hypertext Markup Language (HTML), the language in which web pages are written.

Example

Suffix your XHTML pages with file extension: .html (preferred) or .htm. Set their permissions to be world-readable (chmod 644). A minimal hello.html says, "Hello, World!".

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html
  PUBLIC "//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  <head>
    <title>Hello, World! (XHTML)</title>
  </head>
  <body>    
    <h1>Hello, World!</h1>
  </body>
</html>

References

  1. https://en.wikipedia.org/wiki/XHTML

This page last modified: Mon, June 25, 2018 16:12:08

Send your comments to: cse-webmaster@buffalo.edu

© 2024 University at Buffalo. All rights reserved. | Privacy | Accessibility