I am currently making a website, and I would like to know if there is ever a space after
<. By this I mean is there anything like
< html> or is there no such thing as a "command" that has a space after
By this I mean is there anything like
< html>or is there no such thing as a "command" that has a space after
No, you cannot have a space immediately after the
< (less-than sign) in an HTML element's opening start tag.
From the HTML spec:
Start tags must have the following format:
- The first character of a start tag must be a U+003C LESS-THAN SIGN character (<).
- The next few characters of a start tag must be the element's tag name.
There is no room for a space in there.
If you try this in a browser then it will likely output the malformed opening start tag as literal text. For example:
<p>Foo < b>bar</b> baz</p>
...is output in the browser as:
Foo < b>bar baz