Help - Search - Members - Calendar
Full Version: HTML does not read properly and adds a new row
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
pilopo
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
pilopo
I missed a </table>.... Well, I guess I got an experience richer smile.gif
pandy
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.
pandy
Oh, you had already found that. You must have posted while I wrote my answer.

Still, using the validator would have saved you time.
pilopo
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
pandy
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.
AdrianG001
Hey,

You can also try the below link to validate your code. This might help you to avoid your 4 hours tongue.gif

https://www.freeformatter.com/html-validator.html

Adrian Gates.
Web developer- Apps4Rent.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.