<!doctype html>
<html>
<head>
<title>Interal CSS - DIV</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
.large {
font-size: 200%;
}
#blue {
color: blue;
}
.underline {
text-decoration: underline;
}
.bold {
font-weight: bold;
}
.box1 {
background-color: #fafaf2;
width: 300px;
height: 100px;
}
.box2 {
background-color: red;
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div class="box1">
<p class="large">This is some text.</p>
</div>
<div class="box2">
<p id="blue" class="large">This is some more text.</p>
</div>
<p>The third <span class="underline large bold">word</span> in this paragraph</p>
</body>
</html>
留言列表