Podcast
Questions and Answers
What is the default HTTP method for submitting a form?
What is the default HTTP method for submitting a form?
What is the purpose of the ENCTYPE attribute in a form?
What is the purpose of the ENCTYPE attribute in a form?
What is the purpose of the AUTOCOMPLETE attribute in a form?
What is the purpose of the AUTOCOMPLETE attribute in a form?
What is the purpose of the ONSUBMIT attribute in a form?
What is the purpose of the ONSUBMIT attribute in a form?
Signup and view all the answers
What is the purpose of the CLASS attribute in an input tag?
What is the purpose of the CLASS attribute in an input tag?
Signup and view all the answers
What is the purpose of the HIDDEN attribute in an input tag?
What is the purpose of the HIDDEN attribute in an input tag?
Signup and view all the answers
What type of event attributes are supported by the HTML tag, in addition to the standard attributes?
What type of event attributes are supported by the HTML tag, in addition to the standard attributes?
Signup and view all the answers
What is the purpose of the FILE input type in HTML?
What is the purpose of the FILE input type in HTML?
Signup and view all the answers
What is the primary purpose of the FIELDSET element?
What is the primary purpose of the FIELDSET element?
Signup and view all the answers
How many new input types were added in HTML5?
How many new input types were added in HTML5?
Signup and view all the answers
What is the first element that must be included in a FIELDSET element?
What is the first element that must be included in a FIELDSET element?
Signup and view all the answers
What is the purpose of the IMAGE input type in HTML?
What is the purpose of the IMAGE input type in HTML?
Signup and view all the answers
What is the benefit of using FIELDSET for users with aural browsers?
What is the benefit of using FIELDSET for users with aural browsers?
Signup and view all the answers
Where can you find examples of all the HTML element types, including the most recent in HTML5?
Where can you find examples of all the HTML element types, including the most recent in HTML5?
Signup and view all the answers
What is an example of an HTML element that can be included within a FIELDSET element?
What is an example of an HTML element that can be included within a FIELDSET element?
Signup and view all the answers
What is the purpose of the DATE input type in HTML?
What is the purpose of the DATE input type in HTML?
Signup and view all the answers
What is the purpose of the LEGEND element in a FIELDSET?
What is the purpose of the LEGEND element in a FIELDSET?
Signup and view all the answers
What is the result of using multiple FIELDSET elements in a form?
What is the result of using multiple FIELDSET elements in a form?
Signup and view all the answers
In which browser can you test ACCESSKEY by using ALT + SHIFT + ACCESSKEY?
In which browser can you test ACCESSKEY by using ALT + SHIFT + ACCESSKEY?
Signup and view all the answers
What is the purpose of the term 'common gateway' in CGI?
What is the purpose of the term 'common gateway' in CGI?
Signup and view all the answers
What is the current version of CGI?
What is the current version of CGI?
Signup and view all the answers
What is the primary function of a CGI script?
What is the primary function of a CGI script?
Signup and view all the answers
Which of the following languages is NOT typically used to write gateway programs?
Which of the following languages is NOT typically used to write gateway programs?
Signup and view all the answers
What is the purpose of CGI environment variables?
What is the purpose of CGI environment variables?
Signup and view all the answers
What is the classification of CGI environment variables into two major categories based on?
What is the classification of CGI environment variables into two major categories based on?
Signup and view all the answers
What is the role of the web server in regards to CGI environment variables?
What is the role of the web server in regards to CGI environment variables?
Signup and view all the answers
What is the purpose of the 'cgi-bin' directory in a web server?
What is the purpose of the 'cgi-bin' directory in a web server?
Signup and view all the answers
What is the format of the URL produced by the query 'bicycle tours' in the Yahoo search engine?
What is the format of the URL produced by the query 'bicycle tours' in the Yahoo search engine?
Signup and view all the answers
What is the purpose of the Location directive in a CGI script?
What is the purpose of the Location directive in a CGI script?
Signup and view all the answers
What is the format of the Status directive in a CGI script?
What is the format of the Status directive in a CGI script?
Signup and view all the answers
What is the purpose of the show_vars.php program?
What is the purpose of the show_vars.php program?
Signup and view all the answers
What is the purpose of the Content-type directive in a CGI script?
What is the purpose of the Content-type directive in a CGI script?
Signup and view all the answers
What is the $_SERVER array initialized by in a PHP script?
What is the $_SERVER array initialized by in a PHP script?
Signup and view all the answers
What needs to be checked before running a CGI script?
What needs to be checked before running a CGI script?
Signup and view all the answers
Study Notes
-
To test ACCESSKEY in Chrome, use ALT + ACCESSKEY (I, O, C), and in Firefox, use ALT + SHIFT + ACCESSKEY.
-
The FIELDSET element defines a form control group, dividing a form into smaller, more manageable parts, and improving usability and accessibility.
-
The CGI (Common Gateway Interface) is a mechanism by which programs, called scripts, can create dynamic Web documents, and it acts as a gateway between the WWW and any other type of data or service.
-
CGI scripts are placed in a server directory, often named cgi-bin, and can deliver information that is not directly readable by clients.
-
The current version of CGI is 1.1.
-
The browser issues a query to the server, which interprets it and invokes the proper CGI script, passing it the input data, and the output from the script is returned via the server to the browser.
-
Any language that can produce an executable file can be used to write gateway programs, such as C/C++, PHP, JavaScript, Python, or Java.
-
Interpreted languages like PHP, JavaScript, Python, or Java are often preferred as they are easy to write and portable, and speed is usually not a factor.
-
Anchors are used to invoke CGI scripts, and a hypertext reference can refer to a remote file, an executable script in the cgi-bin directory, or an executable script with arguments.
-
CGI environment variables are created by the web server and set immediately before the web server executes a gateway script, and they can be classified into two major categories.
-
The FIELDSET element must begin with a LEGEND to provide a caption for the group of controls, and it can contain any HTML element, including another FIELDSET.
-
The tag is used inside the tag to specify a data-entry object, and it has attributes like TYPE, NAME, VALUE, CHECKED, SIZE, MAXLENGTH, and SRC.
-
HTML5 adds several new attributes for validation, and the tag also supports the Global Attributes and Event Attributes.
-
The TYPE attribute of the tag can have values like CHECKBOX, FILE, HIDDEN, IMAGE, PASSWORD, RADIO, RESET, SUBMIT, and TEXT.
-
HTML5 adds 13 new input types, including DATE, DATETIME, and others.
-
The CONTENT-TYPE directive specifies the MIME type of the document being returned, such as text/html or text/plain.
-
The LOCATION directive alerts the server that the script is returning a reference to a document, not an actual document.
-
The STATUS directive is used to give the server an HTTP/1.1 status line to send to the client, with a format like nnn xxxx.
-
Before running CGI scripts, it is essential to check that the scripts, other programs that the scripts call, and the directory in which the scripts reside are readable and executable by the server.
-
PHP is a language with built-in ability to access environment variables, and show_vars.php is a program that prints environment variables.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of HTML form attributes, including ACTION, METHOD, ENCTYPE, and ACCEPT-CHARSET. Learn how to specify form handlers, HTTP methods, and content types in your HTML forms.