+ 1

HTML Challenge | Difference between width=“100” and width=“100%”

I get that “100” and “100%” are not the same. But can you help me understand WHAT I SHOULD LOOK OUT FOR WHEN DISTINGUISHING THE TWO? Does width=“100” and width=“100%” mean the SAME when it’s in the <img> tag? OR...?

18th Apr 2020, 11:35 AM
MiracleOny
MiracleOny - avatar
1 Antwort
+ 3
No, that 100 by default means 100 pixel and the 100% means full width without leaving any space
18th Apr 2020, 11:37 AM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar