How to HTML Image Link
-
- HTML image link code
<a href="...../site-logo.png"><img src="site-logo.png" width="82" height="86" title="Cyberian" alt="Cyberian Logo"></a>- Or better use css styling to determine the width and height.
<a href="...../site-logo.png"><img src="site-logo.png" width:82px; height:86px" title="Cyberian" alt="Cyberian Logo"></a>This code has the following parts:
- “” is link tag.
- “href” attribute sets URL to link to.
- “
” the image start.
- “src” attribute sets the image file.
- “title” attribute sets the image tool-tip text.
- “alt” is the image tag alternative text attribute.
- “style” attribute sets with “css” with detail size of image “width” and “height” of the image.
- “” is the link end tag.
-
can we use for video link?
-
can we use for video link?
@Khuram-Shahzad
Yes! You can use video link but if you want to embed video you may use following code.<iframe width="544" height="360" src="https://www.sitename.com/embed/vL4Myo1g9v8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login