I'm just wondering if it's acceptable to close a common tag, for example. a <span> that does not require data using an XHTML slash to reduce markup.
<span>
So for example:
<span id='hello'></span>
can be written as
<span id='hello' />
No, you cannot do this, span not a self-closing tag . Here are the tags that close the tags:
span
<area /> <base /> <basefont /> <br /> <hr /> <input /> <img /> <link /> <meta />
Not. What are all valid self-closing elements in XHTML (as implemented by major browsers)?
There are empty or self-closing tags. Span is not one of them.
empty
self-closing
http://justinsomnia.org/2005/12/there-are-only-10-legal-xhtml-empty-tags/
Source: https://habr.com/ru/post/1414956/More articles:Python operator: ++ - operatorsHow to serialize / deserialize the <> class option (functional java) with JSON? - javaConvert XML to VB.NET Dictionary - dictionaryhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1414954/convert-nsrange-contents-to-nsstring&usg=ALkJrhi3Dn5f8hiSfUZFQ6JjLyGanqObpAld: character (s) not found for x86_64 architecture - c ++Make case-insensitive function replacement - javascriptEntity Framework Included Conventions - entity-framework"Interface" does not exist in the namespace - c #CouchDB request using: group_level and: key - couchdbInteractive Brokers C ++ API Example? - c ++All Articles