Click to See Complete Forum and Search --> : header elements, what's important to include?...meta http-equiv="Content-Type"...


toptomato
04-17-2010, 02:47 PM
Hey all,
i've only recently started adding the meta tag below to my pages. this is because i was relying on BBEDit to 'start' my pages for me, and BBEdit does not include this. I'm also now trying to follow 'best practices' which i confess i haven't been until now.

meta http-equiv="Content-Type" content="text/html;charset=utf-8"

how important is this to include?

for the sake of discussion, i'm listing here the header page elements (in order) that i'm now using on my pages. as an author of html pages, i'd like to hear from others what you're philosophy is on this. thank you


<!DOCTYPE..... declaration
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" ....
<meta name="keywords" .....

<script type="text/javascript" ...links to external .js files
<link rel="stylesheet"..... links to external .css files

<style ..local page styles (which i actually stopped using...
<script type="javascript" ....local js which i hardly ever use anymore...

</head>

thanks for reading,
Tom

ryanbutler
04-17-2010, 04:16 PM
meta http-equiv="Content-Type" content="text/html;charset=utf-8"
how important is this to include?

Very, it tells the web server and the browser what content to serve up and character encoding. Think of it like going to a restaurant and hoping a cook knows what to serve you without an order ticket. Keywords and description are fine, though there are heated debates whether search engines use them, I for one, don't know what ones they use or don't use for a fact. Keywords and description don't hurt anything.

Yep, stick to the externalizing of files, though they can be local, since you technically develop stuff locally.

toptomato
04-17-2010, 04:57 PM
thanks