• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

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">




0
hankknight
Asked:
hankknight
  • 2
1 Solution
 
fuzzboxerCommented:
Is this a trick question?
0
 
b0lsc0ttCommented:
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
 
b0lsc0ttCommented:
I'm glad that helped.  Thanks for the grade, the points and the fun question.

bol
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now