Please what's wrong with this code. The codes in the stylesheet isn't reflecting on the html document | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please what's wrong with this code. The codes in the stylesheet isn't reflecting on the html document

<!Doctype html> <html> <html lang="en"> <head> <meta charset="UTF-8"> <title>My Personal blog</title> <link rel="stylesheet" href="css/stylesheet.css" type="text/css"> </head> <body> <h1>My Blog</h1> </body> </html>

7th Oct 2022, 1:10 PM
Raymond
Raymond - avatar
12 Answers
+ 2
If you are having trouble getting the correct path you can use the <style> tag The <style> tag is used to define style information (CSS) for a document. Nest it in the <head> tag like so: <head> <style> h1 {color:red;} p {color:blue;} </style> </head>
8th Oct 2022, 3:00 AM
Chris Coder
Chris Coder - avatar
+ 2
This isn't a software forum, so your chances of getting the help you need for an 3rd party app is usually very slim here. But if you can't figure it out. I have downloaded the app. And set up a project folder. So that I can assist you if you still require assistance.
8th Oct 2022, 3:08 AM
Chris Coder
Chris Coder - avatar
+ 1
In sololearn compiler it is not necessary to include style sheet.
7th Oct 2022, 1:14 PM
Sreeju
Sreeju - avatar
+ 1
You may not have specified the path to the file correctly. I store the css file in the same html folder Connect my file like this: <link rel="stylesheet" href="cmd2.css">
7th Oct 2022, 3:06 PM
Knight
Knight - avatar
0
I'm using Treb Edit mobile app & i need to use stylesheet. How do i go about getting the URL
7th Oct 2022, 1:21 PM
Raymond
Raymond - avatar
0
<link rel="stylesheet" href="your stylesheet.css" type="css/text"> If your add CSS
8th Oct 2022, 2:48 AM
Asfari Aswar
Asfari Aswar - avatar
0
Hola me llamo... Bueno mejor no decir mi nombre pero soy nuevo en sololearn, recien me entero de que existe una pestaña para chatear. Pero lo que quiero es que me sigan o que comenten algunas cositas que antes aprendido en sololearn, gracias, muchísimas gracias por su atención y tiempo
8th Oct 2022, 11:33 PM
Yulieysi Sendra Alvarez
Yulieysi Sendra Alvarez - avatar
0
Either as </CODER> said, that the path might be wrong, or there might be errors in your stylesheet(missing semicolon, wrong attribute or value, etc). If it is a test and there is only one style and it has error, the browser will just ignore it.
9th Oct 2022, 12:33 AM
Bob_Li
Bob_Li - avatar
0
CSS correction. It should be <link rel="stylesheet" href="CSS/style.css" type="text/css"> Not stylesheet.css since you are linking it through a css folder, others are correct.
9th Oct 2022, 7:35 AM
Anigbogu Cj
Anigbogu Cj - avatar
0
If you are having trouble getting the correct path you can use the <style> tag The <style> tag is used to define style information (CSS) for a document. Nest it in the <head> tag like so: <head> <style> h1 {color:red;} p {color:blue;} </style> </head>
9th Oct 2022, 8:00 AM
Hacker DC
Hacker DC - avatar
0
Solution Number 1 : Use inline styling Solution Number 2 : Use the <style> tag Solution Number 3 : Style it using JavaScript
9th Oct 2022, 9:30 AM
Dreamer020810