If..Else Log

How many font tags does it take to make text black?

According to Sainsbury, 18.

  1. <font color="#000000">
  2. <font color="#000000">
  3. <font color="#000000">
  4. <font color="#000000">
  5. <font color="#000000">
  6. <font color="#000000">
  7. <font color="#000000">
  8. <font color="#000000">
  9. <font color="#000000">
  10. <font color="#000000">
  11. <font color="#000000">
  12. <font color="#000000">
  13. <a href="/food/mealideas/weeklyrecipe/">
  14. <font color="#000000">
  15. <font color="#000000">
  16. <font color="#000000">
  17. <font color="#000000">
  18. <font color="#000000">
  19. <font color="#000000">
  20. <strong>
  21. <font color="#f26334">Weekly recipe offer</font>
  22. </strong>
  23. <font color="#f57f33">
  24. <strong>:</strong>
  25. </font>
  26. Sweet and sour chicken
  27. </font>
  28. </font>
  29. </font>
  30. </font>
  31. </font>
  32. </font>
  33. </a>
  34. </font>
  35. </font>
  36. </font>
  37. </font>
  38. </font>
  39. </font>
  40. </font>
  41. </font>
  42. </font>
  43. </font>
  44. </font>
  45. </font>

I guess sometimes you just have to make extra sure1.
[sent via Mathew via email]


  1. I'm aware that this is more likely to be a result of a quirk with the CMS that they're using rather than being handcoded cruft. However, this really highlights the need for clean and responsible code generation by CMS. For a company that was previously highlighted for accessiblity, it's quite a letdown. [back]

-30-

2 Responses to “How many font tags does it take to make text black?”

  1. Gravatar Rida Al Barazi June 3rd, 2006 8:52 am

    Oh my god, this is really somthing they have to take care of.

    New WYSIWYG editors like TinyMCE are doing optimization and validation before publishing and now they have better integration with CMSs like Drupal, this is the minimum they can do if they don’t know how to handcode it.

  2. Gravatar Fabian De Rango June 3rd, 2006 3:19 pm

    You can’t pay for piece of mind these days.