How to Add a Dotted Underline Beneath HTML Text

后端 未结 9 1547
挽巷
挽巷 2020-12-23 19:54

How do you underline html text so that the line beneath the text is dotted rather than the standard underline? Preferably, I would like to do this without using a separate C

9条回答
  •  庸人自扰
    2020-12-23 20:49

    You can try this method:

    Hello World!

    Please note that without text-underline-position: under; you still will have a dotted underline but this property will give it more breathing space.

    This is assuming you want to embed everything inside an HTML file using inline styling and not to use a separate CSS file or tag.

提交回复
热议问题