Jump to content

DocType conflict


Buoka

Recommended Posts

I am using HTML Tidy linked into FireFox to ensure my code remains clean. It is - apart from a DTD warning.The warning I receive is:

DocType given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
and
Document content looks like XHTML 1.0 Transitional
My code in head is
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

What can/must I do?

Link to comment
Share on other sites

Remove this and check it again.

<?xml version="1.0" encoding="UTF-8"?>

The XML declaration can create problems. It is not required and, in fact, the w3c recommends not using it until Browsers handle it correctly.

Link to comment
Share on other sites

Remove this and check it again.
<?xml version="1.0" encoding="UTF-8"?>

The XML declaration can create problems. It is not required and, in fact, the w3c recommends not using it until Browsers handle it correctly.

Thanks jlhaslip
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...