In HTML5, they are equivalent. Use the shorter one, as it is easier to remember and type. Browser support is fine since it was designed for backwards compatibility.
More Related Contents:
- Force browser to clear cache
- Force to open “Save As…” popup open at text link click for PDF in HTML
- What is DOCTYPE?
- Provide an image for WhatsApp link sharing
- What is the functionality of !DOCTYPE?
- Which are the standard W3C meta tags?
- Set HTML5 doctype with XSLT
- Any reason not to start using the HTML 5 doctype? [closed]
- What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?
- What are the different doctypes in html and what do they mean?
- Uppercase or lowercase doctype?
- HTML5 doctype putting IE9 into quirks mode?
- Can comments appear before the DOCTYPE declaration?
- What happens if the meta tags are present in the document body?
- Why do I need a doctype? (What does it do) [duplicate]
- Hover effects not working with IE8
- How is the meta viewport tag used, and what does it do?
- Why certain DOCTYPE declarations cause 100%-height tables and divs to stop working?
- iPad layout scales up when rotating from portrait to landscape
- comma after td entry html [closed]
- How to add a new line in textarea element?
- How to remove the underline for anchors(links)?
- Input with display:block is not a block, why not?
- How can I repeat a piece of HTML multiple times without ngFor and without another @Component?
- Remove background arrow from date input in Google Chrome v20
- How do I capture text from a HTML element given its id=”” from a WebView2 in VB.NET?
- Is there a `pointer-events:hoverOnly` or similar in CSS?
- How to successfully embed images in HTML for display in webmail clients?
- How to set a microdata image property, without letting the browser download the image?
- What is the purpose for HTML’s tbody?