Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the argument is against adding rules to tags to create a default set of styles, not against using semantic tags throughout the page.

If my understanding is correct, the argument is to use

  <style>
    .my-article {
      background-color: fuchsia;
    }
  </style>
  <article class="my-article">...</article>
rather than

  <style>
    article {
      background-color: fuchsia;
    }
  </style>
  <article>...</article>


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: