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 6860923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:28:11+00:00 2026-05-27T02:28:11+00:00

Somehow the a href is also surrounding the ‘update’ image but the href is

  • 0

Somehow the a href is also surrounding the ‘update’ image but the href
is clearly closed with a </a> tag. It is in a list <li> but I don’t see how or
why this is happening. Has anyone ran into this before where the link tag is surrounding multiple elements?

<a href="cart.php?delete">

<img border="0" src="post_delete_icon.png">
</a>
<br>
<br>
<input type="hidden" value="1" name="item_qty[96]" size="4">
<input id="qtyx" type="text" value="1" name="qtyx" size="4">
<input type="hidden" value="96" name="productidx">
<input type="image" border="1" src="update.png">
  • 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-27T02:28:11+00:00Added an answer on May 27, 2026 at 2:28 am

    Which doctype are you using?

    Based on your markup, you should be using the HTML5 doctype. If you are unfamiliar with this, place it at the top of your html markup.

    <!DOCTYPE html>
    

    and modify your code to:

    <a href="cart.php?delete">
        <img src="post_delete_icon.png" alt="delete item">
    </a>
    
    <br>
    <br>
    <input type="hidden" value="1" name="item_qty[96]">
    <input id="qtyx" type="text" size="4" value="1" name="qtyx">
    <input type="hidden" value="96" name="productidx">
    <input type="image" src="update.png" alt="update cart">
    

    Edit:
    Since you are using the strict doctype, you need to end your tags and follow the strict doctype rules. Run your code through an XHTML/HTML markup validator in order to make sure your code is compliant.

    Because you are writing HTML markup, you want to use the following doctype

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    

    After you do this, you will need to remove all of the border="0" attributes within your code. Those kinds of things are reserved for CSS when using the strict doctype. Along with the strict doctype, you will need to supply an alt value for your <img> tag. This is to improve usability and sort of a fault tolerance if the image doesn’t load.

    You can also stick with the XHTML doctype that you are using, but you will have to change your markup in order to follow those rules. Each doctype has it’s own rules and changing doctypes in the middle of a project can completely change the way your page is rendered by the browser.

    Valid XHTML Strict code:

    <a href="cart.php?delete">
        <img src="post_delete_icon.png" alt="delete item"></img>
    </a>
    <br />
    <br />
    <input type="hidden" value="1" name="item_qty[96]"></input>
    <input id="qtyx" type="text" value="1" name="qtyx" size="4"></input>
    <input type="hidden" value="96" name="productidx"></input>
    <input type="image" src="update.png"></input>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Every time I put an inline tag on the link's href attribute it somehow
Somehow my master and my origin/master branch have diverged. I actually don't want them
somehow couldn't find this with a google search, but I feel like it has
Somehow, Expression Blend has entered full-screen mode (no window chrome), but I can still
this might sound easy problem to you, but somehow Im stuck with it, here
window.location.href redirects the browser to stackoverflow.com when the button is clicked, but does not
I changed how my script was getting it's list and somehow I broke the
I need to be able to get the href (or somehow get the target
Somehow my FireFox 2 got corrupted, and the status bar is about 3/4 above
Somehow Visual Studio search has stopped working for me. Anytime I search Entire Solution

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.