Cascading Style Sheet
selector {
property: value;
another-property: value;
}Who?
What?
How?
<h1>Almakinah</h1>h1{
color:grey;
background-color:yellow;
font-size: 50px;
}<h1 style="color:green">Almakinah</h1><style>
h1{
color: green;
}
</style>
<h1>Almakinah</h1><link rel="stylesheet" type="text/css"href="css/styles.css"/>
<h1>Almakinah</h1><!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body></body>
</html>
index.html
span{
text-transform: uppercase;
}#special-title{
border: 5px solid pink;
}<h1 id="special-title">Almakinah</h1>
.readmore {
background-color: blue;
color: white;
}<a class="readmore" href="#">read more</a>
<a class="readmore" href="#">read more</a>
<a href="#">See All </a>/* Two tags at the same time */
h1,h2 {
}
/* Element selector and class*/
td.highlighted{
}
/* Descendant Selector: td that is a child of tfoot*/
tfoot td {
}
/* Direct Child Selector: th that is a direct child of tfoot */
tfoot > th {
}
/* always select the second p */
p + p {
}table
height:40px;
}
http://scratchpad.io/auspicious-sweater-8954
merged table
width:50%;
height:80px;