Read this tip to make your life smarter, better, faster and wiser. LifeTips is the place to go when you need to know about Starting Up and other Html topics.

Why won´t my code work?


In order to avoid troubleshooting your code later on, it's important when learning HTML to focus on nesting. Nesting is the order in which HTML tags are opened, ex. <BODY>, and closed, ex. </BODY>.

The rule is this: First to open is last to close. Here's an example of improper and then the proper code:

Improper code

<H3><B>This is a Headline</H3></B>

Proper code

<H3><B>This is a Headline</B></H3>

Things can get much more complicated looking than this simple example, but if you remember to close tags in the opposite order than they were opened, you'll save yourself time troubleshooting.



Nobody has commented on this tip yet. Be the first.


URL: (optional)


Not finding the advice and tips you need on this Html Tip Site? Request a Tip Now!

Guru Spotlight
Jolyn Wells-Moran