Thanh Ngo
Thanh Ngo

Reputation: 365

How to bold title html tag

I see a interesting thing with title tag html, the title tag can bold. Like this page. Anyone know how to do it? bold title tag

Upvotes: 1

Views: 13050

Answers (2)

Francisco Hanna
Francisco Hanna

Reputation: 1137

Edit

Don't do this. As @Quentin said in the first comment, it's bad for A11Y.

Also, not possible to achieve in an accessible way: <title> can't be styled using CSS.


Previous answer

One solution is to use the unicode chars of bold text. If you inspect the source of those examples that you quoted, you see this:

enter image description here

You can copy this line:

CSS Editor - 𝗢𝗡𝗟𝗜𝗡𝗘 𝗖𝗦𝗦 𝗖𝗢𝗠𝗣𝗢𝗦𝗘𝗥 𝗔𝗡𝗗 𝗖𝗟𝗘𝗔𝗡𝗘𝗥

Here's a list of unicode chars. From U+1D5D4 on you find the ones you want.

Upvotes: 6

Da Mahdi03
Da Mahdi03

Reputation: 1608

You can use the <strong> tags inside your normal text tags in HTML (<p>, <a>, <span>, etc.)

Styles cannot be applied to the <title> tag.

In CSS, you can use the property font-weight: bold; on any normal text tags as well.

Upvotes: 0

Related Questions