×

Html Wbr Tag

The Line Break Opportunity element

A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the HTML document.

Syntax:

<body>
<div id="#">
………………
<wbr>……………… <wbr>
………………
</div>
</body>

HTML:

<!DOCTYPE html>
<html>
<head>
<title>HTML video tag </title>
</head>
<body>
<div id="example-paragraphs">
<p>zsxdcfvyguhlijkictvybnibebo[‘revvvvvrgbgyvnemc08rbvn</p>
<p>zsxdcfvyguhlij<wbr>kictvybnib<wbr>ebo[‘<wbr>revvvvvrgbgyvnem<wbr>c08rbvn</p>
<p>zsxdcfvygu<&shy>hlij<&shy>kictvybnib<&shy>ebo[‘<&shy>revvvvvrg<&shy>bgyvnemc0<&shy>8rbvn</p>
</div>
</body>
</html>

CSS:

.output {
background-color: gray;
}


#example-paragraphs {
background-color: white;
overflow: hidden;
resize: horizontal;
width: 9rem;
}

Output:

HTML wbr Tag

Attributes

This HTML tagonly contains the general attributes.

On pages with UTF-8 encoding, this tag serves as the U+200B ZERO-WIDTH SPACE code point.

This element was initially used in Internet Explorer 5.5 even though it was officially specified in HTML5.

Example

The following code explains how to use WBR code in HTML:

HTML:

<p>
http://this<wbr>.is<wbr>.a<wbr>.really<wbr>.long<wbr>.example<wbr>.com/With<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages 
</p>

Output:

HTML wbr Tag

Browser support:

List of browsers that support wbr tag in HTML are mentioned below:

Chrome:Yes

Microsoft Edge:Yes, version 12 needed

Firefox:Yes, version 1 needed

Safari:Yes

Opera:Yes


Related Topics

HTML Hide Element

The HTML hide element is used to hide the element. We place the hidden attribute inside those elements which we want to hide. The hidden attribute is a Boolean attribute. The...

3 minutes read.

HTML Data Tag

HTML Data Tag: The HTML < data > tag is used to transmit its content to a machine-readable version. The data are presented in a particular format. It is useful...

3 minutes read.

HTML Nested Table

HTML nested table refers to a table that is created inside another table. The table is in the form of rows and columns. From left to right are called horizontal rows,...

5 minutes read.

HTML Font Color

The HTML <font> tag has an attribute called color, which defines the color of the text. We use the color attribute inside the <font> tag to specify the color of...

6 minutes read.

HTML Forms

Forms are required when we want to collect data from the user. Html forms consists of different fields to take user inputs such as: input, text area, checkbox, password, radio...

4 minutes read.

HTML5 Formatting

HTML Formatting HTML Formatting is a method of text formatting for a better appearance and look. HTML allows us to format text without using the CSS. HTML includes a lot of formatting tags....

6 minutes read.

HTML Unordered List

In HTML, we have <ul> tag which defines the unordered list. And it is also known as bulleted list, because as we know it is not ordered list therefore it...

2 minutes read.

HTML Reset Button

The HTML reset button is used to reset all values in the form. It clears all input fields. Reset is the value of the type attribute of the button element. The...

6 minutes read.

HTML Elements

An HTML element is nothing but a starting tag and then some content and then the closing tag. So we can say HTML elements is everything from the starting tag...

3 minutes read.

HTML <strong> tag

The strong element in HTML is used to display the real significant information in bold so that the user or reader will understand it easily. Syntax: <p> <strong>………… </strong> </p> Example Here, we will demonstrate how to...

2 minutes read.

How to change font in HTML

To give style to the content of your website, you may change the font of the text and make your website look attractive to the user. There are several methods which...

4 minutes read.

What is a Container tag?

In HTML, there are different types of tags or say instructions which make the developer specify various elements in the document and make the browsers understand what to display. Tags in...

5 minutes read.

HTML Form Action

The <form> tag has an attribute named action that contains a URL. The HTML action attribute defines the webpage URL on which you want to send the data after submitting...

4 minutes read.

HTML SVG

HTML SVG: SVG stands for Scalable Vector Graphics which defines the graphics for the web. It is a language for describing 2-D graphics in XML. Each drawn shape in SVG is...

1 minute read.

HTML Links

It consist of anchor element which is used to create a link between a source anchor and destination anchor. The anchor tag can be embedded between text, image, video or...

2 minutes read.

HTML Headings

The titles and subtitles of our webpages are known as HTML headings. Let’s not talk about webpages but giving heading to almost everything like normal paragraphs, articles or let it...

2 minutes read.

Html &lt;center> Tag

The term HTML refers to Hyper Text Markup Language. The most widely used markup language for making web pages is HTML. A structure of web page is described in HTML....

3 minutes read.

Design a tribute page using HTML and CSS

A tribute page is a webpage based on a person who inspired us in our life. In this article, we will create a webpage of Mahatma Gandhi. We are going...

5 minutes read.

Font tag in HTML

HTML stands for Hypertext Mark-up Language and is used to create web pages and other information that can be later displayed in a web browser. It also consists of a...

4 minutes read.

HTML Search Box

The HTML search box is also known as the search bar. It is an input text field that is used to search the content. If the users want to explore...

7 minutes read.