Results 1 to 2 of 2

Thread: Confusing html issue...

  1. #1
    Join Date
    Sep 2012
    Thanked 0 Times in 0 Posts

    Default Confusing html issue...

    As some of you may see, this is my third post in as many days so sorry for all the questions. I am learning so hopefully will be helping other people out before long!

    This is a really odd one.

    The page is here The 6 images at the bottom (web design, social media etc.) are just images, they aren't linked to anything yet however that whole area (ie. any of the images) seems to be one big link to this page and I can't understand why. The last link on the flash banner is the social media page so looks like the flash banner is somehow dragging that link right down.

    Interestingly, Dreamweaver gives me an 'Invalid markup' error on the last link of the banner (to the social media page) so this must be related. The message is 'marked invalid because it doesn't belong inside the tag it's in and an online validator appears to refer to the '>' symbol here (in red) <a href="social-media.htm"><img src="images/socialmedia_hpage.png" alt="Social Media" />

    I've looked and looked but can't see anything wrong.

    Can anyone help?

  2. #2
    Join Date
    Apr 2008
    Thanked 516 Times in 502 Posts
    Blog Entries


    HTML Code:
    <!-- snip -->
    <div id="slider-wrapper">
            <div id="slider" class="nivoSlider">
                    <a href="about.htm"><img src="images/aboutus_hpage.png" alt="About Us" />
                    <a href="web-design.htm"><img src="images/design_hpage.png" alt="Web Design" />
                    <a href="animation.htm"><img src="images/animation_hpage.png" alt="Animation" />
                    <a href="social-media.htm"><img src="images/socialmedia_hpage.png" alt="Social Media" />
    <!-- etc. -->
    Right about line 65, you have an opening anchor tag (the one with href="social-media.html") which has no matching closing tag.

    Actually, none of those hyperlinks are closed, but Chrome (and most likely, other browsers too) is "fixing" your markup and closing the other hyperlinks when it comes to the next opening tag (since anchors cannot be nested (that's probably the error you're referring to)). However, you shouldn't rely on browsers guessing what you meant - fix it yourself!

Similar Threads

  1. Most confusing languages ever
    By keyboard in forum The lounge
    Replies: 9
    Last Post: 09-15-2012, 05:57 AM
  2. Replies: 2
    Last Post: 08-30-2011, 01:22 PM
  3. i'm confusing about making button in flash
    By smansakra in forum Flash
    Replies: 2
    Last Post: 12-19-2009, 06:53 AM
  4. Very confusing...
    By craigtb in forum Java
    Replies: 2
    Last Post: 04-04-2007, 10:29 PM
  5. iframes w/ referanced html file.... confusing problem
    By scotty.campbell in forum JavaScript
    Replies: 7
    Last Post: 01-15-2006, 05:31 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts