You are on page 1of 8

CSS

Color Style Work


Property dan Value

Selectore H1

Property Color

Value
Blue
Code Sempel

Property
p{
color : blue;
font-size : 12px;

Value
CSS id Selector

#container {
color : blue;
font-size : 12px;

Id Selector
CSS class Selector

.container {
color : blue;
font-size : 12px;

Class Selector
External CSS

body {
  background-color: lightblue;
}

h1 {
  color: navy;
  margin-left: 20px;
Diluar file HTML }
Internal CSS

<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: inline;
}

h1 {
Didalam file HTML   color: maroon;
  margin-left: 40px;
}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
Leyout Responsive CSS
NAVBAR

CLASS CONTAINER PAPAN IKLAN/JUMBOTRON

IMAGES
ARTIKEL CLASS ARTIKEL

CLASS KOSONG

FOOTER
CLASS FOOTER
CLASS

You might also like