Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ HTML does not read properly and adds a new row

Posted by: pilopo Jan 1 2018, 08:18 AM

Hi smile.gif

I have been spending about 4 hours trying to figure out why in the world my HTML loads wrong.

I have the fiddle here: https://jsfiddle.net/55L52yww/186/

The issue is that it for some reason makes the first row like a container for the rest of the page. It does this even though I end it right after the table ends. Also the last row is shown in the middle of the page, which I don't seen how is possible either?

Do you guys have any suggestions to why this is?

I would be so happy if you would help me as I am about to rip my head off laugh.gif

Posted by: pilopo Jan 1 2018, 10:08 AM

I missed a </table>.... Well, I guess I got an experience richer smile.gif

Posted by: pandy Jan 1 2018, 10:12 AM

QUOTE(pilopo @ Jan 1 2018, 02:18 PM) *

It does this even though I end it right after the table ends. Also the last row is shown in the middle of the page, which I don't seen how is possible either?


Maybe. But the problem is the table never ends. You've forgotten the closing tag for TABLE. smile.gif

Use the validator. It would have saved you 4 hours. wink.gif
https://validator.w3.org/

Or, if you don't use XHTML or HTML5, you can use our validator that IMO is easier to work with. Links in the top an bottom menu of each page here.

Posted by: pandy Jan 1 2018, 01:30 PM

Oh, you had already found that. You must have posted while I wrote my answer.

Still, using the validator would have saved you time.

Posted by: pilopo Jan 2 2018, 06:59 AM

QUOTE(pandy @ Jan 1 2018, 01:30 PM) *

Oh, you had already found that. You must have posted while I wrote my answer.

Still, using the validator would have saved you time.

I didn't realize they even existed sad.gif Thanks anyways

Posted by: pandy Jan 2 2018, 07:36 AM

Good I told you then. You can learn a lot from validators, even if they themselves have something of a learning curve. The best is to validate frequently as you write the page. That way it's easier to understand and correct the errors.

BTW the other table also lacks the closing tag.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)