Raphael 9/1/2022

To close or not to close

Read Original

The 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.

To close or not to close

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
3
Introducing RSC Explorer
Dan Abramov 1 votes
5
Fragments Dec 11
Martin Fowler 1 votes
6
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
7
Refactoring English: Month 12
Michael Lynch 1 votes
9