Basic Selectors:

 /*

Basic Selectors:
*/



INDEX.HTML:


<!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>CSS Tutorial</title>    
    <link rel="stylesheet" href="styles.css">

   
</head>
<body >
    <h1 id="heading">i'm id heading</h1>
    <h1 class="heading">i'm class heading</h1>
    <p>hello world</p>
</body>
</html>

CSS:

/*
Basic Selectors:
*/

*{
    color: red;
}
#heading {
    font-size: 40px;
    color: blue;
    text-transform: uppercase;
}
.heading {
    font-size: 20px;
    color: green;
    text-transform: capitalize;
}
p {
    letter-spacing: 20px;
}

评论

此博客中的热门博文

通过Graphql成功地查询Contentful,以便在我的gatsby项目中访问和显示图像

Oracle忘了保存,Oracle Cloud甲骨文云服务器忘记SSH秘钥或未设置Public key的解决办法...

Nginx【Docker系列】一个反向代理神器——Nginx Proxy Manager