C
Call Me Tom
I am currently coding with the following Document Type simply because
it is used in the book I am using to learn HTML.
<!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">
blah blah blah
</html>
I've read elsewhere that "you should always use"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
blah blah blah
</html>
My code validates using the first method and fails using the second.
The failures (so far) have been due to using a trailing / to close
certain tags such as <link blah blah blah />.
Is one method better than the other? Better may be asking too much.
Is one method preferred over the other?
Tom
it is used in the book I am using to learn HTML.
<!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">
blah blah blah
</html>
I've read elsewhere that "you should always use"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
blah blah blah
</html>
My code validates using the first method and fails using the second.
The failures (so far) have been due to using a trailing / to close
certain tags such as <link blah blah blah />.
Is one method better than the other? Better may be asking too much.
Is one method preferred over the other?
Tom