Home CSS What is CSS / CSS3?

What is CSS / CSS3?

15
0

What is CSS / CSS3? How to use Stylesheet?

CSS stands for Cascading Style Sheets. CSS is the technical specifications to define the layout for the HTML web pages. A style sheet for a Web page also telling the viewing engine(the Web browsers) how to render the document being viewed.

Style sheets are generally saved in external CSS files with .css extension. CSS defines how HTML Elements are to be displayed on web browsers. External style sheets enable you to change the appearance and layout of all the pages in a website by editing linked .css files.

CSS Syntax & Usage

div {
    width: 500px;
    height: 600px;
}

Here, div is a selector and the code written under “{ }” (curly braces) is the declaration for that selector and this describes that style must apply to that selectors.

Sample Code

<html>
<head>
    <title>What is CSS?</title>
    <style type="text/css">
        p {
            font-size: 13px;
            color: red;
        }
    </style>
</head>
<body>
    <div>
        <p>This is a sample code of CSS </p>
    </div>
</body>
</html>

Sample Result

This is a sample code of CSS

Tip: You can see the available CSS/CSS3 Selectors here.
Previous articleHTML video Tag with Example
Next articleHTML Body Elements
Hi there, I am Mayank, the man behind Technical Mack. I started AspnetO with a motive to educate people on various programming languages ranging from beginners to expert level. Through this blog, I aim to provide more insightful content.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

10 + six =