Hi, I'm beginning to learn some HTML and CSS. I've been playing around with DreamWeaver CS5 and when I start a new Project there is the following coding on the top of the page:
<!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" />
Now I know that the coding starts at <html> so can I erase the rest of the junk?
Does !DOCTYPE html PUBLIC and the rest of the coding have any use? What is the purpose?
Should it not just be like this:
<html>
<head>
<head>
</head>
<body>
</body>
</head>
<html/>
<!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" />
Now I know that the coding starts at <html> so can I erase the rest of the junk?
Does !DOCTYPE html PUBLIC and the rest of the coding have any use? What is the purpose?
Should it not just be like this:
<html>
<head>
<head>
</head>
<body>
</body>
</head>
<html/>