HTML Tags
HTML Tags
PROGRAMMING
1
HTML Tags
HTML <audio>Tag
HTML <video> Tag
Applying a Background Color
Specifying a Background Image File
2
HTML <Audio>tag
3
HTML <Audio>tag Example
4
HTML <Video >Tag
5
HTML <Video >Tag Example
6
Applying A Background Color
In HTML, we can change the color of the background of a webpage using the following
different ways:
Using bgcolor attribute
Using an Inline style attribute
Using internal CSS
To change the color of a background of a web page, bgcolor attribute can be used
within the starting tag in our Html document.
7
HTML Color Codes And Name
8
Applying A Background Color Example
9
Specifying A Background Image File
To add a background image on an HTML element, see the HTML background attribute
<body background=“roses.jpg”>
10
Background Image File example
11
HTML Elements
Meter Element
Progress Element
Image Hyperlinks
Image Maps
12
Meter Element
13
Meter Element Example
14
Progress Element
The progress element displays a bar that depicts a numeric value within a
specified range.
The progress element is configured with the value (the value displayed) and
max (highest possible value) attributes.
15
Progress Element Example
16
Image Hyperlinks
17
Image Hyperlinks Example
18
Image Maps
19
Image Maps
Client - side image maps: The web browser works out which part of the
image the user has clicked on and takes the user to the appropriate page.
Server - side image maps: The browser sends the server the coordinates,
saying which part of the image the user clicked on, and these are processed
by a script file on the server that determines which page the user should be
sent to.
20
Client-side Image
21
Shape Coordinates
22
Image Maps Example
23
Server-side Images Map
With server - side images, the < img > element sits inside an <a> element just like any
image that is a link.
But the < img > element carries a special ismap attribute, which tells the browser to send
the server x, y coordinates representing what part of the image the user ’ s mouse was on
when clicked the image map.
Then a script on the server is used to determine which page the user should be sent to,
based on the coordinates fed to it.
24
Server-side Images Map Example
25