4 ms·
Isn’t there an <html> tag there though? It is just untyped, and therefor inferred. If you open this page with any browser, it will contain an <html> tag.
by runarberg 3y ago
Isn’t there an <html> tag there though? It is just untyped, and therefor inferred. If you open this page with any browser, it will contain an <html> tag.
- deleted 3y ago[deleted]
- Mogzol 3y agoThe difference is that it is actually valid according to the HTML spec. Browsers will render lots of invalid HTML which is shorter than that, but if you put such HTML in a validator such as [1], it will have errors. Putting <!DOCTYPE html><title>.</title> in that validator returns no errors (it does have a warning though). Although in response to OP's question, no, I don't think it is related. [1] https://validator.w3.org/nu/#textarea https://validator.w3.org/nu/#textarea