Professional Documents
Culture Documents
Chap 03 - HTML and Multimedia On The Web
Chap 03 - HTML and Multimedia On The Web
Chap 03 - HTML and Multimedia On The Web
Prepared for:
CSC264 – Introduction to Web and Mobile Application
OVERVIEW OF THIS CHAPTER
Text Layout:
The following tags or attributes can be used to change how the text is aligned:
HTML STRUCTURE: TEXT
Text Layout:
HTML STRUCTURE: DIVISION
Div Tag:
The syntax for font tag:
<div> content </div>
Each item that needs to be listed down will have the following syntax:
<li> content </li>
HTML STRUCTURE: LISTS
Unordered Lists (Style Attribute):
To define the style of the marker (bullet points), a style attribute can be added
Style Description
list-style-type:disc The list items will be marked with bullets (default)
list-style-type:circle The list items will be marked with circles
list-style-type:square The list items will be marked with squares
list-style-type:none The list items will not be marked
HTML STRUCTURE: LISTS
Ordered Lists:
Allows you to list down items in order (numerically)
The syntax for ordered list is:
<ol> content </ol>
Each item that needs to be listed down will have the following syntax:
<li> content </li>
HTML STRUCTURE: LISTS
Ordered Lists (Type Attribute):
To define the style of the marker (bullet points), a type attribute can be added
Style Description
type="1" The list items will be numbered with numbers (default)
type="A" The list items will be numbered with uppercase letters
type="a" The list items will be numbered with lowercase letters
type="I" The list items will be numbered with uppercase roman numbers
type="i" The list items will be numbered with lowercase roman numbers
HTML STRUCTURE: LISTS
Description Lists:
Allows you to list down items with a description of each item
The syntax for description list is:
<dl> content </dl>
Each item name or term that is listed down will have the following syntax:
<dt> content </dt>
What is MULTIMEDIA?
Graphics (Images):
Other graphics format include:
<audio otherAttributes>
<source src =“......”type =“.....”>
</audio>
Other attributes that can be used to control the way the sound is played
are shown below:
Attribute Result
File Format Audio Type
autoplay Plays sound when the page is viewed
MP3 audio/mpeg
controls Shows a slider that lets the user control the sound
Ogg audio/ogg
(Its width and length can be changed using CSS)
Wav audio/wav
loop Plays the sound repeatedly
MULTIMEDIA ON THE WEB
Embedding Audio: You can use style attribute to
customize your controls
<video otherAttributes>
<source src =“......”type =“.....”>
</video>
Other attributes that can be used to control the way the sound is played
are shown below:
Attribute Result
File Format Video Type
autoplay Plays video when the page is viewed
MP4 video/mp4
controls Shows a slider that lets the user control the video
WebM video/webm
(Its width and length can be changed using CSS)
Ogg video/ogg
loop Plays the video repeatedly
MULTIMEDIA ON THE WEB
You can use style attribute to
Embedding Video: customize your controls
Provide alternatives:
The browser will use the first recognized format.
HTML: LINKS
Links:
Allow users to get from one web page to another
In HTML, a link is known as Hyperlink
Links:
Uses the anchor tag:
<a> link text </a>
Value Purpose
_self Link will be opened in the same frame as it was clicked (default)
cell cell
HTML: TABLES
cell cell