Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What HTML version is this html

Tags:

html

doctype

What html version is code snippet below?

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="some info here ..." />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
like image 545
gandra404 Avatar asked Jan 13 '23 05:01

gandra404


2 Answers

Lets go line by line

<!DOCTYPE html> - HTML5 Doctype

<html xmlns="http://www.w3.org/1999/xhtml"> - Refer here

<head> - Document head element

<meta name="Generator" content="some info here ..." /> Description of the program you used to create the HTML document

<meta charset="utf-8" /> - Document Character Encoding, Good read

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> Read Here And Here


I would've certainly wrote a big fat description for each but realized that these were already asked in different questions, so thought to link them instead of repeating the same thing here again.

like image 118
Mr. Alien Avatar answered Jan 21 '23 19:01

Mr. Alien


The code snippet is mostly the start of an HTML5 document in XHTML (XML) serialization, sometimes confusingly called XHTML5.

It is not a conforming document, however; the current HTML5 CR does not allow the attribute http-equiv="X-UA-Compatible" (on rather formal grounds, but still).

like image 25
Jukka K. Korpela Avatar answered Jan 21 '23 17:01

Jukka K. Korpela