HTML Tutorial

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Q1.

<li> , <ol> , <ul> tags

1.) <li> tag defines a list item….This tag is used for both ordered lists <ol> and
unordered lists <ul>
2.) <ol> tag defines a ordered list…An ordered list can be numbered numerically or
alphabetically
3.) <ul> tag defines an unordered list…An Unordered list is bulletted

Figure 1 <ul> tag attributes

Attribute Value Description


reversed reversed Specifies that the list order should be descending (9,8,7...)
start number Specifies the start value of an ordered list
type 1 The list items will be numbered with numbers (default)
A The list items will be numbered with alphabets (Upper Case)
a The list items will be numbered with alphabets (Lower Case)
I The list items will be numbered with roman numbers (capital)
i The list items will be numbered with roman numbers (small)

<li> tag attributes


Attribute Value Description
value number Specifies the value of a list item. The following list items will
increment from that number (only for <ol> lists)

Q2. <audio> tag


1.) The <audio> tag defines sound, such as music or other audio streams.
2.) Currently, there are 3 supported file formats for the <audio> element: MP3, WAV, and
OGG:
3.) Any text between <audio> and </audio> will be displayed in browsers that do not support
the <audio> tag.

Attribute Value Description


autoplay autoplay Specifies that the audio will start playing as soon as
it is ready
controls controls Specifies that audio controls should be displayed
(such as a play/pause button etc)
loop Specifies that the audio will start over again, every
time it is finished
muted Specifies that the audio output should be muted
src URL Specifies the URL of the audio file
preload auto Specifies if and how the author thinks the audio
metadata should be loaded when the page loads
none

Q2. <video> tag


1.) The <video> tag specifies video, such as a movie clip or other video streams.
2.) Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and
Ogg:
3.) Any text between the <video> and </video> tags will be displayed in browsers that do not
support the <video> element.
4.) <video> tag has all the <audio> tag attributes plus the below mentioned attributes

Attributes(additional) Value Description


height pixels Sets the height of the video player
width pixels Sets the width of the video player
poster pixels Specifies an image to be shown while the video is
downloading, or until the user hits the play button

Q3. Anchor <a> tag


1.) The <a> tag defines a hyperlink, which is used to link from one page to another.

href URL 1.) Specifies the absolute URL of the page the lin
2.) href = "http://www.google.com (points t
3.) href = "page1.html" (points to a file wi
4.) href = "#bottom" (links to an element
hreflang language_code Specifies the language of the linked documen
download
filename Specifies that the target will be downloaded whe

target _blank Opens the linked document in a new win


_parent Opens the linked document in parent fram
_self Opens the linked document in the same
_top Opens the linked document in full body of
framename Opens the linked document in a named f
type media_type Specifies the media type of the linked docum

media media_query Specifies what media/device the linked documen

Eg1.

You might also like