Search This Blog

Tuesday, November 12, 2019

Ugly Code!

This is your HTML lesson for the day! 

First, I was looking at a non-public facing web page and, with all but a couple of words hidden to protect the content, this is what the User sees:


Second, I decided to look at the HTML code and, with all but a couple of words hidden to protect the content, the following is what the Developer sees.

But before you look at that, notice line 24. It is a cell in a table with the number 1. Then, in the next cell in the same row, there is text. Notice line 28. It is a cell in a table with the number 2. Then, in the next cell in the same row, there is text.

THAT IS WRONG!!! for a simple reason. That content is NOT TABULAR DATA, which means it DOES NOT BELONG WITHIN A TABLE!!!

Instead, for a numbered list, there should be an ordered list tag - OL - followed by each numbered item within a list tag LI.

Now, you can look at the HTML code.


No comments: