No title in windows taskbar?

I am working in notepad. I have saved my page (html), when I view it in firefox, there is no title? I have the same code as described in the book (Building Your Own Website…)

Here is a dumb question from an absolute beginner.
I’m using the sitepoint book “Build your own site the right way using html and css”. On page 27 it shows that the title appears in Windows taskbar- and of course on tab of browser (whatever that might be called). My code is correct (just like in the book) p.44. On my file tab, instead of the title alone, it says file///C:document… showing where it is on my hard drive. Is this the way it should be, because in the book, the diagram is different.
Thanks to whoever has the patience to answer such a boring question!

Do you have a <title> tag in the <head> of your document? It’s a required element and must be present in all HTML and XHTML documents. And it’s the title that is shown in the Windows taskbar icons, as well as in the browser window’s border and/or the browser tab.

For example,

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<html lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Document Title</title>

Oh, and welcome to SitePoint Forums! :cool:

here is my code:
<!DOCTYPE html PUBLIC “-//W3C //DTD XHTML 1.0 Strict//EN””>
<html xmlns=";
<title>Bubble Goo-The diving club for Kessel-Lo’s Provincial Domein</title>
<meta http-equiv=“Content-Type”
content=“text/html; charset=utf-8”/>
<p>Diving Club for the rowing pond of the provincial domein in Kessel-Lo. Let’s make a mucky splash!</p>
<h2>Welcome to our super-dooper Scuba site</h2>
<p>Glad you could drop in and share some air with us! You’ve passed your underwater navigation skills and successfully found

your way to the start point - or in this case, our home page.</p>
This page is saved on my c volume, with the suffix .html. I am using notepad to write my code.
I’m sure it is something really obvious if you were here behind my computer!

jessica, you forgot to close the " on the html element (if you look there’s an opening one before the URL but not after)… the below will do the trick!

<!DOCTYPE html PUBLIC “-//W3C //DTD XHTML 1.0 Strict//EN””>
<html xmlns=“”>

Hope that works for you (it does for me) :slight_smile:

I’ve responded to you in the other post Jessica, you were just missing a " (quote mark) at the end of the URL provided in the HTML element. :slight_smile:

Alex, your my savior!
Hope you will continue to support me here along the way. (It’ll be bumpy) with an END paraentheses

jessicalongino, As tommy said in the other thread you started:

You need to ensure your website has a title element within the head (see his example) :slight_smile:

No worries Jessica, feel free to start another post if you can’t work something out :slight_smile:

Jessica, here’s an extremely important piece of advice:

Whenever a web page you’re working on doesn’t appear or behave the way you intended, always, always, ALWAYS run the markup through the W3C validator before doing anything else!

Valid code isn’t a guarantee that everything will work (all browsers have bugs, and the specifications are sufficiently ambiguous to make life interesting for us). But with invalid markup all bets are off.

[ot]This is why I really despise the way books like this one teach unsuspecting beginners to use pretend-XHTML, telling them that XHTML is ‘superior’ to HTML whilst tricking them into making browsers treat the XHTML exactly like the allegedly inferior HTML. :mad:

If Jessica had been taught to use real XHTML, she wouldn’t have had this problem. The browser would immediately have refused to render the page, showing a big fat parser error message instead.[/ot]

Thank you for your input. Someone already showed me that there was an end quote missing in my code. I will however use your w3c validator. I had of course never heard of this, but followed your link. I assume that it finds the missing whatever, and tells you.
For the off topic; I’m not really a good book learner, and much prefer the typical classroom approch (though I know many can’t bear the idea of having to withstand another classroom experience after highschool and college)- where you can get all the inside advice just at the right moment, and stick up your hand to ask questions as they arrise…I wouldn’t know the difference between xhtml and html if it came up and bit me. I’m sure I will discover this later. Well, I do know that xhtml is more recent.
I can only handle a certain amount of new jargon at a time- otherwise, I get brainfry.

The W3C Validator should be used to make sure your code adheres to standards; Most websites use it before going live - if they didn’t, they should :wink:

As for XHTML - It was a great concept at first, but never really worked out. It will be surpassed by HTML5 before long.

I do prefer XHTML syntax, personally. That’s because, as a programmer, if something opens I feel happier if I close it.

It doesn’t have any real effect on your browser output, though if you want to be picky, the HTML doctype is preferable :slight_smile:

To save you some time you can install the ‘Firefox HTML Validator’ Addon to use as precursor for catching some errors before sending the page to the W3C Validation service itself.

Thanks, I’ve bookmarked the w3c validator.
As for the rest, it probably won’t sound too much like Chinese in a couple of weeks!

Off Topic:

Wow…do you have enough toolbars for your browser? o.o

Which is an interesting point to make, by the way. I’m always very careful about what information I convey through screenshots. From Jessica’s original screenshot, I can extract the following information:

  • Full name
  • Approximate age
  • Private e-mail-address
  • Which country she lives in, and approximately which region of that country
  • Occupation
  • Antivirus and firewall software manufacturers, operating system, as well as several other software installations
  • That she uses Facebook
  • That she at least relatively frequently use her credit card to shop online

If I were malicious, this would be more than enough information to start doing some serious identity theft.

I’m not writing this to be a jerk, so I’m sorry if I scare you Jessica, but careless posting of especially screenshots can get you into some serious trouble. My advise would be to have a seperate ‘clean’ browser installation, which you use for screen shots. Also, use [Alt]+[Print Screen] to make your screen shots (this will limit your screenshot to the active window, rather than the entire screen).

Thanks for the info. alt + screenshot is something that I can remember and will use! What is a clean browser installation?

He means install another “new/fresh” copy of the Firefox browser (somewhere else on your machine) without any ‘add-ons’ installed or customisation of toolbars, or other open tabs. Just for the sake of taking screenshots and posting them publicly.

Thus it is more like a ‘default install’ possibly you could use a ‘Portable Apps’ Edition of Firefox (Firefox Portable) for that. The other ‘second Firefox browser’ would appear without all those personalised toolbars, etc.

Really you should have just taken the shot of the browser window itself or the browser’s screen (without those toolbars) you could have used a free open source tool like Lightscreen: to make taking the ‘screen grab’ easier and more accurate/specific to want you wanted to show everyone else.

An alternative to installing another version of Firefox would be to install e.g. Chrome or Opera as a secondary browser. I use Chrome for this, but Opera users will tell you that Opera is far superior to everything else :slight_smile: This of course only makes sense to do, if your potential problems are not Firefox-related.

Or you can just disable all the browser extensions you don’t need, surely no one person requires so many toolbars all at once - it must slow your machine down! :eek: