13-08-2012, 10:37 AM
To view pages in browsers and HTML Source
To view pages in browsers and HTML Source.docx (Size: 71.22 KB / Downloads: 24)
This HTML text file contains what is known as the source code of a web page. Most web browsers offer a method of immediately viewing the source code of the web page that is currently loaded. For example, if you're using Internet Explorer then you can view the source code of this very page by clicking on View » Source.
Nesting Rules
The basic principle is that an HTML document consists of a number of elements which are containers, with contents consisting of characters and possibly other elements "nested" within them. There are various syntax rules about what sorts of elements are allowed to contain what sorts of other elements (basically, "block-level" elements like <P> and <BLOCKQUOTE> can contain character-level elements like <EM> and <FONT> but not the other way around), but the most important rule is that elements must always be contained entirely within other elements, not overlapped.
Nested HTML tags should close in the reverse order in which they open. That rule might seem a little confusing, so let’s look at an example. Basically, opening and closing HTML tags shouldn’t get their lines crossed.