[HTML] Day 4: I want to add images
11/17/2019 - Productive weekend 🌞
I'm thinking how hard to add images into my webpage? All my favorite webpage contains lots of images. Which code can I use?
<img> = image
<img> but I feel like image file always contains with jpg or jpeg and stuff so lets search. What other code do I need to add with tag <img>?
<img src="" width "">, src = source / Attribute (속성)
- Where to get a free image source? Unsplash
1. Pick any image and save under web file
2. Change image name if its too long
3. Use <img src="add name">
4. Save and display
but the image size was wayyyyy to big so I need to make the adjustment
5. <img src="cd.jpg" width="450"> or can use 100% to fit in the webpage <img src="cd.jpg" width="100%">
yay!!!!!