+ 2
Kindly help me to know where am wrong. Am using atom text editor to write this HTML and CSS code.
3 Respostas
+ 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;}
+ 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
+ 2
Already got a solution. I had forgotten to include
<link rel="stylesheet" href="style.css">
inside the head tags.