This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Wordpress

How to Underline Text in Wordpress

Updated on:
May 11, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to add underlined text in WordPress using a Custom HTML block.

Quick summary

To underline text in WordPress, you can insert a Custom HTML block and wrap your text in <u> tags directly in the block editor. This method works in WordPress.com and gives you precise control over text formatting without relying on theme styles.


Steps

  1. Go to your WordPress dashboard, navigate to Posts or Pages, and open the content where you want to add underlined text.
  2. Click the + button to add a new block.
  3. Select the Custom HTML block from the block options.
  4. Type or paste the following HTML code into the block: <p>This is an <u>underlined</u> text.</p>
  5. Replace the text inside the <u> tags with your desired text.
  6. Click Preview to see how the underlined text looks, then click Save to save your changes.

📌 Why this matters

WordPress does not include a native underline button in its default block editor toolbar, making it unclear how to apply this common formatting style. Using the Custom HTML block with the HTML tag gives WordPress users a reliable, browser-safe way to underline specific text in posts and pages. This approach works across all WordPress.com themes and does not require plugins or custom CSS. Knowing this technique helps content editors maintain precise typographic control and meet accessibility or brand formatting requirements.
Your product deserves an interactive demo
Start free
Similar Articles
Wordpress

How to Integrate Replit with WordPress

Madhav Bhandari
Director of Marketing @ Storylane
Wordpress

How to Edit Blog Page Wordpress

Madhav Bhandari
Director of Marketing @ Storylane
Wordpress

How to Find your WordPress Login URL

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it