Jump to content

Which order in the Doctype


gawain

Recommended Posts

Hi everybody.I've got a simple file with a background image.A) If I've got this doctype

<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" />
I can't see anything in FFox, whereas I can see just a slice of the image in IExplorer 7According to this page http://www.w3schools.com/xhtml/xhtml_dtd.asp ,it should be the right order:1) doctype2) html tag:) If I've got this doctype
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" /><!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I can see everything well both in FFox and in IExplorer 7.But the html tag comes firstOne more question: what about when I close the tag in a metatag: is that correct to write the slash at the end, like this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Thanks for any hint
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...