: 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>
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.
More posts by @Frith620
1 Comments
Sorted by latest first Latest Oldest Best
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 />
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.