Do you use DOCTYPE without any reference?

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> Since HTML5, DOCTYPE no longer requires a reference to a DTD. Back in HTML 4.01, The DTD links were used in to specify the rules for the markup language (Transitional, Strict, Frameset etc) so that the browsers render the content correctly. It's no longer necessary. </>} />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "https://www.w3.org/TR/html4/strict.dtd">

❌ Figure: Figure: Bad example – Old reference in DOCTYPE

<!DOCTYPE html>

✅ Figure: Figure: Good example – HTML 5 DOCTYPE declaration

For more information, see HTML !DOCTYPE Declaration on w3schools.com.

Acknowledgements

Adam Cogan
Tiago Araujo
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star