Etl Labs PVT LTD - Java Programming
Etl Labs PVT LTD - Java Programming
210
Set Text Size
The font-size property defines the text
size for an HTML element 1
5
5
211
Set Text Alignment
The text-align property defines the horizontal text
1
5 alignment for an HTML element
6
2
5 Let's see an example of HTML image.
2
<img src="good_morning.jpg" alt="Good Morning
Friends"/>
Attribute of image tag
Text Input
<input type="text"> defines a one-line input field
for text input
<input type="radio">
defines a radio button.
Radio buttons let a user
select ONE of a limited
number of choices
<input type="submit">
defines a button for
submitting the form data to a
form-handler.
<form action="/action_page.php">
Example
<form action="/action_page.php"
target="_blank">
Example
<form action="/action_page.php" 3
5
method="get"> 8
Or
<form action="/action_page.php"
method="post">
/action_page.php?firstname=Mickey&lastname=Mouse
Notes on GET:
• Appends form-data into the URL in name/value pairs
• The length of a URL is limited (about 3000 characters)
• Never use GET to send sensitive data! (will be visible in
the URL)
• Useful for form submissions where a user wants to
bookmark the result
• GET is better for non-secure data, like query strings in
Google
Notes on POST: 4
5
0
• POST has no size limitations, and can be used
to send large amounts of data.
• Form submissions with POST cannot be
bookmarked