Skip to main content
Ezad
Inspiring
August 24, 2025
Answered

DocType Validation Error

  • August 24, 2025
  • 1 reply
  • 347 views

Hello
Here is my template page:


https://meherbabalibrary.org/pages/radiohour-1969.html

 

The pages I plan to create will be with text (word documents), insert of PDF document,
Insert of MP4 videos and insert of photographs. Nothing complicated. I do not want to change the appearance, the visual of this template.

 

What I did was run validation. One error was located on this template page. It is Doctype.

 

Do I ignore the error or is it bes to change the text string. I page shows it is HTML 5

 

Once I fix this error below I will then use a CSS link to begin to develop the pages.

 

Error:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Traditional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Traditional.dtd">

 

Thanks

Correct answer BenPleysier

When you create a new HTML document in Dreamweaver, it will automatically show the HTML5 doctype:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

 

But to be more precise, the minimal requirement for modern HTML documents is:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>

<body>
</body>
</html>

 

As a side note, do you realise that there is a missing <script> tag missing from the JavaScript starting on line 105?

 

1 reply

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
August 24, 2025

When you create a new HTML document in Dreamweaver, it will automatically show the HTML5 doctype:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

 

But to be more precise, the minimal requirement for modern HTML documents is:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>

<body>
</body>
</html>

 

As a side note, do you realise that there is a missing <script> tag missing from the JavaScript starting on line 105?

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Ezad
EzadAuthor
Inspiring
August 24, 2025

Hello

Just now read 'As a side note, do you realise that there is a missing <script> tag missing from the JavaScript starting on line 105?

I don't understand.

Line 105 shows:

function MM_preloadImages() { //v3.0

Nancy OShea
Community Expert
Community Expert
August 24, 2025

Which version of Dreamweaver are you using?  I ask because this code is outdated.  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Traditional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Traditional.dtd">

   

If you're using an outdated Template, you're setting yourself up for more failure later. 

 

CODE TUTORIALS:

- https://www.w3schools.com/html/
- https://www.w3schools.com/css/
- https://www.w3schools.com/js/
- https://www.w3schools.com/bootstrap/

 

Nancy O'Shea— Product User & Community Expert