<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sub Elements</title>
<style>
p.normal {
border: 2px solid red;
width:200px;
left:100px;
}
p.round1 {
border: 2px solid aqua;
border-radius: 15px;
padding:10px;
text-decoration:underline;
}
.intro h1{
font-size:36px;
color:red;
}
div h2 {
color:#00F;
}
div #main {
background-color:#CCCC00;
width:400px;
height:30vh;
}
div p {
text-decoration:line-through;
}
#main {
font-size:36px;
}
</style>
</head>
<body>
<p>This is normal P</p>
<span class="normal">span + class="normal"</span>
<p class="normal">Normal border</p>
<p class="round1">Round border</p>
<div class="intro">
<h1>intro h1</h1>
<h2>Intro h2</h2>
</div>
<div align="center">
<p id="main">div #main</p>
</div>
</body>
</html>