answersLogoWhite

0

How do you bold text in HTML?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

In XHTML, you can use the <strong> tag, which by default makes it bold in all major browsers. You can also use any other tag you feel like styling for boldness, such as <span class="bold">

<strong>Bold Text</strong>

Or

<span class="bold">Bold Text</span>

With the CSS rule

strong, span.bold {font-weight:bold;}

In HTML 4 and HTML5, you have the <b> tag, which makes things bold by default. In HTML 4, this is by definition. In HTML 5, you still want to include the CSS, as the <b> tag is NOT bold by definition

<b>Bold Text</b>

CSS rule:

b {font-weight:bold;}

The <strong> tag will also work in HTML5.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What can bold style text be used to indicate?

Yes, bold is an HTML text feature. You use the &lt;b&gt; tag to display bold text.


What is the code for bold in HTML?

Technically speaking, the HTML code to guarantee that text will be bold is the bold-faced tag: &lt;b&gt;Bold Text Here&lt;/b&gt; The bold-faced tag is available in HTML 4 and 5, but was deprecated in XHTML. The tag isn't semantic. If you want a more semantic solution (or if you're in XHTML) you'll want to use the &lt;strong&gt; tag. It works exactly the same way, and most browsers display &lt;strong&gt;Text&lt;/strong&gt; as bold by default. However, to ensure that the strong tag remains bold, you also have to add a definition to your CSS. strong {font-weight: bold;}


What is the definition of B tag in HTML?

It stands for Bold. It is used to bold text in a web page.


What are HTML translators?

That depends, it may be HTML script "translated" into normal text, as BBCode where you can make bold text, and it can be HTML which is translated into for example PHP with echo tags.


How do you make bold letters in HTML?

Use Bold tag &lt;b&gt; Eg: &lt;b&gt; text &lt;/b&gt;


What are translators?

That depends, it may be HTML script "translated" into normal text, as BBCode where you can make bold text, and it can be HTML which is translated into for example PHP with echo tags.


What is the correct tag to render text in italics?

The HTML 5 specification recommends using &lt;strong&gt; for bold text and &lt;em&gt; for italicised text. In HTML 4.01 &lt;strong&gt; defines both strong and emphasised text; for purely bold text, use &lt;b&gt; instead (in HTML 5, &lt;b&gt; and &lt;strong&gt; are equivalent).


HOW will you make certain piece of text bold- faced in HTML?

Use &lt;b&gt;Your Text Here&lt;/b&gt; OR &lt;strong&gt;Your text here&lt;/strong&gt;


What is b in HTML?

The b tag makes text bold.For example if you give the below code in your HTML pageThis is a sample text and this part alone would be displayed in Bold. The rest would be normalThe output would be:This is a sample text and this part alone would be displayed in Bold. The rest would be normal


HTML code for showing all the text styles and effects with examples?

To demonstrate various text styles and effects in HTML, you can use the following code snippet: &lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt; &lt;title&gt;Text Styles&lt;/title&gt; &lt;style&gt; .bold { font-weight: bold; } .italic { font-style: italic; } .underline { text-decoration: underline; } .strikethrough { text-decoration: line-through; } .highlight { background-color: yellow; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;p class=&quot;bold&quot;&gt;This is bold text.&lt;/p&gt; &lt;p class=&quot;italic&quot;&gt;This is italic text.&lt;/p&gt; &lt;p class=&quot;underline&quot;&gt;This is underlined text.&lt;/p&gt; &lt;p class=&quot;strikethrough&quot;&gt;This is strikethrough text.&lt;/p&gt; &lt;p class=&quot;highlight&quot;&gt;This is highlighted text.&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; This code showcases bold, italic, underlined, strikethrough, and highlighted text styles using CSS classes.


How will you make certain piece of text bold-faced in HTML?

For HTML, the code would be &lt;b&gt;(insert word here without parenthases)&lt;/b&gt;


Is it possible to apply more than formatting attribute to the same text?

If you're talking about HTML. Yes Text (Text) .. You can have italics as well as bold at one time.