how to style individual paragraphs in css
<!--This is an example of html problem-->
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="test.css">
</head>
<body>
<p id="one"><p>Paragraph 1</p>
<p id="two"><p>Paragraph 2</p>
<p class="three">Paragraph 3</p>
<p class="four">Paragraph 4</p>
</body>
</html>
4.5
6
/* This is the reference to style the above code of html in css*/
#one{
font-family: 'Impact';
color: red;
font-size: 25px;
}
#two{
font-family: 'Times New Roman';
color: blue;
font-size: 50px;
}
.three{
font-family: 'Impact';
color: red;
font-size: 25px;
}
.four{
font-family: 'Times New Roman';
color: blue;
font-size: 50px;
}
Thank you!
6
0
Are there any code examples left?
New code examples in category Html
-
Html 2022-03-27 21:55:05 how to kill html
-
Html 2022-03-27 21:55:02 How to create web urls without extensions
-
Html 2022-03-27 21:45:11 space between 2 h tags without break
-
Html 2022-03-27 21:40:13 how to resize submit button in html
-
Html 2022-03-27 20:40:18 https://www.codegrepper.com
-
Html 2022-03-27 19:55:09 show image inside table with innerhtml
-
Html 2022-03-27 19:30:47 html email input
-
Html 2022-03-27 18:45:01 how to add favicon in html
-
Html 2022-03-27 18:15:21 picture html
-
Html 2022-03-27 18:15:11 ex: javaasdasdasdasd