images
Posted in
5528
11:00 pm, February 28, 2022
A short unsplash image url
You will notice that if you copy the image source from unsplash you will end up with something like this:
https://images.unsplash.com/photo-1582639590011-f5a8416d1101?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=749&q=80
Now im not sure what the hotlinking policy is from unsplash, but thats not going to work well in demo code.
Instead you can find the image id from the main url.
and then use that in this link
https://source.unsplash.com/Y9ksK2aKzkU/1200x800
which will give you a nice neat image url, you can then add this to an image tag like so:
<img src="https://source.unsplash.com/Y9ksK2aKzkU/1200x800">
HTML
<img src="https://source.unsplash.com/Y9ksK2aKzkU/1200x800">
View Statistics
This Week
163
This Month
479
This Year
1440
Add Comment
Other Items in images
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress