

|
Scroll Bar definition. Once you know which area is defined, with which code, you can modify it as you like. |
|
<STYLE TYPE="text/css">
Copy &
Paste The code on your page. To change the style of the page scrollbar you need to insert the above code between your <head></head> tag in the page, or before the </body>. To modify the color, just replace the Hexa decimal color, of your choice. Hexa-decimal Color: deepskyblue4 #00688B red #FF0000 navy #000080 green #00FF00 huntergreen #215E21 black #000000 indigo #2E0854 white #FFFFFF dimgrey #696969 blue #0000FF darkgrey #A9A9A9 gray65 #A6A6A6 gray66 #A8A8A8 aluminum #A9ACB6 indianred #B0171F heather blue #B7C3D0 gray72 #B8B8B8
|
|
This tutorial will teach you how to make a menu like tables that will change background color when you mouseOver. . |
|
|
First create your menu on your page. Then identify your two colors, one is for mouseOver and another one for initial color. In my case mouseOver color is: #999999 and initial color is: #CCCCCC |
|
|
Now copy this code to the head of you document. (Between <HEAD></HEAD> tags)
style type="text/css"> Change the color in blue with your own colors.
td.off
will be our
initial table color which is lighter grey
#CCCCCC.
Full Code
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
<tr>
Introduction
Introduction |
HTML Tutorial - Documents
An html web page is basically a plain text (ASCII) file. It can be created/modified using any basic text editor.
1. Basic structure
The HTML tag starts and stops the web page. Different sections are defined within the web page.
|
The HEAD html tag starts and stops header info which may or may not be visible to the browser.
The BODY tag starts and stops the part of the web page which will be shown in your browser's window.
2. Header section
This section holds the title of the page and information which tells search engines more about the web page.
2.1 Document title
The TITLE tag defines the title for the html document.
|
This would set the title of the page (shown in the top part of your browser window) to 'Beginner html guide'. This tag is placed within the HEAD section.
2.1 Meta tags
These tags come in many flavors. This beginner's guide only covers search engine related META tags.
|
The NAME attribute defines what type of info the META tag provides. The CONTENT attribute sets the value.
3. Body section
This section is what you see in the browser window. Other html tags covered in this tutorial go here.
4. Example
This sample html code sets the title for the document and adds some text as content for the page.
|
Simply create a text file (with a .html extension) with the above html code and save it do disk.
You could also upload it to your web hosting account. Point a browser to it to see what it does.
Forms allow you to gather information from your web site's visitors. These are often used for shopping carts, polls or to provide feedback. The information entered is sent to a program which in turn reads the form data.
Practical use of forms
The many html form fields can be combined in a single form to make it useful.
Additional attributes can be defined for the html tags used here. The goal of this tutorial/guide is to provide a place for beginners to find help and get started.
1. Defining a form
A form starts with the below line of .html code.
|
The METHOD attribute tells the web server how to pass the data to the script. Usually, this is POST for forms.
Replace script.cgi with the name of your program which will receive the data from your web based form.
Forms end by closing the FORM tag, as shown below.
|
Form elements are defined between those html tags.
3. Form fields
3.1 Text
This field type allows for text to be collected via forms
|
<FORM METHOD="POST" ACTION="script.cgi"> |
The INPUT tag is defined to be of the 'text' TYPE. The NAME attribute will tell the program receiving the data from the form how to find this specific html field.
This creates a form where plain text can be entered.
3.2 Checkbox
This html field type allows for one or more options to be selected in online forms.
|
The INPUT tags are defined to be of the 'checkbox' TYPE.
3.3 Radio buttons
This field type allows for only of of many options to be selected in html forms.
|
The INPUT tags are defined to be of the 'radio' TYPE.
3.4 Drop down menus
This field type offers multiple choices in a drop-down menu within html based forms.
|
The SELECT html tag is used to start the drop down menu. The OPTION tags add options to the menu.
3.5 Multiple lines of text
This html field type allows for large multiple lines of text to be entered into this form example.
|
The TEXTAREA tag adds a larger input box to forms.
3. Downloading files
Links can also be used to offer files for download.
When someone clicks on these links, their browser will pop up a box offering to download the file.
|