Mobile app version of vmapp.org
Login or Join
Frith620

: Is `` the same as ``? When viewing the source of a website I realized that it is different in Firefox and Chrome. A single tag <wbr> in Chrome is displayed as <wbr></wbr>

@Frith620

Posted in: #Html #Tags

When viewing the source of a website I realized that it is different in Firefox and Chrome.

A single tag <wbr> in Chrome is displayed as <wbr></wbr> in Firefox.

Are they the same?

Thank you in advance.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

This is most likely because you're looking either in Firefox's "Developer Mode" or Firebug. This tends to show closing tags even when they aren't defined or required. Viewing the pure HTML source (i.e. view-source:https://www.site.tld/example-url) should only show the base HTML tag.

<wbr> doesn't require a closing tag in HTML 4 or 5, so it should be fine to use as is.

Note that if you're using XHTML then you will need to self-close as <wbr />

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme