
Off Topic
5 replies to this thread. Most Recent
Todd
28 Oct 2017, 6:14 pm
Closing an <input > tag
<input type="text" />
Todd
QREATiv https://qreativ.space Community Project
What is the current thinking on closing <input > tags.
Todd
28 Oct 2017, 6:22 pm<input type="text" />
Todd
QREATiv https://qreativ.space Community Project
What is the current thinking on closing <input > tags.
David Ledger
28 Oct 2017, 7:13 pmOn 28 Oct 2017, at 19:20, Todd wrote:
<input type="text" />
Todd
QREATiv https://qreativ.space Community Project
What is the current thinking on closing <input > tags.
Thanks Todd. Safari still claims to be adding its own shadow content and closing tag, but if the trailing ‘/‘ format is what people are using I’ll go with that.
David
Todd
28 Oct 2017, 7:39 pmThe trailing slash is not required, at least not in HTML5. I often write it with the slash purely out of habit (which I’m trying to break) but I often see it written without.
Besides, I noticed that Safari strips it out in the Web Inspector.
Todd
QREATiv https://qreativ.space Community Project
David Ledger wrote:
On 28 Oct 2017, at 19:20, Todd wrote:
<input type="text" />
Todd
QREATiv https://qreativ.space Community Project
What is the current thinking on closing <input > tags.
Thanks Todd. Safari still claims to be adding its own shadow content and closing tag, but if the trailing ‘/‘ format is what people are using I’ll go with that.
David
