Don’t use /> in HTML ๐Ÿšซ!

by Mar 7, 2024

Don’t use /> in HTML ๐Ÿšซ!

I always thought I needed to close HTML tags properly, even for tags like <br/>๐Ÿท๏ธ.

It was in the hype around 2000s when the idea was that XHTML was the future. I was one of the first to pick this up and try to make my web pages validate as XML๐ŸŒ.

My blog was at that time, but it needed to be monitored closely because one mal typed character could fail the parsing๐Ÿ’ป.

Then for me and many others the realization came that the World Wide Web was so great, because HTML parsers were so permissive๐Ÿ’ก.

Being strict would have killed the Web!

From that time, I picked up on the habit of closing HTML tags, like <br/>. This is required in XHTML but it isn’t for HTML๐Ÿ“.

This week I read the article by Jake Archibald: ‘The case against self-closing tags in HTML’ https://jakearchibald.com/2023/against-self-closing-tags-in-html/ ๐Ÿ“ฐ

It made me realize that I had been doing it wrong all those years๐Ÿ’ญ.

<br> is the correct wayโœ…!

Even an old-timer like me can update their mental software! ๐Ÿ˜„๐Ÿง 

#
Remy van Duijkeren

Remy van Duijkeren

Power Platform Advisor

Microsoft Power Platform Advisor with over 25 years of experience in IT with a focus on (marketing) automation and integration.

Helping organizations with scaling their business by automating processes on the Power Platform (Dynamics 365).

Expert in Power Platform, Dynamics 365 (Marketing & Sales) and Azure Integration Services. Giving advice and strategy consultancy.

Services:
– Strategy and tactics advise
– Automating and integrating

Subscribe to
The Daily Friction

A daily newsletter on automation and eliminating friction

Related Content

ReSharper is 20 years old! ๐ŸŽ‰

ReSharper is 20 years old! ๐ŸŽ‰ Reading https://blog.jetbrains.com/dotnet/2024/07/23/resharper-20-years/ makes me realize how long I have been a .NET developer. I still remember using ReSharper for the first time. ๐Ÿ’ก ReSharper made Visual Studio a much better IDE. ๐Ÿš€ It...

read more

Switching from Google to Bing ๐Ÿ”

Switching from Google to Bing ๐Ÿ” Recently, I've decided to switch from Google Search to Microsoft Bing, and hereโ€™s why: Ad Overload on Google: Google's integration of its advertising and search teams has led to a surge in sponsored links. This trend often means...

read more

Improving Optimization?

Improving Optimization? The traditional steps of Optimization: 1. Eliminate 2. Automate or 3. Delegate What if we added a missing element? Simplify. Before automating a convoluted workflow or delegating a tangled task, strip away the unnecessary. Make processes leaner...

read more