How to add the image in codepen?

How to add the image in codepen?

Your question is not specific but generally you have to add a link using image ‘src’ attribute.

1 Like

Hi there, to add an image use the img element, and point to a specific image’s URL using the src attribute.
You can find more information on:https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website
Hope this helps!!!

1 Like

I’m assuming you mean why Codepen does not allow local image upload. The answer is they don’t allow it unless you are a premium member (or whatever the subscription is called), and that is not worth.
The (better) alternative is you can use a free image hosting service to upload your image, then use the raw img link in your codepen.

1 Like

yes exactly @MatchaCrisp .

Hey there, I had the same issue a while back and I ended up using imgbb to store my images and display them by setting the src attribute to the given image address. Hope this helps!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.