Seeing that a site closed for 2 hours because it didn't think there could be an error in his HTML coding, I've decided to post a little tool I like to use before saving modifications. It's an online HTML beginner tutorial site and there's a testing feature on it.
Code your html lines and then test it.
You can also use a really cool tool:
NotePad++ is not only for HTML! It's for C, C#, C++, LUA and a lot more!