To close or not to close
Read OriginalThe article is a detailed opinion piece sparked by a tweet from Jake Archibald, discussing the stylistic choice between using self-closing tag syntax (e.g., <input />) and the implicit closing syntax (e.g., <input>) in HTML. It argues that while both are functionally equivalent in modern HTML, the explicit syntax can improve code readability at a glance. The author also touches on XML compatibility, tooling, and personal preference, concluding that developers should use what's fastest for them and let formatters handle consistency.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser