DEV Community

Adam Mateusz Brożyński
Adam Mateusz Brożyński

Posted on

The Kosher Rule of WWW

Always separate the code logic from the data presentation and the data presentation from the presentation styles.

  • Stop mixing PHP with HTML!  → Use Twig template engine instead.
  • Stop mixing CSS with HTML! → Remove completely style attribute from tags in page content and learn to use class instead.

Follow this rule if you want to save the World Wide Web.

Discussion (0)