Translate

Pages

Tuesday, 27 March 2012

A Word About NESTING in HTML…


A Word About NESTING in HTML…
When you are coding your web page, keep in mind that HTML elements cannot overlap each other. So, the
following is invalid:
<strong><em>Incorrect nesting</strong></em>
Why? In this example, the strong element is intended to contain an em element. To be truly contained within
the strong element, the em element's end tag must occur before the strong element's end tag. To correct this
problem, you would need to change the coding to:
<strong><em>Correct nesting</em></strong>
For a visual explanation of nesting – visit “Nesting Tags” from Boston University, available at:
http://www.bu.edu/webcentral/learning/html/basics/syntax-nesting.html.
Now that we know some of the “basics”, let’s put these elements together to create a simple page…

0 comments:

Post a Comment

Thank you for your valuable comments..

 
Twitter Bird Gadget