|
||
Chapter 2 (pg9) |
||
....
|
||
Viewing the tags without the text, you can see that the code pattern is a s follows: <BODY><B><I></I></B></BODY> Noteice that when tags are nested, the end tags are in reverse order, so that the end tag </I> comes before the end </B>, even though the starting tag <B> came before the starting tag <I>. HTML coding depends on syntax - the order and logic behidn the way tags are applied. for example, certain tags are common to all documents, and those tags appear in a standard order. Tag and attribute names must always be spelled correcly, but HTML is not case-sensitive. Therefore, <BODY>, <body>, and <BoDy> will all be treated the same by a web browser. [INTRUCTOR NOTE] For this course we will be writing all of our tags using upper case so they stand out when viewing the HTML code. Spacing withing lines of code is also irrelevant. The browser ignores hard returns, so you need to use an HTML comand to insert a space between lines. In the code examples and exercises in this course, the code is written on separat lines for clarity, although it is not cecessary. IMPORTANT NOTE!! Although HTML codes are not case-sensitive, file names in many applications ARE case-sensitive. Pay careful attention to capitalization when you include the name of another file or Web document as a link in your HTML document. To keep the process simple we will be using lower-case letters for file names. |
||