Turn an Image into a Link
See original GitHub issueChallenge Turn an Image into a Link has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#"><img src="https://bit.ly/fcc-running-cats"></a>.</p>
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
ImgBB — Upload Image — Free Image Hosting
Upload and share your images. Drag and drop anywhere you want and start uploading your images now. 32 MB limit. Direct image links,...
Read more >Online Image to URL Converter - Atatus
Embed small images directly in your HTML or CSS by converting the image to Data URL to improve performance by reducing the number...
Read more >HTML Link – How to Turn an Image into a Link and Nest Links ...
How to turn an image into a link. In HTML, we can use the <img> element to add images on the page. In...
Read more >AnyImage.io - Turn Any Image into a Clickable Link!
Create clickable social cards for Facebook, Twitter, LinkedIn and Google+ in seconds linking to any web page of your choice!
Read more >How to use an image as a link in HTML? - Tutorialspoint
To make page links in an HTML page, use the <a> and </a> tags, with href attribute used to define the links. We...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
<a href="#"><img src="https://bit.ly/fcc-running-cats"></a>
is just an example.You’ll need to nest the existing image (
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
) within an<a>
element.@dramirez757 Please do not post your solution on here. You could help people at FreeCodeCamp Chat Room or Forum. GitHub Issues are for reporting bugs on the website only.
Happy Coding!