Tags
HTML , XHTML
Asked 8 years ago
10 Oct 2016
Views 1117
css-learner

css-learner posted

Why meta tags : charset and http-equiv and viewport must come first in head tage ?

Why meta tags : charset and http-equiv and viewport must come first in the head; any other head content must come after these

<meta charset="utf-8">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1">
shyam

shyam
answered Nov 30 '-1 00:00

because meta viewport define how the webpage display in the mobile , so to display web page well in mobile . it should have width=device-width, initial-scale=1
Post Answer