Wednesday, September 28, 2011

About few tags in HTML

few rules that in HTML
1) The head must have, at
minimum, two children, a meta element defining the character set, and a title:
2) meta tag do not have a close tag,ex:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
3) link tag in head also do not have a end tag ex:
<link type="text/css" rel="stylesheet" href="hello-world.css">
4) html5 doctype tag is like this
<!DOCTYPE HTML>
XHTML 1.0 Transitional: is like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and The DOCTYPE tells the browser how to render the document. Which DOCTYPE you use greatly affects
CSS styling and markup validation

No comments:

Post a Comment