Defining Document Type

Hello,

Which of the following ways is the best way to define the document type?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">




LVL 16
hankknightAsked:
Who is Participating?
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
The last method is the one you will see in recommendations and specs but all should be treated the same in browsers.  The added spaces should not be required for the DOCTYPE tag to be read and handled correctly.

bol
0
 
fuzzboxerCommented:
Is this a trick question?
0
 
b0lsc0ttIT ManagerCommented:
I'm glad that helped.  Thanks for the grade, the points and the fun question.

bol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.