Log in

View Full Version : how do i do this??



Kawaii
04-10-2007, 02:30 AM
ok like on top of this page it says "how do i do this??- Dynamic Drive Forums".. What is the code to edit what that says like for your own page?:confused: I have seen it many times before but i cant find it. thank you:)

thetestingsite
04-10-2007, 02:33 AM
That is done using the <title> HTML tag. An example of this would be:



<head>
<title>This is the title of my page!</title>
</head>


That goes at the very top of your page underneath the opening HTML tag.
Hope this helps.

Twey
04-10-2007, 02:38 AM
Also note that if you have any <meta> tags on the page, that needs to go after them.

jscheuer1
04-10-2007, 04:22 AM
Also note that if you have any <meta> tags on the page, that needs to go after them.

You mean I've been doing it wrong all these years?


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Highlight Images w/Captions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
background-c . . .

It passes validation.

mburt
04-10-2007, 10:34 AM
That meta tag still goes after the title.

Twey
04-10-2007, 05:51 PM
You mean I've been doing it wrong all these years?

It passes validation.Really? I didn't think it would, especially that example. How does it know what charset to use for the title?

boxxertrumps
04-10-2007, 07:01 PM
We would need to know more about the inner workings of the target browser to figure it out...
It would make sense if the meta tags were interpreted first, aswell as any header info sent by the server.