7 Old-School Practices in HTML Should Be Avoided

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Avoid using outdated HTML practices like specifying type attributes for <script> and <style>, using frameborder on <iframe>, and including support for IE 8. Utilize semantic elements like <header> and <footer> properly within sections, and choose heading tags based on page structure rather than design. Lastly, simplify boolean attributes by omitting unnecessary values.

4m read timeFrom dev.to
Post cover image
Table of contents
Using type attribute for <script> and <style>Accordion (FAQ) block requires JS codeUse <header> and <footer> only once per pageUsing frameborder="0" to remove border around <iframe>Include support for IE 8Randomly choose heading tagsAdding ="1" for boolean attributes
13 Comments

Sort: