Skip to main content

CSS

CSS stands for Cascading Style Sheets · CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS can be used to define text styles, table sizes, background-color and other aspects of Web pages that previously could only be defined in a page's HTML.More..



History:

CSS was first proposed by Håkon Wium Lie on October 10, 1994.

Håkon Wium Lie

EXample:


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

<style>
    /* this is css code */
    h1{
        background: #ff3030;
        color: #fff;
        padding: 5px;
    }
</style>

</head>
<body>
    <h1>Hello World</h1>
</body>
</html>