ALT Tag Question

Discussion in 'HTML & Website Design' started by Arcos, Jul 2, 2006.

  1. #1
    I have a website that I have limited access to via an admin control panel.

    Within the site I have a large number of pictures that I have uploaded.

    Is it possible to add an ALT tag for a photo prior to me uploading it?

    I guess what I need is to be able to add the tag directly to the photo and then upload it?

    Not sure if that makes sense but hope someone can help?

    Thanks
     
    Arcos, Jul 2, 2006 IP
  2. groovenectar

    groovenectar Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Without having access to editing HTML, no, it's not possible. But... I had an idea after reading this..

    I wonder if it's possible to extract an EXIF comment (or some other kind of metadata) and throw it in as the ALT tag! ( exif.org )

    That'd be pretty neat.... but it would still require more access to change the server-script and add that functionality.
     
    groovenectar, Jul 2, 2006 IP
  3. Arcos

    Arcos Peon

    Messages:
    474
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for that.

    I kind of had the same thoughts about having to use an HTML editor.

    With some experimentation I have found a way of creating the exact document with photo AND alt tag that works just fine!!

    Thanks again
     
    Arcos, Jul 2, 2006 IP
  4. groovenectar

    groovenectar Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ahh, it's good that you got it working.. I'm interested to know exactly what you mean though... because it sounds like an interesting situation..

    And another (simpler) solution would be to use the filename as the ALT tag.. just change the underscores to spaces... Again, this would require server-side scripting, but would be exponentially easier both server-side and on your end.
     
    groovenectar, Jul 2, 2006 IP
  5. Arcos

    Arcos Peon

    Messages:
    474
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok, as my knowledge of web development is limited this is how I did it....

    Open Frontpage as a new website
    Copy text into the page as required.
    Insert a picture into the desired area
    Add ALT tag (about my limit as far as coding goes!)
    Copy the code and insert into my page using the admin section I have

    All worked a treat apart from the fact that I MUST use <p>text</P and NOT <br> Just wont work with the picture and I cannot get the picture to be on the first line of code it MUST be after a </p>

    Picture alignment isnt too much of a problem though as I can move it in my admin section.

    Quite pleased with myself actually :D
     
    Arcos, Jul 2, 2006 IP
  6. AMysticWeb

    AMysticWeb Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    With FrontPage ...

    File >> New >> Web and then File >> New >>Page to add pages. Make sure the pages are part of the web. You could create a page called images, place all your images there. Add the Alt tag plus title if you want a tooltip to display in browsers other than IE. Copy the pic and paste it into another page, save and do FP preview. You will see that the tooltip appears.

    Are you adding this pic to a page you are uploading?

    If so, simply add the tag to the pic, save and publish.

    You could also add the tag to the image source HTML. As long as the image file path is correct, the published page should display the image and tag as it should appear.

    Honestly, if you are using FrontPage, the tag goes along with publish.
     
    AMysticWeb, Jul 4, 2006 IP