How to Write CSS syntax and Selectors - Using CSS Color property learn today. Huge methods have to design your code. You can also write CSS code also different ways. Here we learn about Internal CSS. Every HTML programmer knows the demand for CSS use. Every time we start CSS <style> tag and end it closing </style> tag.
CSS Syntax and Selectors
HTML Code using Paragraph
<!DOCTYPE html>
<html>
<head>
<style>
p {
color: red;
text-align: center;
}
</style>
</head>
<body>
<p>My Name is now Center</p>
<p>My Name Color is Red</p>
</body>
</html>
Result of this Code
How to Write CSS syntax and Selectors - Using CSS Color property learn today. Her Result shows the Paragraph Color is changed. You should try it in your editor. But here all the paragraphs are changed with one style. When we make our site then we do not use this style in that way. Because we are not to like all the paragraph color changed. It's looking not so well. We are changing specifically one paragraph color change when we make our website.
Using Color
In this Code, we learn about the Eight background Color name. Tomato, Orange, DodgerBlue, MediumSeaGreen, Gray, SlateBlue, Violet, and LightGray are the name of the background colors. You can see that, we are using our style in our <heading> tag and including the <body> tag. It's an inline CSS in our Heading. When we make our site, then we are using inline CSS many times.