Treehouse: Grow your CSS skills. Land your dream job.

[Solved] Html validating issues

  • # April 15, 2010 at 12:02 am

    Hello, I am trying to link to an image through a php file (i.e. … &width=400)

    The ampersand (&) is causing validation issues.

    What can I do about it?

    # April 15, 2010 at 2:31 am

    Very easy!

    # April 15, 2010 at 2:31 pm

    Well, the problem with that is it will send me to that exact link, it doesn’t encode the ampersand..

    # April 15, 2010 at 2:37 pm

    The ampersand being encoded should have absolutely no effect on the link itself. If it does, then you have some programming stuff that you’ll have to deal with.

    The ONLY way to get that ampersand to validate is to properly encode it.

    # April 15, 2010 at 2:40 pm

    Scratch that, you’re right…

    Thank you :)

    # April 15, 2010 at 2:45 pm

    I had actually never tried it because that’s what I thought it would do..

    I really need to stop thinking I know what’s better when I’m asking someone else the question…

    # April 15, 2010 at 3:14 pm

    No problemo!

    It’s a very weird problem to wrap your head around, for sure.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.