style.textunderlineposition='under' javascript code example Example: how to underline text in css h3 { text-decoration: underline; }