Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Remove from favorites Remove from favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (10 votes)

90% thumbs up 10% thumbs down

How would you rate this answer?

Thank you for rating this answer.

HTML Examples #1 - How to Bold Text

There are two ways to bold text. Either way will work, so it just depends on your personal preference.

The first way is the old school way, using "strong" tags. Here is an example:

<div>This is regular text</div>
<div><strong>This is bold text</strong></div>

The second way is using CSS. CSS can be inline or external. The "more correct" way is to use an external file, but they will both work.

Inline example:
<div>This is regular text</div>
<div style="font-weight:bold">This is bold text</div>

External file example:
If there is something like this in the header of your web pages:
<link href="" type="text/css" rel="stylesheet" />

then that means the external CSS file with the CSS detail is located at the href  location, which in this case was:

So you would need to edit that file and add something like this:

font-weight: bold;

This would create a CSS class called "BoldMe" that can be accessed from any page that has the call to the CSS file at the top of the page. So if you've done that, then here's how it would work in the HTML:

<div>this is regular text</div>
<div class="BoldMe">bold text</div>

Related Articles

No related articles were found.


No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software