character encoding - HTML: How to initiate HTML document header -
i still pretty new html , programming in general more of curiosity question asking want use right way.
whenever have initiate html document start below , never observed issues. however, when work in adobe dreamweaver , create new document there shows me below initiation.
of course can overwrite i know difference , when make sense use of adobe's suggested attributes or add else first 4 lines.
can me ?
my current initiation:
<!doctype html> <html> <head> <meta charset="utf-8" /> <!-- ... --> html initiation shown in dreamweaver:
<!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"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <!-- ... --> many in advance, mike
<!doctype html>
this html 5. current standard.
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
this xhtml 1.0 transitional. standard 2000 designed combine transition html 3.2 (1997) html 4 (1998) , xml (which never saw wide use, except while pretending html 4.
can explain single attributes different mine , when make sense use of them ? esp. regarding
"public",
that isn't attribute. public portion of doctype declaration tells client can download dtd. (as opposed system portion gives identifier can use local catalogue).
browsers have never cared dtds.
"xmlns",
xml namespace. lets distinguish between elements , attributes have same name different specifications.
"http-equiv"
"this equivalent http header name"
it largely joke. nothing implements except character encoding portion of content-type header , html 5 gives nicer syntax specifying that.
"content".
the value of above.
Comments
Post a Comment