Having trouble linking external style sheet to html file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Having trouble linking external style sheet to html file

This is what im putting in my html file <link rel= "stylesheet" type="text/css" href="p2.css"> the think is that when I typing the rel="stylesheet" part it does highlight like the rest of the type and href parts.

11th Oct 2019, 9:40 PM
Les.lie
10 Answers
+ 1
never mind i figure it out thank you for your time
11th Oct 2019, 9:56 PM
Les.lie
+ 1
Les.lie Now that you have found the solution - can you share what the problem and the workaround? And perhaps mark the question by "[SOLVED] Having trouble linking ..." just so to inform everyone that the case is solved 👍
12th Oct 2019, 5:07 AM
Ipang
0
yeah bith of them are already different files and in the same folder. my html is index.html and my stylesheet is p2.css
11th Oct 2019, 9:44 PM
Les.lie
0
Put CSS file with index.html in directory.
11th Oct 2019, 9:46 PM
A͢J
A͢J - avatar
0
do you mean make an internal style sheet, i have to use an external style sheet
11th Oct 2019, 9:48 PM
Les.lie
0
Les.lie no I mean put your css file in the same folder where index.html exist.
11th Oct 2019, 9:50 PM
A͢J
A͢J - avatar
0
yeah i already have it in the same folder
11th Oct 2019, 9:51 PM
Les.lie
0
Are you doing on Sololearn or in your personal computer?
11th Oct 2019, 9:53 PM
A͢J
A͢J - avatar
0
personal computer
11th Oct 2019, 9:54 PM
Les.lie
0
Les.lie It should work if you are having in same folder.
11th Oct 2019, 9:56 PM
A͢J
A͢J - avatar