Highlighted

!doctype

Explorer ,
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.

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

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.

Views

213

Likes

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

!doctype

Explorer ,
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.

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

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.

Views

214

Likes

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
Jun 10, 2020 0
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
Jun 10, 2020 1
Explorer ,
Jun 10, 2020

Copy link to clipboard

Copied

Thank you!

Likes

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
Reply
Loading...
Jun 10, 2020 0
Adobe Community Professional ,
Jun 10, 2020

Copy link to clipboard

Copied

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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Jun 10, 2020 0