Kindly help me to know where am wrong. Am using atom text editor to write this HTML and CSS code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Kindly help me to know where am wrong. Am using atom text editor to write this HTML and CSS code.

25th Jul 2019, 1:25 PM
Brian Kanyi Karanja
Brian Kanyi Karanja - avatar
3 Answers
+ 2
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> </head> <body> <p class="none">This paragraph has no border. </p> <p class="dotted">This is a dashed border. </p> <p class="dashed">This is a dashed border. </p> </body> </html> CSS code p.none {border-style: none;} p.dotted {border-style: dotted;} p.dashed {border-style: dashed;}
25th Jul 2019, 1:36 PM
Brian Kanyi Karanja
Brian Kanyi Karanja - avatar
+ 2
Your code is absolutely correct make sure you make the css file with .css extension and in same folder where html file is present
25th Jul 2019, 2:01 PM
MsJ
MsJ - avatar
+ 2
Already got a solution. I had forgotten to include <link rel="stylesheet" href="style.css"> inside the head tags.
26th Jul 2019, 11:46 AM
Brian Kanyi Karanja
Brian Kanyi Karanja - avatar