Skip to main content
Inspiring
June 10, 2020
Answered

!doctype

  • June 10, 2020
  • 2 replies
  • 575 views

I created some html files years ago with DW CC6. When creating a new html file, DW CC6 always placed this code at the top of the file.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">

 

More recent versions of DW only place the following code at the top:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head> 

 

Can I assume that I can replace the older code in the older files, which links to an https site, with the more simple code that the more recent versions of DW place at the top of a newly created html file?

Thank you for any responses.

    This topic has been closed for replies.
    Correct answer Jon Fritz

    The HTML 5 Doctype Declaration is much simpler than the old XHTML 1.0 Transitional was. 

    The more recent version is correct, per html standards, nothing to worry about.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    June 10, 2020

    Although HTML5 is the current web standard, there might be times when you want another doc type to support deprecated code.  Select HTML5, HTML 4 or XHTML 1 from the Doc Type drop-list.   See screenshot.

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    June 10, 2020

    The HTML 5 Doctype Declaration is much simpler than the old XHTML 1.0 Transitional was. 

    The more recent version is correct, per html standards, nothing to worry about.

    RJWAuthor
    Inspiring
    June 10, 2020

    Thank you!