2 replies [Last post]
disberg
Offline
newbie
Canada
Last seen: 1 year 30 weeks ago
Canada
Timezone: GMT-7
Joined: 2012-01-22
Posts: 3
Points: 4

Hi Everyone.

I am a beginner CSS student. I have just completed my first website and posted it. See http://www.my-home-health.info. It was hand coded for the html and I am using Style Master plus hand coding for the CSS.

The Doc:type is "strict"

I am trying to validate this page and am getting the above error.

I tried the suggestion elsewhere in this forum of using the &lt: which only doubled the errors.

Thanks for your input.

Darlene

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 18 hours 10 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9276
Points: 3282

Hi Darlene,You're using an

Hi Darlene,

You're using an xhtml doctype. XHTML does not allow for unclosed elements. In the case of the meta element, along with others such as br and img, we have empty elements, so there are no explicit closing tags. Compare to <p>...</p>.For that reason, we "self close" the tag, e.g.

<meta name="author" content="D. Isberg" />
.

cheers,

gary

UI design should be egoless; if you succumb to the temptation to show off, you’re probably doing it wrong. (from ESR)

There are enough html & css demos and tutorials to be interesting. Please visit.

disberg
Offline
newbie
Canada
Last seen: 1 year 30 weeks ago
Canada
Timezone: GMT-7
Joined: 2012-01-22
Posts: 3
Points: 4

Many Thanks Gary. I am

Many Thanks Gary. Party Party

I am happy to announce the subject website has now been validated.

If I had read the Sticky Post in the "How To" section before I created the website I would have known to validate the web pages as I progressed rather than waiting for the completion of the website.

Now I have the task of amending all the other web pages which are part of the website as they too are inaccurate.

Actually, I think I am very lucky as I thought I would be ripped apart in the validating process as I had been when I used Microsoft FrontPage editor in my old life. This was the only issue, excepting for the special "htmltag" for the top of the page which I knew nothing about.

Darlene