Page 90 - Computer Class 06
P. 90
8 It facilitates the programmer to add graphics, videos and sound to the web pages
which makes it more attractive and interactive.
8 HTML is a case insensitive language, which means we can use tags either in
lower-case or upper-case.
Rules for Coding HTML
There are five important rules for coding with HTML tag.
1. Tags are always surrounded by angle brackets — less than< and greater than>
characters, as in <HEAD>.
2. Most tags come in pairs and surround the material they effect. They work like a
light switch : the first tag turns the action on, and the second turns it off. (There
are some expectations. For instance, the <BR> tag creates a blank line and
doesn’t have an ‘off switch’. Once you have made a link break, you can’t
unmake it.)
3. The second tag — the ‘off switch’ always starts with a forward slash. For example,
you turn on bold with <B>, shout your piece, and then go back to regular text
with, </B>.
4. First tag on, last tag off. Tags are embedded, so when you start a tag within
another tag, you have to close that inner tag before closing the outer tag. For
instance, the page will not display properly with the tags in this order:
<HEAD><TITLE>Your text </HEAD></TITLE>
The correct order is:
<HEAD><TITLE> your text </TITLE></HEAD>
5. Many tags have optional attributes that use values to modify the tag’s behaviour.
The <P> (paragraph) tag’s ALIGN attribute, for instance, lets you change the
default (left) paragraph alignment. For example, <P ALIGN = (CENTER> Centers
the next paragraph on the page.
Starting a New Line
A line break ends the line you are currently on and resumes on the next line. Placing
<br> within the code is the same as pressing the return key in a word processor.
The code is as follows:
<HTML>
<HEAD>
Computer-6 90 Computer-1