How to link html with css ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to link html with css ??

If I link html with css for getting image avatar but the output is getting wrong avatar is not shown

4th Jul 2017, 11:54 AM
Faizan Shaikh
Faizan Shaikh - avatar
5 Answers
+ 1
means 1st code html nd save it... nd 2nd code css nd again save it...
4th Jul 2017, 12:07 PM
Faizan Shaikh
Faizan Shaikh - avatar
+ 1
I try again but I didn't get result can u make a Web with avatar nd send then I check your code then I will try
4th Jul 2017, 12:20 PM
Faizan Shaikh
Faizan Shaikh - avatar
0
Make sure you put the html file, css file and images into a folder (it is a safer way). The display of image is not related to css, however to enter an image see carefuly th3 type of it (png or jgp) and add in the html file : <img src="imagename.jpg" alt=""/> where *imagename is the name of your picture. If you want to include external css file add to html head: <head> <link rel="stylesheet" href="yourfile.css" /> </head> where *yourfile is the name of your css file.
4th Jul 2017, 12:03 PM
Ledio Deda
Ledio Deda - avatar
0
If you have created two different files yes. If you have included all css in the html file, than you have only one file.
4th Jul 2017, 12:11 PM
Ledio Deda
Ledio Deda - avatar
0
If you want to post it in sololearn, it is a differen thing. You must take them from sololearn library using this: <img alt="" src="https://code.sololearn.com/Icons/Avatars/0.jpg"> 0.jpg changes, depending on the name you put to your image. If you are working directly on your web (PC) use this method: <img src="lonely.jpg" alt=""> lonely.jpg as i just said depends on your image name
4th Jul 2017, 1:34 PM
Ledio Deda
Ledio Deda - avatar