text-decoration property ব্যবহার করে টেক্সটে আন্ডারলাইন (underline), ওভারলাইন (overline), স্ট্রাইকথ্রু (line-through) যোগ করা যায়।
উদাহরণ
নিচের উদাহরণটি দেখিয়ে কীভাবে টেক্সট ডেকোরেট করা যায়। সম্ভাব্য মান: none, underline, overline, line-through, blink (অপ্রচলিত)।
<html>
<head>
</head>
<body>
<p style="text-decoration:underline;">
This will be underlined </p>
<p style="text-decoration:line-through;">
This will be striked through. </p>
<p style="text-decoration:overline;">
This will have a over line. </p>
<p style="text-decoration:blink;">
This text will have blinking effect </p>
</body>
</html>
আধুনিক CSS: text-decoration এখন shorthand: text-decoration-line, text-decoration-color, text-decoration-style, text-decoration-thickness।