1
For many years I’ve been using these tags at the beginning of my pages:
<!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">
That code I inherited over time from many years ago and I always kept in the pages, and I never had any problems.
Today I came across an alert message on the IE console (Windows 10, IE11):
HTML1524: HTML5 DOCTYPE inválido. Convém usar o formato interoperável "<!DOCTYPE html>".
After all, I should delete this line with !DOCTYPE
or change it? The tag <html>
I must keep it as it is or leave it alone <html>
?
Only the man. Obg!
– Sam
And the parade of
<html>
?– Sam
@dvd I added the answer :)
– user45722
@dvd I believe that if what you want is to use HTML5 instead of XHTML5, you should remove it.
– user45722
I must leave only
<html>
?– Sam
@dvd I found something about, here at Sopt also: https://answall.com/questions/58613/como-alterar-um-document-html-4-para-html-5?rq=1
– user45722
Let’s go continue this discussion in chat.
– user45722
No po. I just don’t know much about doctype.
– Sam