Skip to main content

How to bold one word or letter in HTML

· 4 min read
Charly Abraham
Co-Founder, Phoenix Code

Want just one word to stand out? In Phoenix Pro, select the word in Live Preview and click B. In Community (free), wrap the word in HTML tags, as in <b>walks</b>. Both methods give you “favorite walks, quiet views” with the comma and the rest of the sentence in regular type.

Open the paragraph you want to edit​

You can use your own HTML page. To follow the screenshots, download the Trail Notes practice website and extract the ZIP. Open the extracted first-website folder in Phoenix Code using the folder with a plus at the top left and Open Folder….

Double-click index.html in the file list. If Live Preview is closed, click the lightning bolt on the right. If prompted, choose Trust & Execute Preview for the practice folder. Look for the paragraph beginning “Welcome to Trail Notes.” beneath the heading “A little time outside.”

Make part of a paragraph bold​

Select the word in Design Mode​

  1. Click the maximize icon in the preview toolbar to enter Design Mode. If the pen button is gray, click it to turn on Edit Mode. The pen turns orange.
  2. Click the paragraph to select it, then double-click its text. The formatting toolbar appears above or below the paragraph.
  3. Drag across just the five letters in walks. Leave the comma outside the selection. Click B, the first button on the formatting toolbar.
Phoenix Pro shows the formatting toolbar above the paragraph. Only the word walks is selected, and the comma is outside the highlight.
  1. Press Enter to finish editing. With index.html active, click the floppy-disk icon beside the file list to save the change. Click the orange pen to see the result without editing outlines.

For one letter, place the cursor just before it while editing the paragraph. Hold Shift and press Right Arrow once to select it. Click B, press Enter, and save as before.

The saved Trail Notes paragraph reads “favorite walks, quiet views” with only walks in bold.

Why did the whole paragraph turn bold?​

In Pro, clicking B with no text selected formats the whole paragraph. Undo the change, double-click the paragraph, and check which letters are highlighted before clicking B again. In HTML, check the position of </b>. Everything between <b> and </b> gets the formatting.

When should I use <strong>?​

Use <strong> when the words carry importance or urgency. For example, <strong>Trail closed</strong> after heavy rain. marks “Trail closed” as a warning. Use <b> to draw attention to an ordinary word, as you did with “walks.” Read the HTML definition of <strong>.