Html help!?

I am in desperate need of help. I am creating a website for a deceased friend and I am trying to place a description under a photo in a popup window. I have the code set that when the video is clicked a larger version of this photo popups in a seperate window, but I cannot get a description underneath this photo for anything! can you please help and tell me where the code for a description of the photo should be placed....thanks you soo much

code im using....

<a href="" onclick="' return false"><img scr=" border="0" alt="Photo Sharing and Video Hosting at


2 Answers

  • Anonymous
    1 decade ago
    Best Answer

    I'm not sure if you want your caption on the small picture or the one that pops up, and I think you mean the one that pops up.

    If that's what you are after, then you can't open it as an image file (btw you have img scr instead of img src in this code), you will have to open it as an html or php file with the photo and caption on it. You could do this by creating a small php file called eg. image.php that GETS the image filename and caption amd displays them. So you would have to add this information to the url:



    [note I split this because otherwise Answers would have hidden part of it from view, but it needs to be on one line, with no line break]

    I guess you would also need a line in there to take out the underscores in the caption (having real spaces in there can cause problems) and replace them with spaces:

    $caption = str_replace("_"," ",$caption);

    So your image.php file would end up like this:


    $src = $_GET['src'];

    $caption = $_GET['caption'];

    $caption = str_replace("_"," ",$caption);

    echo "<img src=\"$src\" alt=\"$caption\" /><br />$caption";


    and your thumbnail or whatever would use "image.php?src=file.jpg&caption=This_caption" as the url for the popup contents.

    Is that ok?

  • pabst
    Lv 4
    3 years ago

    hi chum, HTML ability Hyper textual content cloth Markup Language. With HTML you are able to create a static internet website. CSS ability Cascading variety Sheet meaning it is used to configuring the type or to understand properly the seen layout like textcolor , fonts , historic past colour etc. truthfully CSS isn't a language it is in basic terms used to set residences to tags as I even have stated above. As with HTML1, HTML2 ..... there are particular standards to layout an internet site, each and each verison has changed regulations than the previous verison bu you dont ought to difficulty approximately it plenty now. An occasion is in HTML5, you should write HTML code in Capital letters, while in previous verisons the case does no longer rely. The W3C (international internet Consortium) establishes the standards for HTML.

Still have questions? Get your answers by asking now.