Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3934340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:42:17+00:00 2026-05-19T23:42:17+00:00

I have upgraded Aptana to version 3. Since then, I get warnings like: <a><span

  • 0

I have upgraded Aptana to version 3. Since then, I get warnings like:

<a><span id="contacts" rel="#overlayTest">Contact</span></a>

Multiple markers at this line:  
- should discard unexpected <a>  
- should discard unexpected </a>

A. Is it illegal to put an “a” tag before a “div” or a “span”?
EDIT : I had the error because I put no href inside the a tag.

I also get warnings like:

<a class="pointer"><li class="spacing5px">Journal</li></a>

Multiple markers at this line:    
- should discard unexpected </a>
- missing <li>
- missing </a> before <li>

B. Am I blind or there is really something wrong here?

Btw, my page loads perfectly. Those are just warnings, but it bugs me.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:42:18+00:00Added an answer on May 19, 2026 at 11:42 pm

    Is it illegal to put an “a” tag before a “div” or a “span”?

    You cannot put a div inside an anchor until HTML 5 (and I wouldn’t do so for a long time as it needs too much hackery for browsers to handle it).

    You can’t put a list item anywhere that you can put an anchor and vice versa. (So an anchor cannot be a child element of a list, and a list item cannot be a child element of an anchor). I’m not sure if HTML 5 will change this or not.

    Also:

    • An anchor without an href is not a good idea. It shouts of JavaScript dependency. (If it has a name, then it shouts of being time to upgrade and put an id on a more appropriate element instead).
    • spacing5px is a not a good class name
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have upgraded my ffmpeg version to the latest commit and Now I can
Since I have upgraded from VS2008 to VS2010, I've been having an increasingly infuriating
I just upgraded to Aptana 3 and seem to have lost some of the
I have upgraded by iphone to 4.1 from 3.1.3 version. I have also upgrded
I have upgraded ruby using the following commands with rvm: rvm get head rvm
I have upgraded my Xampp to newer version(1.7.2).But right now when I run my
I have upgraded my Android SDK to version 2.3 and Android Development Tools 8.0.0.
I have upgraded Windows XP - PC RAM from 1GB to 3GB. Since JVM
Recently i have upgraded my IE 7 to IE 8 ever since that i'm
I just have upgraded to Xcode 4.4.1 and get the following error message when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.