EnSimpelSide.html
This is an example of a simple XHTML page. Here's the simple code.
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>A simple page</title> </head> <body> <p>Lises nice simple page</p> </body> </html>These tags and attributes mean:
This is an XHTML page (shown in the tags <?xml>, <!DOCTYPE> and <html>) (check it against the specification of XHTML, in the .dtd file).
The title of the page (shown on the upper edge of the browser, and saved when I make a bookmark) is "A simple page" (shown in tag <title>).
The content of this page should be "Lises nice simple page" (shown in the tag <body>).
An XHTML document is saved in a file, ending with .html - or maybe just htm.
<head> and body marks the "secret" (not to be read by humans) and public content.
<p> marks a paragraph. Paragraphs are surrounded by line breaks and empty lines. If you just want a line break, use <br />.
Concept last updated: 12/09 2003.
Relations
|
Other sources
- Beginning XHTML; Frank Boumphrey, CG, DR, JR, SS, TW - 3 Getting started
- Diverse opgaver - Dreamweaver + EnSimpelSide.html
- EnSimpelSide.html -
- EnSimpelSide.xml -
- The Web Wizard's Guide to Dreamweaver; James G. Lengel - Chapter 1, Introduction to Dreamweaver
- XHTML; Alf - 2.1 Sidens indhold + 2.2 Forklaring på koden