• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

!doctype

Explorer ,
Jun 10, 2020 Jun 10, 2020

Copy link to clipboard

Copied

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.

Views

383

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 10, 2020 Jun 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.

Votes

Translate

Translate
Community Expert ,
Jun 10, 2020 Jun 10, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 10, 2020 Jun 10, 2020

Copy link to clipboard

Copied

Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 10, 2020 Jun 10, 2020

Copy link to clipboard

Copied

LATEST

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.

 

File > New > New Document > HTMLFile > New > New Document > HTML

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines