How do i add HTML link syntax + alt tags + image size all in one tag?

by Murkr
2 replies
  • |
How do i add HTML link syntax + alt tags + image size all in one tag? example:
<a href="">anchor text</a>

I know how to make a hyper link. But how do i resize the image if its linking to an image?

Also, is it possible to also add alt tags as well? because when researching how to do this, i couldnt find my question, but i did find this HTML <img> alt Attribute:
<img src="smiley.gif" alt="Smiley face">

I just don't how to implement that into code.
#add #alt #html #image #link #size #syntax #tag #tags
Avatar of Unregistered
  • Profile picture of the author newebee
    <img src="smiley.gif" alt="Smiley face" height="42" width="42">

    You can change the size (42 to 52) but will get distorted as bitmaps can't be enlarged and maintain the sharpness/quality without getting pixelated.

    If you don't know the exact size of the image, you can simply add 'auto' or '*': height="auto" or width="*"

    Or you can also add style to be more flexible for example:

    <img src="smiley.gif" alt="Smiley face" style="width:42px; height:42px; margin-left:10px; padding-top:10px;"> You can use 'auto' instead of '42px' as well.

    I'm not sure if this is what you're after, if not let me know what exactly you need to do and I'll try to help you.
    {{ DiscussionBoard.errors[11412758].message }}
    • Profile picture of the author CarlaCoach
      Thank you for sharing this information. I'll try to experiment on my image.
      {{ DiscussionBoard.errors[11413934].message }}
Avatar of Unregistered

Trending Topics