You can use an ID. This lets you select one HTML tag, and not all others.
In the HTML file, add an ID with id="id-name". Example:
<p id="lorem-ipsum">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
Now, in the CSS file, you can select the ID. Example:
#lorem-ipsum {
color: green;
}
You can only use ID's once though, so you can't have multiple paragraphs with the same ID. If you want to have multiple paragraphs with the same "ID" you can use classes. So it would be like this:
.red-paragraph {
color: red;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML 5 Boilerplate</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p class="red-paragraph">First paragraph</p>
<p class="red-paragraph">Second paragraph</p>
<p>Third paragraph</p>
<script src="index.js"></script>
</body>
</html>
` tag you wish to target different that the rest.
– Jon P Dec 12 '22 at 03:33