how to apply different properties to different paragraphs in css

Solutions on MaxInterview for how to apply different properties to different paragraphs in css by the best coders in the world

showing results for - "how to apply different properties to different paragraphs in css"
Fabio
10 Feb 2019
1/*Here two ways are mentioned*/
2#one{
3    font-family: 'Impact';
4    color: red;
5    font-size: 25px;
6}
7#two{
8    font-family: 'Times New Roman';
9    color: blue;
10    font-size: 50px;
11}
12.three{
13    font-family: 'Impact';
14    color: red;
15    font-size: 25px;
16}
17.four{
18    font-family: 'Times New Roman';
19    color: blue;
20    font-size: 50px;
21}
22
Leo
21 Jan 2016
1<!-- Here two ways are mentioned -->
2<!doctype html>
3<html>
4    <head>
5    <link rel="stylesheet" type="text/css" href="test.css">
6    </head>
7
8    <body>
9    <p id="one"><p>Sample Text one</p>
10    <p id="two"><p>Sample Text two</p>
11    <p class="three">Sample Text three</p>
12    <p class="four">Sample Text four</p>
13    </body>
14</html>
15