Modern HTML must follow all the XML rules, which is that tags in pairs look like
"<foo></foo>" and standalone tags look like "<foo/>". Whether or not there is
whitespace before a "/" is a stylistic choice, but the "/" MUST be present in
standalone tags. Having "<br>" by itself is wrong, full stop. -- Darren Duncan
On 2022-09-29 11:23 a.m., Omar KN wrote:
Hi and good day,
So now BREAK should be only <br> in HTML5.
Until a week ago the w3 corrector marked <br /> as the only correct way.
w3:
"Self-closing tag syntax in text/html documents is widely discouraged." Some for
BBEdit ( CTRL - CMD - Y) marks the <br /> as necessary.
(And then there are flavours of HTML ), I'm using <!doctype HTML>.
So a little confused, which way to take?
/
with best regards, Omar KN, Stockholm, Sweden
Related:
link1
html - Are (non-void) self-closing tags valid in HTML5? - Stack Overflow
<https://stackoverflow.com/questions/3558119/are-non-void-self-closing-tags-valid-in-html5>
link2
HTML 5: Is it <br>, <br/>, or <br />? - Stack Overflow
<https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br>
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/533ad74c-8cb2-75af-42b3-84d347ecad0e%40darrenduncan.net.