Computer Science, asked by ritika8455, 9 months ago

width is the attribute of which tag
1 font tag
2 BR tag
3 HR tag
4 B tag​

Answers

Answered by thesonofkrishna
1

Explanation:

1-Not Supported in HTML5.

The <font> tag was used in HTML 4 to specify the font face, font size, and color of text.

What to Use Instead?

Example

Set the color of text (with CSS):

<p style="color:red">This is a paragraph.</p>

<p style="color:blue">This is another paragraph.</p>

Example

Set the font of text (with CSS):

<p style="font-family:verdana">This is a paragraph.</p>

<p style="font-family:'Courier New'">This is another paragraph.</p>

Example

Set the size of text (with CSS):

<p style="font-size:30px">This is a paragraph.</p>

<p style="font-size:11px">This is another paragraph.</p>

2- Example

Insert single line breaks in a text:

<p>To force<br> line breaks<br> in a text,<br> use the br<br> element.</p>

Definition and Usage

The <br> tag inserts a single line break.

The <br> tag is useful for writing addresses or poems.

The <br> tag is an empty tag which means that it has no end tag.

Tips and Notes

Note: Use the <br> tag to enter line breaks, not to add space between paragraphs.

Example

Use <br> in a poem:

<p>Be not afraid of greatness.<br>

Some are born great,<br>

some achieve greatness,<br>

and others have greatness thrust upon them.</p>

<p><em>-William Shakespeare</em></p>

3- Example

Use the <hr> tag to define thematic changes in the content:

<h1>The Main Languages of the Web</h1>

<p>HTML is the standard markup language for creating Web pages. HTML describes the structure of a Web page, and consists of a series of elements. HTML elements tell the browser how to display the content.</p>

<hr>

<p>CSS is a language that describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work, because it can control the layout of multiple web pages all at once.</p>

<hr>

<p>JavaScript is the programming language of HTML and the Web. JavaScript can change HTML content and attribute values. JavaScript can change CSS. JavaScript can hide and show HTML elements, and more.</p>

Definition and Usage

The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).

The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page

4-HTML <b> Tag

Example

Make some text bold (without marking it as important):

<p>This is normal text - <b>and this is bold text</b>.</p>

Definition and Usage

The <b> tag specifies bold text without any extra importance.

Tips and Notes

Note: According to the HTML5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should be denoted with the <mark> tag.

Tip: You can also use the following CSS to set bold text: "font-weight: bold;".

lobal Attributes

The <b> tag also supports the Global Attributes in HTML.

Event Attributes

The <b> tag also supports the Event Attributes in HTML.

More Examples

Example

Use CSS to set bold text:

<p>This is normal text - <span style="font-weight:bold;">and this is bold text</span>.</p>

Related Pages

HTML tutorial: HTML Text Formatting

HTML DOM reference: Bold Object

Default CSS Settings

Most browsers will display the <b> element with the following default values:

Example

b {

 font-weight: bold;

}

Similar questions