HTML FORMS, Frame PDF
HTML FORMS, Frame PDF
HTML Form
HTML forms are required if you want to collect some data
from of the site visitor.
HTML Form:
example above.
</form>
Input Type Password
<form>
<form action="/action_page.php">
The <input> Element Usually, the form data is sent to a file on the
server when the user clicks on the submit button.
<form action="/action_page.php"
method="get">
The Method Attribute
● The method attribute specifies the
HTTP method to use used when Example
submitting the form data.
● The form-data can be sent as URL This example uses the POST method when
variables (with method="get") or as submitting the form data:
HTTP post transaction (with
method="post"). <form action="/action_page.php"
● The default HTTP method when method="post">
submitting form data is GET.
Notes on GET:
The <input> Element If the name attribute is omitted, the value of that
input field will not be sent at all.
HTML Form:
<textarea name="message" rows="10"
cols="30">
</textarea>
The <fieldset> and <legend>
Elements
HTML Form:
<form action ="/action_page.php">
</fieldset >
</form>
Input Type Color
<form>
<label for="favcolor">Select your
The <input> Element You can also use the min and max attributes to add
restrictions to dates:
<form>
</form>
● Input Type File
<form>
checked Specifies that an input field should be pre-selected when the page loads (for type="checkbox" or type="radio")
HTML Form:
Example
The <input> Element
<form>
</form>
Input Restrictions Example:
<form action="/action_page.php" autocomplete="on">
<label for="email">Email:</label>
<label for="points">Points:</label>
Syntax
<iframe src="url" title="description">
● An HTML iframe is used to display a
web page within a web page. Tip: It is a good practice to always include a title
attribute for the <iframe>. This is used by screen
readers to read out what the content of the iframe
is.
Iframe - Set Height and Width
Use the height and width attributes to specify the
Example
<iframe src="demo_iframe.htm" height="200"
● An HTML iframe is used to display a width="300" title="Iframe Example"></iframe>
web page within a web page.
Or you can add the style attribute and use the CSS
height and width properties:
<iframe src="demo_iframe.htm"
style="height:200px;width:300px;"
title="Iframe Example"></iframe>
Iframe - Remove the Border
By default, an iframe has a border around it.
HTML IFrames: To remove the border, add the style attribute and use
the CSS border property:
<iframe src="demo_iframe.htm"
style="border:none;" title="Iframe
● An HTML iframe is used to display a Example"></iframe>
Example
<iframe src="demo_iframe.htm"
style="border:2px solid red;" title="Iframe
Example"></iframe>
Iframe - Target for a Link
An iframe can be used as the target frame for a link.
HTML IFrames: The target attribute of the link must refer to the name
attribute of the iframe: