<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Html Document Structure</title>
</head>
<body>
// Main Content
</body>
</html>
<p class="Red Text">, means this <p> tag has two class name "Red" & "Text".Example:
Code:
<!-- CSS part -->
<style>
.red{
color: rgb(227, 148, 70);
font-size: 30;
}
#green{
color: rgb(1, 142, 1);
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 50;
font-style: italic;
}
</style>
<!-- HTML part -->
<p class="red">Text 1</p>
<p id="green">Text 2</p>
<p>Lorem <span class="red">ipsum dolor</span> sit amet consectetur adipisicing.</p>
<h3 class="red">Text 4</h3>
Output
Text 1
Text 2
Lorem ipsum dolor sit amet consectetur adipisicing.