| On this page: | about html | about tags | learning html | fixing html | writing good code |
|---|
| about HTML |
top ↑ |
|---|---|
|
Q: What is "HTML"? Answer:
Q: What is "CSS"? Answer:
Q: What is "code"? Answer:
"code" is some text or characters that a program uses,
but a person doesn't see.
Your web browser is a program, that uses the html code to know
how to display the text and pictures.
When you look at your web page in the browser,
you don't see the Q: What is the minimum code an html page should have? Answer:
At the very least, your page should have the codes you see in
this template
|
|
| about tags |
top ↑ |
|---|---|
|
Q: What is a "tag"? Answer: An html tag is a piece of code that tells the browser how to display something.
All tags (well almost all), have a begin tag and an end tag,
for example,
<b>
is the begin, and
</b>
is the end,
in the
Q: What are these tags that don't have end tags? Answer:
The most common ones are:
This is confusing! Why don't those ones have end tags? Think of a tag as a container, or a box. It holds some text or something. The begin tag and end tag are the top and bottom of the box. For example, the <b> tag holds some text within it, which is bold. Everything outside the begin 'b' and end 'b' is not bold.
But the 'br' and 'img' tags don't hold anything: they are the thing.
Q: What is an "attribute"? Answer: An "attribute" is something added to the tag, to change how it looks. It is like an adjective for a tag. An attribute has a name and a value. Example:
<img src="images/photo.jpg"
src and alt are "attributes" of the img tag. src is the name of one attribute, and images/photo.jpg is the value of that attribute.
Example:
width is an attribute of the p tag. The value is 50%. Q: What are "block" and "inline" tags? Answer:
"Block tags" are those which fall underneath each other down the page. Most of the html tags are "block tags": h1 h2 etc, p, li, div. "Inline tags" will flow "inline" — they will follow across the page. A few tags are inline tags: The most common are: a, b, i, img, span. |
|
| learning HTML |
top ↑ |
|||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Q: How can i learn html? Look here. Q: Why should i learn html? I can use Dreamweaver/Front Page/... Answer:
The trouble with these programs is that they don't always make good html, and they don't help you to understand how it all works. When things get complicated, they substitute their own words and concepts for standard web technology concepts. So later you will have to learn all over again! Still, they can be useful when you are beginning, so that you can make websites right away. And you can make pages easily and then see how dreamweaver makes the html, to learn how html works. Q: What is a text editor? Answer: A text editor is a program like Notepad – or better, Textpad, or some other good text editor. It edits only the text, the characters, of your file. A program like DreamWeaver or Front Page is NOT a text editor. It is a website building program. If you write your web pages in the "code view", it can be very useful for making your web pages. But be sure to look at your pages in a real web browser — you may find that they don't look the same in the program "display view" as they do in a real web browser!
A program like Microsoft Word or Open Office Writer
is NOT a text editor.
It is a word processor:
It has hidden codes in the file, and your web page
won't work if you make it with Word or OOffice.
In fact — if you open a Word ( Q: What is a "browser"? Answer: A "browser", or "web browser" is a program on your computer that displays web pages. MicroSoft Internet Explorer is one web browser program. Another browser very popular these days is Firefox. Other browsers are Chrome. Opera. Safari. Galeon. lynx. and many others. There are even web browsers that do not display the page the way you are used to seeing it: For blind people, there are browsers that speak the page, or make the page in braille. Mobile phones or PDAs have browsers that make a special small size of the page to fit on their small screen. 'lynx' is a browser which is text only - it does not display images, movies, etc.
| ||||||||||||||||||||||||||||||