Css Styles Types
Css Styles Types
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All CSS Styles Together</title>
<link rel="stylesheet" href="styles.css">
<style>
/* Internal Stylesheet */
h2 { /* Selector: h2 */
color: green; /* Property: color; Value: green */
text-align: center; /* Property: text-align; Value: center */
}
<div id="external-div">
<p>This paragraph is styled with external CSS.</p>
<p class="external-class">This paragraph is styled with external CSS (class
selector).</p>
<p style="color:orange !important;">This paragraph is styled with inline
css and !important rule. it will override all other styles</p>
</div>
<div>
<p>This paragraph is styled with internal css with more specific
selector.</p>
</div>
</body>
</html>