Text Styles

  • Style Attributes include
    • Color
    • Font Family
    • Font Size
    • Text Alignment
    • Line Height
    • Font Weight (Bold/Normal), Style (italics)
    • Text Decoration (underline/no underline)

<head>
<meta charset="UTF-8">
<title>Tag styles and class styles</title>
<style type="text/css">
p {color: green; font-size: 24px; text-align: center; line-height: 16px; font-weight: bold; font-style: italic; text-decoration: line-through}
</style>
</head>

<body>
<p >This is a p class style<br>
Second line </p>

</body>
</html>

text styles example


CSS designer panel styles