Answers for "line through text html"

2

how to strike out text in html

<strike>help</strike>
Posted by: Guest on June-28-2020
8

css strikethrough html text

style="text-decoration: line-through;"
Posted by: Guest on July-07-2020
0

html text content new line

//setting this css style solving problem with new line in textContent
h1.setAttribute('style', 'white-space: pre;');

//add \r\n in text everywhere You want for line-break (new line)
h1.textContent = "this is line one  \r\n and this is line 2";
Posted by: Guest on September-22-2020
0

line under text html

<u> text </u>
Posted by: Guest on October-12-2020

Browse Popular Code Answers by Language