Code
Code
Code
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test CSS</title>
<style>
body {
font-size: 1em;
text-align: justify;
<head>
</head>
h2 { color: #440000;
text-align: center;
<head>
<style>
</style>
</head>
<head>
<style type="text/css">
hr { color: sienna; }
p { margin-left: 20px; }
body {background-image:url("images/back40.gif");}
</style>
</head>
This is a paragraph
</p>
<style>
/* unvisited link */
a:link {
color: #FF0000;
/* visited link */
a:visited {
color: #00FF00;
a:hover {
color: #FF00FF;
/* selected link */
a:active {
color: #0000FF;
p a {text-decoration: underline}
p * {color: black}
Selector{
}
<style>
div {
font-family: Arial;
.specialText {
font-size: 18px;
</style>
</div>
<style>
h1 {color: blue; }
</style>
<style>
P { font-style : normal; }
TH { font-style : italic; }
H1 { font-style: oblique;}
</style>
<p class="both">This text has lines both above and below it.</p>
<style>
.wavy {
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-color: red; }
</style>
<img class="a" src=”https://image.slidesdocs.com/responsive-images/background/dog-
made-of-pixel-squares-powerpoint-background_6a449a7038__459_258.jpg" alt="hinh"
>image with a default alignment.<br>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
volutpat.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
volutpat.</p>
<style>
</style>
<style>
H2 {background-image:url(Bluedrop.gif);}
</style>
<style>
div {
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
</style>
</head>
<body>
<div>
This is a div element with a border, background color, and padding applied.
</div>
</body>
<style>
</style>
<style>
.div1 {
float: left;
padding: 10px;
.div2 {
padding: 10px;
.div3 {
float: left;
padding: 10px;
.div4 {
padding: 10px;
clear: left;
</style>
<div class=”parent”>
<article class="container">
<span>First</span>
<span>Second</span>
<span>Third</span>
</article>
<article class="container">
<span>First</span>
<span>Second</span>
<span>Third</span>
</article>
<style>
article span {
background-color: black;
color: white;
margin: 1px;
article, span {
padding: 10px;
border-radius: 7px;
article, div {
margin: 20px;
</style>
<style>
table {
border-collapse: collapse;
width: 100%;
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #f2f2f2;
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>$100</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
<td>$150</td>
</tr>
<tr>
<td>Joe</td>
<td>Swanson</td>
<td>$300</td>
</tr>
<style>
table {
border-collapse: collapse;
width: 100%;
th, td {
text-align: left;
padding: 8px;
</style>
</tbody>
</table>
</body>
<style>
html {
scrollbar-face-color: #FF0000;
scrollbar-shadow-color: #0000FF;
scrollbar-highlight-color: #00FF00;
scrollbar-3dlight-color: #FF00FF;
scrollbar-darkshadow-color: #00FFFF;
scrollbar-track-color: #FFFF00;
scrollbar-arrow-color: #000000;
</style>
</head>
<body>
</div>
<style>
</style>
</body>
<style>
#example1 {
</style>