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" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Document Title</title>
here is my code:
<!DOCTYPE html PUBLIC “-//W3C //DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1-strict.dtd”>
<html xmlns="http://www.w3.org/1999/xhtml>
<head>
<title>Bubble Goo-The diving club for Kessel-Lo’s Provincial Domein</title>
<meta http-equiv=“Content-Type”
content=“text/html; charset=utf-8”/>
</head>
<body>
<h1>BubbleGoo.com</h1>
<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>
</body>
</html>
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!
help!
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.
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.
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).
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: http://lightscreen.sourceforge.net/ 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 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!