.ex1 { text-decoration: overline; } .ex2 { text-decoration: underline; } .ex3 { text-decoration: line-through; } .ex4 { text-decoration: overline underline red wavy; }
<!DOCTYPE html> <html lang="ko"> <head></head> <body> <h1>text-decoration</h1> <p>This is none.</p> <p class="ex1">This is overline.</p> <p class="ex2">This is underline.</p> <p class="ex3">This is line-through.</p> <p class="ex4">This is overline underline.</p> </body> </html>