Jump to content

I Need Validation :-)trying To Validate My Site...confused?!


htvqkoa

Recommended Posts

I am trying to validate my website and I am having difficulty fixing some errors. I am not quite sure why I am getting the errors and maybe someone can explain to me a little bit, b/c my research has left me empty handed. This line is producing a lot of errors, actually.

 

I am getting the following error(s):

 

"document type does not allow element "div" here; assuming missing "object""

My code is:

 

# <div id="header"

#

# onclick="location.href='http://lauralohr.com/wordpress';

#

# " style="cursor: pointer;">

#

# <div id="headerimg">

#

# </div>

 

How can I fix this?

 

I am still kind of new at this. I appreciate any help you can offer! :angry:

Edited by htvqkoa
Link to comment
Share on other sites

It may have something to do with the linebreaks in the source, since it appears to be reading the onclick as its own object and not as a part of the opening div's code.

 

You could also change that code to be simpler, like <a href="YOURURL"><div id="header"><div id="headerimg"></div></div></a>

 

You could even place the headerimg as a background to the header div itself, so you don't have to have two divs for one thing.

Edited by marie b.
Link to comment
Share on other sites

Also, your header div has no closing tag.

 

Clicking anywhere on your site, except for links, brings you back to the index. I have a trigger finger, which is how I noticed it. :angry:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...