Put things in order...

liunx

Guest
I wonder what's the right order (if there's one) for the begining of any HTML page.<br />
<br />
Mine look like that:<br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
<html><br />
<br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255"><br />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"imgs/design.css" type="text/css"><br />
<script language="JavaScript1.2" src=http://www.webdeveloper.com/forum/archive/index.php/"scripts.js" type="text/javascript"></script><br />
<title>mywebsite.com</title><br />
</head><br />
<br />
<body><br />
<br />
Is that ok?<!--content-->personally i would go like this, but you're fine with what you have:<doctype><br />
<html><br />
<head><br />
<title></title><br />
<meta><br />
<link><br />
<style></style><br />
<script></script><br />
</head><br />
<body><br />
stuff<br />
</body><br />
</html><!--content-->why?<!--content-->mainly for my own reference: if i keep everything in the same order (which i don't do enough), then i don't spend as much time hunting for it. unless someone else here says otherwise, i know of no particular order that anything in the <head> tag has to be.<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"><br />
<html lang="en" dir="ltr"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><br />
<title></title><br />
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"layout.css"><br />
<script language="JavaScript1.2" src=http://www.webdeveloper.com/forum/archive/index.php/"scripts.js" type="text/javascript"></script><br />
</head><br />
<body><br />
<br />
</body><br />
</html><br />
<br />
<br />
The basic starting point of all my pages are like this:<br />
<br />
<br />
<!DOCTYPE html <br />
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><br />
<title></title><br />
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"layout.css" /><br />
<script language="JavaScript1.2" src=http://www.webdeveloper.com/forum/archive/index.php/"scripts.js" type="text/javascript"></script><br />
</head><br />
<body><br />
<br />
</body><br />
</html><br />
<br />
<br />
EDIT:<br />
No, I don't believe they have to be in any order at all.<!--content-->...<!--content-->
 
Back
Top