/    Sign up×
Community /Pin to ProfileBookmark

http-equiv … charset=

Someone showed me some lovely code, a day or two ago.
It included a line http-equiv for charset=
but also – and that’s what caught my eye –
some http-equivs for type= “text/css” and type=”text/javascript”.
Those lines appealed to a lazy man like me.
Any volunteers?
JimJ

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@holyhttpMar 29.2007 — <meta http-equiv="content-type" content="text/html; charset=utf-8" />
Copy linkTweet thisAlerts:
@WebJoelMar 29.2007 — <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

prepares browsers for what is to come I guess (??). It's in my template-generator.

Below: my most bullet-proof (but never-yet-perfect!) template:
[code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title></title>
<style type="text/css">
* {border:0; padding:0; margin:0;}/* Set everything to "zero" */

body {min-height:100%; height:101%;
font:x-small Arial, Verdana, sans-serif;
voice-family: ""}"";voice-family:inherit;
font-size:small;/*for IE 5.5 */
} html>body {font-size:small;}
/*font-size: small; voice-family: ""}"";
voice-family: inherit; font-size: medium;*/} /* Assist IE rendering height, keyword-font sizes, etc. */

p {font-size: 90%; line-height:1.2em; margin-top:10px;}
h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, serif; background-color:none;
font-style:normal; font-variant:normal; font-weight:normal; margin:11px 0 0 10px;}
h1{font-size: 1.93em; margin-top:12px;}
h2{font-size: 1.72em; margin-top:12px;}
h3{font-size: 1.52em; margin-top:12px;}
h4{font-size: 1.42em; margin-top:12px;}
h5{font-size: 1.32em; margin-top:12px;}
h6{font-size: 1.21em; margin-top:12px;}
</style>

<script type="text/javascript"><!--
// -->
</script>
<link rel="shortcut icon" href="favicon.ico"><!-- path to your favicon -->
</head>
<body>



</body>
</html>[/code]
Copy linkTweet thisAlerts:
@JimJauthorMar 30.2007 — Thanks, WebJoel,

That's exactly what I was looking for.

I must have spotted it on another of your replies.

Many thanks,

JimJ
Copy linkTweet thisAlerts:
@JimJauthorApr 03.2007 — Maybe I should not have been so pleased.

I've discovered since that meta tags are not such a good thing.

Apparently they were provided, not for the benefit of developers,

but for search-engines. But then they abused so much that search-engines have stopped using them. We are now advised not to use them ! ! !

http://www.webmarketingnow.com/tips/meta-tags-uncovered.html#content-script

However, I'm still feeling lazy. So perhaps I'll continue to use them.

JimJ
Copy linkTweet thisAlerts:
@WebJoelApr 03.2007 — If used correctly with humility and succinct message, -I see no problem. It's those sites that stuff a hundred or two repetative phrases into a META tag that they think will boost their ranking. A sentence or maybe two short sentences should suffice for description=""

but I have built sites that indexed just fine without using META beyond the basic that my template has.

Interesting article. -They do not seem to have any real recommendation except for 'do not use', huh? ?
×

Success!

Help @JimJ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...