wbr tag
<wbr> tag
Html <wbr> is used to specify a line break within an HTML document only if it is necessary other wise no line break.
Without <wbr> tag it is very difficult to read a long text of line, some time you need to scroll right to read more. Whenever <wbr> tag is used auto break the line when contents overlap the Html document area.
Difference between <wbr> tag and <br> tag
<wbr> is used to specify a line break within an HTML document only if it is necessary other wise no line break. but <br> tag force to line break.
Example
<!DOCTYPE> <html> <body> <h3>Html</h3> <p>Html is very simple to <wbr> use and it is also easy to learn. Tim Berners-Lee is known as father of Html.</p> <p>Html (Hyper Text Markup Language) mainly use for design a client side web pages, <wbr> this is a static page it means you can only view Html page not give request and not get response from server using html page.</p> </body> </html>
Result
Html
Html is very simple to
Html (Hyper Text Markup Language) mainly use for design a client side web pages,
The <wbr> tag supports global and event attributes in HTML 5.
Browser supported
Element | |||||
<wbr> | Yes | Yes | Yes | Yes | Yes |