Just keep in mind, the usage of style attribute overrides any style set globally. How do you underline html text so that the line beneath the text is dotted rather than the standard underline? Will greatly facilitate maintenance. : a { color: blue; text-decoration: none; /* no underline */ } You can also use the inherit value if you want to use attributes from parent styles instead: HTML, XHTML & CSS Status Für weitere Antworten geschlossen. For more border styles, check out HTML borders over at Quackit. HTML CSS Code For Custom Text Underline Style Live Preview. Although most web browsers will continue to support the u element to underline text, the usage of the u element makes the web pages less “pretty” in the sense of web standards compliant. But ... And if you can believe it this thing requires no extra HTML to work. Now it represents a text different from another text stylistically, such as a misspelled word. Um z. Albert Wiersch Site Admin Posts: 3573 Joined: Sat Dec 11, 2004 3:23 pm Location: Near Dallas, TX. The style attribute specifies an inline style for an element. Preferably, I would like to do this without using a separate CSS file. You can see below syntaxes. Improve this question. I'm a novice at html. Deklariere HTML-Elemente im Also advise you not to use