HTML Color Names HTML Color Names The table below provides a list of the color names that are supported by all major browsers. Note: If you want your pages to validate with an HTML or a CSS validator, WC has listed 16 color names that you can use aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. If you want to use other colors, you must specify their RGB or HEX value. Color Name Color HEX Color AliceBlue #F0F8FF AntiqueWhite #FAEBD7 Aqua #00FFFF Aquamarine #7FFFD4 Azure #F0FFFF Beige #F5F5DC Bisque #FFE4C4 Black #000000 BlanchedAlmond #FFEBCD Blue #0000FF BlueViolet #8A2BE2 Brown #A52A2A BurlyWood #DEB887 CadetBlue #5F9EA0 Chartreuse #7FFF00 Chocolate #D2691E Coral #FF7F50 CornflowerBlue #6495ED Cornsilk #FFF8DC Crimson #DC143C Cyan #00FFFF DarkBlue #00008B DarkCyan #008B8B DarkGoldenRod #B8860B DarkGray #A9A9A9 DarkGrey #A9A9A9 DarkGreen #006400 DarkKhaki #BDB76B DarkMagenta #8B008B DarkOliveGreen #556B2F
TYPE THE DOCUMENT TITLE 60 WEEK Six HTML Forms and Input HTML Forms are used to select different kinds of user input. An HTML form allows a visitor to input information and possibly send that information to a server on the Internet for processing. Form elements such as text boxes, radio buttons, checkboxes, and text fields provide a graphical interface so visitors can specify data very easily. Creating the HTML code to devise a web page form is not difficult, but creating the scripting code that receives and processes the form data can be complex. Constructing an HTML form fora web page is a two-part process. The first part being the actual creation of a form in an HTML document, which is covered in this week’s activities. The second part is the creation of a CGI common gateway interface) program that will receive the form data and implement the action specified within the program located on a web server. The creation of a CGI program requires knowledge of a high-level programming language such as Perl, CC, ASP, PHP, etc. A form is generated in HTML using the element. All other form elements such as , , and must be placed within the opening and closing tags. Form Element Form elements are elements that allow the user to enter information (like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc) in a form. A form is defined with the The element has the following standard attributes action" - specifies the URL of the CGI program located on a web server which will process all active form data elements.
TYPE THE DOCUMENT TITLE 61 method" - specifies the way in which the form data will be transferred to the HTTP server. Method options are "get" and "post" with "get" being the default method type. enctype="" - specifies the way in which the form data will be encoded before it is transferred to the HTTP server. Input The most used form tag is the tag. The type of input is specified with the type attribute. The input element is the basis for various button types and text types. attributes areas follows *** Attributes *** type="text" type="button" type="checkbox" type="file" type="hidden" type="image" type="password" type="radio" type="reset" type="submit" - specifies the data entry field property to use as input. name" - gives the input type a name for CGI processing purposes. Required for all form types except submit, reset, and button. value" - either gives a form field an initial value or gives a label to a button. Required for radio and checkbox form types. align="top" align="middle" align="left" align="right" - provides an alignment for an image form type. checked - specifies the initial state of a radio or checkbox form type to be selected. maxlength="#" - specifies the maximum length of form textfield characters. size" - specifies the visual number of textfield characters in a textfield.
TYPE THE DOCUMENT TITLE 62 src="imageURL" - specifies the URL of the image for an input image type. The most commonly used input types are explained below.