HTML5 allows either <br> or <br/>. Does the W3C specification or any other authority state whether one is preferable over the other? Is there a good reason (or reasons) to use one over the other if adherence to XHTML is irrelevant?
HTML5 void elements' ending / is optional, but is it preferable?
596 views Asked by at. At
2
There are 2 answers
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in TAGS
- kid3 - Import Album Art along with other tags from Discogs
- total commander adds a note to a file using tcimg and the parameters don't work correctly?
- Laravel: check if cache has key with thag
- How do I add tags to HTML web pages and sort them with a filter?
- Replace nth-occurence of a string with an html tag
- how to mention tags in robotframework while writing scripts
- I'm in Playwright, how do I run specific test cases by tag in (CI) execution
- What software can I use (if any) to embed URL links into a .mp4 file without paying for a subscription?
- OSMNX: Dealing with empty dataframe of attributes when using the features module
- How can I hide the "BRAND NEW" project in my portfolio?
- How do you sort a list view in Visual C++?
- Can't overwrite !important tag (tried several tips already)
- Trouble Separating Tags from Notes in JavaScript Notes App
- not able to add previous commit into github tag using workflow
- Allows tag edition in buefy taginput
Related Questions in CODING-STYLE
- Using Repository pattern to fetch data from different places and build list of objects
- JavaScript function to validate an email address using regular expressions, ensuring it follows the standard format
- Suppress "this.field" code style warning only in constructors
- Need help on how to get my bigger image shown above the thumbnail images after radio botton checked on the thumbnail images without use javascript?
- What is the 'correct' approach to clean code UI in Delphi Pascal?
- How do I reduce repetitive error handling in java
- Is there a solution to a react installation error?
- Pixela does not let me create graph (HTTP Error: 400) - user does not exist or the token is wrong
- How can align if statement in cpp with clang?
- Why Feature Envy sample code in the clean code book is a code smell?
- is it okay to change the value of parameter inside of method in Dart?
- NextJS import location styling?
- INNER JOIN ON LEFT JOIN. What best way solve problem?
- How to access webtable data in selenium?
- Suspect code indent for conditional statements
Related Questions in W3C
- Is Anular's emulated shadow DOM html standard conform and why does nobody care?
- HTML element's textContent and value unnecessarily different
- ontology versioning: Link both versionIRI#MyClassIRI and ontologyIRI#MyClass123 to same resource in rdf / owl
- TypeScript doesn`t support IntersectionObserver v2 "delay" and "trackVisibility" options
- Need a traceable id for each outbound request
- Where's the best place to see usage stats for the "is" attribute on customized built-in HTML elements?
- Why are Android elements easily seen in Appium Inspector not being seen at automation runtime?
- How to perform a Tap using Appium 2.0 C#
- Browser DOM Credential Management API password store not working - get returns null
- W3C Caused by: com.apicatalog.jsonld.JsonLdError: Unexpected response code [429]
- Web App manifest: `related_applications` and enabled CORP does not load image on Android
- Content Security Policy Hashes for Files Don't Seem to Work
- Web Share API in ReactJS is not sharing Text with Files & URL
- Android CredentialManager: GetCredentialResponse error returned from framework
- XML Parser is not failing while parsing String xml with special character > but fails with < in JAVA
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In HTML5 compliant browsers, this makes no difference. I think you would have difficulty citing any resource which preferred
<br />over<br>, slash-trailing image tags, or even closing<path>elements. It is most likely preferable not to have the trailing slash simply because the document takes just that much longer to fetch from the webserver and for the HTML interpreter to serialize (as minuscule a time differential as this actually provides). In addition, all HTML5 compliant browsers strip these characters in runtime, which is evident when you callouterHTMLon an HtmlElement.EDIT: I also think that if there was any difference or adherance to a standard to preserve, it would be reflected on the w3c page: https://www.w3.org/wiki/HTML/Elements/br
However, I feel as though it is worth mentioning that browsers that are not compliant with HTML5 standards (mostly earlier, unsupported versions of IE) demand a trailing slash to render the element.