Different CSS Styles Describes How HTML Elements Should Displayed

admin_img Posted By Bajarangi soft , Posted On 27-09-2020

Cascading Style Sheets (CSS) is used to format the layout of a web page,With CSS, you can control the color, font, the size of text, the spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used, different displays for different devices and screen sizes, and much more.

Different Styles in Css

1.Different Styles in Css in HTML File
 

<!DOCTYPE html>
<html>
<head>
    <style>
        h1 {
            color: blue;
            font-family: verdana;
            font-size: 300%;
            border: 2px solid red;
            padding: 30px;
            margin: 50px;

        }
        p  {
            color: black;
            font-family: courier;
            font-size: 200%;
            border: 2px solid red;
            padding: 30px;
            margin: 50px;
        }
    </style>
</head>
<body>

<h1>HELLO GOODMORNING</h1>
<p>HAVE A NICE DAY.</p>

</body>
</html>

Related Post