Menu
I want the lastest doctype can someone please help.
What DOCTYPE should i use?
should i use…
[code]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN”
“http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
or…
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
Why the big words the tree?[/quote]Because it's important.
What do you even mean?[/QUOTE]Pretty much as I say, being the most recent doesn't make something the best. There's plenty of new things that are either useless for the task at hand, or generally crappy.
O well im just going to use XHTML 1.1.[/QUOTE]Ok. How are you going to modularize your html? How much of XML are you going to use? SVG, too? I guess you are planning on your site being output to many different devices, hence the choice of xhtml1.1
All of those different versions of HTML and XHTML are for different uses. What exactly are you trying to accomplish? If you just want a web page then use HTML 4.01 Strict.
[/QUOTE]
<?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 xmlns="http://www.w3.org/1999/xhtml " xml:lang="en-US" lang="en-US">
<head profile="http://www.w3.org/2000/08/w3c-synd/#"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />[/QUOTE]
Using XHTML and CSS together the way they are meant to be used you can do 800% of what could be done with HTML 3.2. With HTML 4 everything is deprecated that XHTML 1.0 has deprecated and so there is no difference between the two except for a few extra closing slashes in singleton tags.
(X)HTML defines the content of your page. CSS defines how that content is to appear on the page.[/QUOTE]
XHTML you carnt which causes probems with doing some stuff.[/QUOTE]That's completely wrong. XHTML 1.0 comes in the same three flavours as HTML 4.01. Each flavour has the same elements and attributes be it XHTML or HTML.
With HTML 4 everything is deprecated that XHTML 1.0 has deprecated and so there is no difference between the two except for a few extra closing slashes in singleton tags.[/QUOTE]
Well said, MstrBob.In felgall's defence, HTML also has CDADA sections and HTML 4 doesn't allow the name attribute on FORM elements. HTML 4, however, was superceded by HTML 4.01 which does allow that useless attribute. But there are other differences and some of the diferences make XHTML [i]incompatable[/i] with HTML browsers. Differences like external entities and the different way the TBODY element is handled.
That's oversimplifying it. Besides things like XHTML being case-sensitive , cdata sections, etc. there are other subtle differences like HTML 4.01 Strict allowing the name attribute on form elements, while XHTML 1.0 Strict no longer allows it.
Too bad more people don't know that.[/QUOTE]
HTML also has CDADA sections[/QUOTE]
HTML 4 doesn't allow the name attribute on FORM elements. HTML 4, however, was superceded by HTML 4.01 which does allow that useless attribute.[/QUOTE]
True, I suppose it does, but it doesn't use the special designators that are used in XHTML to identify them.[/QUOTE]On the contrary it does, but as with several other features of HTML it is not well supported by browsers. See
I wouldn't say that the name attribute on form elements is useless. It allows the use of the DOM0 forms[] collection.[/QUOTE]??? The DOM0 forms[] collection works without form names.
Well said felgall.[/QUOTE]As is typical, this felgall is completely wrong about this.
Sometimes I wonder if the W3C made a mistake giving XHTML 1.0 the same element and attribute names as HTML 4.01.[/QUOTE]Strictly speaking, they didn't. For instance, they changed the P element to a xhtml:p element.
Strictly speaking, they didn't. For instance, they changed the P element to a xhtml:p element.
XSLT is another good place to watch out for those namespaces.[/QUOTE]
0.1.9 — BETA 6.17