I am absolutely new and have just started learning html. Can anybody help me in understanding about attatching images? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am absolutely new and have just started learning html. Can anybody help me in understanding about attatching images?

Anyone who could contact me through social media . i am active on facebook, whatsapp, Or leave a comment

10th Apr 2017, 5:21 AM
Girish Verma
Girish Verma - avatar
1 Answer
+ 4
Using HTML tag like: <img src="url_of_your_image" alt="text_in_case_the_image_doesnt_appear"/> or using CSS: <div id="myblock"></div> #myblock { width: 300px; height: 300px; background: url("URL_or_PATH_TO_IMAGE"); }
10th Apr 2017, 5:25 AM
Geoffrey L
Geoffrey L - avatar