Intro HTML
Intro HTML
HTML
Introduction-
Video
• HTML, otherwise known
as HyperText Markup
Language, is the
What language used to create
is Web pages
• Using HTML, you can
HTML create a Web page with
? text, graphics, sound,
and video
The essence of HTML
programming is tags
A tag is a keyword
Tags enclosed by angle brackets
(Example: <I> )
For A w in Bold
Code
Challen Sho Show “I study in DPS
ge!!
• Type <IMG SRC =
“image.ext”>, where
image.ext indicates the
location of the image file
Inserti • The WIDTH=n and
HEIGHT=n attributes
ng can be used to adjust the
Image size of an image
• The attribute BORDER=n
s can be used to add a
border n pixels thick
around the image
Time • Make a simple webpage
For A of your choice
Code And
• https://www.w3schools.com/html/exercis
e.asp?filename=exercise_html_attribute
s3
• https://www.w3schools.com/html/exercis
e.asp?filename=exercise_html_headings
1
Let’s
Reflect
• Give the name of one HTML editor program
• 7. What 2 file extensions can you use to save an HTML file?
• 8. How would you set up a link in HTML to http://website.dpssharjah.com
(* include everything from the open a tag to the close a tag)
• 10. What does the <body> tag/element define?
• 11. What does the <html> tag/element define?
• 12. What does <br/> do? This is an example of what kind of element?
• 18. What are the three default looks of a link on the Web?
• An unvisited link is underlined and __________________________.
• A visited link is underlined and __________________________.
• An active link is underlined and __________________________.
• 19. Provide an example of three tags which can be placed in between the <head>
and </head> tag.
• There are different types of
form controls that you can
use to collect data using
HTML HTML forms:
Form • Text Input Controls
Control • Checkboxes Controls
s • Radio Box Controls
• Clickable Buttons
• Submit and Reset Button
Types of text input
controls
Example
<html>
<body> Output
<form>
First name:<input
type="text"name="first_nam
e"><br>
Last name:<input
type="text"name="last_name
">
</form>
</body>
</html>
Time
For A • Make a webpage of your
choice single line input
Code controls.
Challen
ge!!
Example Output
<html>
<body>
<form>
User ID:<input
type="text"name="user_id"
><br>
Password:<input
type="password"name="pa
ssword">
</form>
</body>
</html>
Time
For A • Create a login page with
2 input boxes for User ID
Code and Password.
Challen
ge!!
Example
<html>
<body>
<form>
Description:<br><textarea rows="5" cols="50"
name="description">
Enter description here..</textarea>
</form> Output
</body>
</html>
Time
For A • Make a description box
Code of your choice
Challen
ge!!
Example
<html>
<body>
<form>
<input
type="checkbox"name="checkbo
x1"value="Maths"checked>Maths
<input
type="checkbox"name="checkbo
x2"value="Physics">Physics
</form>
</body>
</html>
Time
• Make any 3 check box of
For A your choice.
Code
Challen
ge!!
Example
<html>
Output
<head>
<title>Radio Box Control</title>
</head>
<body>
<form>
<input
type="radio"name="subject"value="maths"
>Maths
<br>
<input
type="radio"name="subject"value="physics
" selected>Physics
</form>
</body>
</html>
Time
For A • Make any 3 radio boxes
Code of your choice
Challen
ge!!
• Example:
output
<html>
<body>
<form>
<select name="subject">
<option value="Maths">Maths
</option><option value="Physics"selected>Physics
</option>
</select>
</form>
</body>
</html>
Time
For A • Make any 3 check boxes
Code of your choice.
Challen
ge!!
Example
<html>
<body>
<form>
<input
type="submit"name="submit"val
ue="Submit">
<input
type="reset"name="reset"value=
"Reset">
<input
type="button"name="ok"value="
OK">
<inputtype="image"name="imag
e
button"src="/html/images/logo.p
ng"/>
Time For A Code
Challenge!!
• Make a button control of your choice
Let's summarize
Thank you