Forum Moderators: open
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>Page Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en">
<meta name='Page Description'>
<meta name='keywords' content='Page Keywords'>
<link href='/stylesheet/standard.css' rel='stylesheet' type='text/css'>
</head>
Given that the http-equiv tags specify encoding and language I was wondering whether other webmasters place these two tags above the title - or if the title tag should always be at the top?
lang attribute on the html element. For the charset declaration, it really needs to be before any displayed content - and that includes the
title element. However, you are saved by two things - firstly that you are using ISO-8859-1, which is the default encoding anyway if no charset is declared, and secondly that you are using English, and so are unlikely to be using characters outside of the basic US-ASCII charset, which is a subset of both ISO-8859-1 as well as UTF-8. The ideal way of setting the charset is to send it as an HTTP header before the page is served, as this ensures that the browser knows the charset from the outset and does not need to redraw the page if the later charset meta declaration overrides the one assumed to be correct by the browser.