HTML help please

A meeting area where members can relax, chill out and talk about anything non magical.


Moderators: nickj, Lady of Mystery, Mandrake, bananafish, support

HTML help please

Postby Stephen Ward » Aug 3rd, '06, 20:31



I have forgotten how to add a title to a nav bar when your website is loaded. It is the <title> you alter?

Stephen Ward
Veteran Member
 
Posts: 5848
Joined: Mar 23rd, '05, 16:21
Location: Lowestoft, UK (44:CP)

Postby Blumunky » Aug 4th, '06, 12:34

Yes, if you want it to be displayed on the window title bar and the taskbar button at the bottom of the screen. It should be in the <head> section, not <body>.

User avatar
Blumunky
Preferred Member
 
Posts: 113
Joined: Mar 4th, '06, 15:46
Location: London, UK (24:AH)

Postby Stephen Ward » Aug 4th, '06, 12:48

Thanks :D

Stephen Ward
Veteran Member
 
Posts: 5848
Joined: Mar 23rd, '05, 16:21
Location: Lowestoft, UK (44:CP)

Postby Blumunky » Aug 4th, '06, 12:51

No problem, I know how easy it is to get a mental block on simple things like that. :)

User avatar
Blumunky
Preferred Member
 
Posts: 113
Joined: Mar 4th, '06, 15:46
Location: London, UK (24:AH)

Postby katrielalex » Aug 6th, '06, 09:58

Nah, there's a much easier way. Just add the following code in the <head> section

Code: Select all
<script type="text/javascript>
window.onload = function() {
     if(!document.title) return;
     document.title = "ADD THE TITLE HERE"
}
</script>


Yeah, well, his way will work too.

8)

Kati

In hibernation but half awake - will stick my nose in every so often!
User avatar
katrielalex
Elite Member
 
Posts: 2545
Joined: Feb 5th, '05, 22:32
Location: 16:AH (in hibernation! will try to check up here every so often though)

Postby Stephen Ward » Aug 6th, '06, 10:04

thanks Kati :D i will get that installed today 8)

Stephen Ward
Veteran Member
 
Posts: 5848
Joined: Mar 23rd, '05, 16:21
Location: Lowestoft, UK (44:CP)

Postby seige » Aug 6th, '06, 10:11

Kati

That's the most convoluted thing I ever heard!

The HTML page structure is thus:

<html>
<head>
--(header declarations here and back-end coding such as titles)--
</head>
<body>
--(What the user sees in their browser here)--
</body>
</html>

To add a compliant title, you simply add a TITLE tag in the head section of your page. Somewhere between the '<head> and </head>' tags, just add:
<title>This is the name of your page to appear in the title bar</title>

As an example, the title tag for the page you're now looking at is:
<title>magic trick - HTML help please</title>

What's so hard about that?

Stephen: you can learn more about HTML by reverse engineering other people's sites than you can imagine. Just go to a site which does what you want, and look at the source code.

I've personally been programming in HTML since about 1990, and I still cant believe the overwritten code which people use: I used to have to code pages purely by hand, and pages were smaller, more streamlined and WORKED! It still pays me to go back in and manually cull the extraneous stuff in websites: every bit of code removed or streamlined means faster more compliant pages.

Furthermore, search engines look for standards-compliant code. The <title> tag is VERY important, as is a good description tag, also in the header, which looks something like this:
<meta name="description" content="This is a general description of my website, which should contain keywords and details, but don't make it too long or use too many capitals!">

Hope that helps.

Last edited by seige on Aug 6th, '06, 10:17, edited 1 time in total.
User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby Stephen Ward » Aug 6th, '06, 10:15

Thanks guys! i just want a "welcome to flash magic" on the title bar. Thanks to everyone who helped, i am using net fusion 8 and getting on fine but was not sure about the nav bar.

Stephen Ward
Veteran Member
 
Posts: 5848
Joined: Mar 23rd, '05, 16:21
Location: Lowestoft, UK (44:CP)

Postby saxmad » Aug 6th, '06, 12:43

seige wrote:Kati

That's the most convoluted thing I ever heard!


And on the occasions the user has javascript turned off, it simply won't work at all!

User avatar
saxmad
Senior Member
 
Posts: 607
Joined: Jul 11th, '03, 22:25
Location: Glasgow, Scotland (46:SH)

Postby Blumunky » Aug 6th, '06, 19:38

katrielalex wrote:Nah, there's a much easier way. Just add the following code in the <head> section

Code: Select all
<script type="text/javascript>
window.onload = function() {
     if(!document.title) return;
     document.title = "ADD THE TITLE HERE"
}
</script>


Yeah, well, his way will work too.

8)

Kati


yeah and it's only one line, lol. Some people just like showing off :roll:

User avatar
Blumunky
Preferred Member
 
Posts: 113
Joined: Mar 4th, '06, 15:46
Location: London, UK (24:AH)

Postby Stephen Ward » Aug 6th, '06, 20:06

Thank you to EVERYONE who helped, it is now working thanks to you guys. Thank you so much :D

Stephen Ward
Veteran Member
 
Posts: 5848
Joined: Mar 23rd, '05, 16:21
Location: Lowestoft, UK (44:CP)


Return to The Dove's Head

Who is online

Users browsing this forum: No registered users and 51 guests