1.First HTML document:
Hi there! This outputs: Hi there! Simple enough, and you can type text to your heart’s content, but you can do more complex things if you put your mind to it. Besides, all that text with no formatting won't make the person reading the page too happy. What are the words between the < and >? The <> are called “tags.” > means to “turn off” or “close” the tag and <> means to turn the tag on. For instance starts the html document and starts the html body(i.e. what is output to the screen!) Sometimes you can get away with not closing a tag at the end of a document, but most of the time you should make sure to. There are some tags that will not need to be turned off. Let’s look at these next. But remember, they are exceptions to the rule. Note: don’t worry about capitalization inside of tags, at least not for the simple ones. The exceptions later are more complex and get into JAVA/JAVAScript but we are focusing on HTML first. 2.Which tags don’t need to be closed/turned off?and
Line below here.
--you need to have a *.gif or *.jpg file or your browser may not be happy—unless you have plug-ins, but that’s another issue. Basically this will create a picture if you have a file called picture.gif.
9.My picture’s a big question mark. What’s up?
Make sure the file the img src is pointing to exists. If so, make sure "picture.gif" can be opened by other graphical applications. You may want to open it in your web browser.
10.What about text formatting? These pictures look very out-of-place, or just plain ugly.
We’ll get to that later, but don’t worry, there’s a way to fix that. Basically, inside a tag you can set variables.
The most
wide-reaching one is inside the body tag.
What does this do? Sets background color to red, text color to white, hidden(non-visited) link to green, and visited link(vlink) to yellow. Note: you have to decide for yourself what colors to use. Some combinations clash.
11.Are any other tags immediately useful?
Yes. One of my favorites is the | row 1, col 1 | row 1, col 2 | row 1, col 3 | row 1, col 4 |
| row 2, col 1 | row 2, col 2 | row 2, col 3 | row 2, col 4 |