Agyan
adda
Run
Reset
Copy
CSS Tutorial › CSS Text › Text properties
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> h2 { text-align: center; text-transform: uppercase; letter-spacing: 3px; } .shadow { text-shadow: 2px 2px 4px #999; font-size: 24px; } .through { text-decoration: line-through; color: gray; } p { line-height: 1.7; } </style> <h2>Text styling</h2> <p class="shadow">Text with a shadow</p> <p class="through">Old price: ₹999</p> <p>A comfortable line height makes long paragraphs much easier to read on any screen.</p>
Result