|
|
| Simple Intro to Html |
- HTML stands for Hyper Text Markup Language.
- An HTML file is a text file that holds the html markup tags.
- The html markup tags is what tells the Web browser how to display the html page.
- An HTML file must have an htm or html file extension.
- You can use a Text editor or even a html editor and there are many to chose from.
- I suggest you use a normal Text editor if you really want to learn html.
I would like to first say that in order to truely learn anything, you need to actually do it over and over again.
First thing we are going to learn is the Comment tag. <!-- -->
The Comment tag is a nice tag to use because if your doing alot of html and maybe you need to leave reminders
for yourself as to what you were puting in a certain area of your page.
This tag when used can not be seen by browsers. So when ever you use this tag, only you can see it. Not anyone
visiting your webpage. Unless they view source. ( So please be carefull as to what you put in them )
Example:
<!-- My first webpage -->
Type in the following text in a Text editor:
<html>
<head>
<title>Title of html page</title>
</head>
<body>
<!-- Only on view source can this comment be seen -->
This is my first webpage. <b>This text is bold</b>
</body>
</html>
|
Let's Talk about it.
HTML Tag <html>
Description :
The HTML tag identifies a document as an HTML document. All HTML
documents should start with the <html> tag and end with the </html> tag.
Syntax
<html> </html>
Attributes
No Attributes.
Head Tag <head>
Description :
The HEAD tag defines an HTML document header. The header contains information about the
document rather than information to be displayed in the document. The web browser displays
none of the information in the header, except for text contained by the TITLE tag. You should
put all header information between the <head> and </head> tags, which should precede the BODY tag.
Syntax
<head>....</head>
Attributes
Attributes.
The HEAD tag can contain TITLE, BASE, ISINDEX, META, SCRIPT, STYLE, and LINK tags.
BODY Tag - <body>
Description :
The <BODY> tag specifies the
main part of the document. It is here that all the content should appear
(between the opening and closing <BODY>..</BODY>
tags). You can specify the background colour of the page, text colour, font
style etc..
Syntax
<body> </body>
<body BACKGROUND="bgURL" BGCOLOR="color"
TEXT="color" LINK="color" ALINK="color" VLINK="color"
ONLOAD="loadJScode" ONUNLOAD="unloadJScode" ONBLUR="blurJScode"
ONFOCUS="focusJScode">
The UNIVERSAL ATTRIBUTES can be used with this tag.
Attributes
BACKGROUND specifies the location of the background image to
display or tile.
BGCOLOR specifies the background colour of the document being
displayed.
TEXT specifies the colour of normal (i.e. not link text) text.
LINK specifies the colour of unvisited links.
ALINK specifies the colour to which the link changes briefly to
when clicked. Once the ALINK colour has been displayed momentarily, it will
change to the VLINK colour if specified. If not, it will display the link in the
browsers default visited link colour.
VLINK specifies the colour of visited (clicked) links.
ONLOAD specifies the JavaScript code to be executed when the
page has loaded.
ONUNLOAD specifies the JavaScript code to be executed when the
page is left, and another link followed.
ONBLUR specifies the JavaScript code to be executed when the
window in which the dosument is displayed receives focus.
ONFOCUS specifies the JavaScript code to be executed when the
window in which the dosument is displayed loses focus.
The UNIVERSAL ATTRIBUTES can be used with this tag.
The text between the <b> and </b> tags will be displayed in a bold font.
Well that was just a short intro into html and if you want to learn more, go thru the site and practice and practice
|
|