/    Sign up×
Community /Pin to ProfileBookmark

This is weird (META tags not showing up)

Hi all,

Basically I ran a the [URL=http://www.widexl.com/remote/search-engines/metatag-analyzer.html]Widexl[/URL] meta tag analyzer as mine were not relevant to the page. However it told me that I don’t even have META tags on the page. I’m not very good at all with html (as you can probably tell from the website). If anyone could help I would appreciate it.

[url]http://www.beechesrecovery.co.uk[/url]

Many thanks

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@_Aerospace_Eng_Dec 18.2006 — Technically you don't. Meta tags need to go within the <head></head> section of your document however you only have the opening <head> tag but no closing one. The closing one should come before the opening <body> tag.

Validating your page helps with simple errors.

According to the validator you have 98 coding errors, see them [url=http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.beechesrecovery.co.uk%2F]here[/url].
Copy linkTweet thisAlerts:
@an_tradingauthorDec 18.2006 — Many thanks for the quick reply - I think I've just sorted that.

Basically, I've used a cheap site builder and I was somewhat limited by what I could do with it - so I've used notepad to edit it. I will take your advice and try to correct the errors.

Kind regards
Copy linkTweet thisAlerts:
@CharlesDec 18.2006 — You've a lot of errors on that page but omitting the HEAD closing tag isn't one of them. That tag, like many in HTML, is completely optional. You can have just the start, just the end, both or none as strikes your fancy.
Copy linkTweet thisAlerts:
@WebJoelDec 18.2006 — You've a lot of errors on that page but omitting the HEAD closing tag isn't one of them. That tag, like many in HTML, is completely optional. You can have just the start, just the end, both or none as strikes your fancy.[/QUOTE] Really? I know about 'optional' use, but having an 'opened' tag I thought requires an implicit 'closing' of the tag as well. "<html>" and "<body>" of course being rather blindingly obvious exceptions insomuch as the 'closing' of these tag would be the 'last tags' anyway.

Having an 'open tag' without a corresponding 'closing tag' throws warnings/error on a Validator, doesn't it? I suppose the main reason for that, is that a 'validator' cannot properly parse a page with missing opening and/or closing tags, so it cannot understand what to check for.. (?)
Copy linkTweet thisAlerts:
@CharlesDec 18.2006 — [i]From the HTML 4.01 DTD:[/i]
&lt;!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" --&gt;
&lt;!ENTITY % head.content "TITLE &amp; BASE?"&gt;

&lt;!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head --&gt;
&lt;!ATTLIST HEAD
%i18n; -- lang, dir --
profile %URI; #IMPLIED -- named dictionary of meta info --
<i> &gt;</i>
[i] http://www.w3.org/TR/html401/struct/global.html#edef-HEAD [/i][/quote]
Those two "O"s in the element definition mean both tags are optional. The validator and any other parser needs the DTD to do its job even on the most fundamental level. The parser knows that HTML is the root element and that its tags are optional so if they are not present it makes that the root nonetheless. And it knows that all HTML elements must have as the first child a HEAD element and so it does the same thing. And it knows just what elements the HEAD element can contain so when it finds an element that doesn't belong it closes the element. The P elememt works the same way with its optional end tag.

You can see why SGML, with its optional tags, makes a DTD necessary for any error checking or parsing. And you can see why the first thing that they did with XML is to require all tags.
Copy linkTweet thisAlerts:
@an_tradingauthorDec 27.2006 — Quite amusingly - since my tags 'work' my site has fallen for 'Car Recovery Birmingham' from 5th on the first page to the bottom of the second page!
×

Success!

Help @an_trading spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...