Midterm - Current Trends
Midterm - Current Trends
New form controls, like calendar, date, time, email, url, search
HTML Tables
Tables are defined with the <table> tag.
A table is divided into rows with the <tr> tag. (tr stands for table row)
A row is divided into data cells with the <td> tag. (td stands for table data)
A row can also be divided into headings with the <th> tag. (th stands for table heading)
The <td> elements are the data containers in the table.
The <td> elements can contain all sorts of HTML elements like text, images, lists, other
tables, etc.
The width of a table can be defined using CSS.
Table Attributes
Description
<table>
Defines a table
<th>
<tr>
<td>
<caption>
<colgroup>
<col>
<thead>
<tbody>
<tfoot>
The metadata can be used by browsers (how to display content or reload page), search
engines (keywords), or other web services.
ATTRIBUTE
VALUE
DESCRIPTION
charset
character_set
content
text
name
application-name
author
description
generator
keywords
HTML AUDIO
Before HTML5, there was no standard for playing audio files on a web page.
Before HTML5, audio files had to be played with a plug-in (like flash). However,
different browsers supported different plug-ins.
HTML5 defines a new element which specifies a standard way to embed an audio file
on a web page: the <audio> element.
Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <audio>
element.
The control attribute adds audio controls, like play, pause, and volume.
You should also insert text content between the <audio> and </audio> tags for
browsers that do not support the <audio> element.
The <audio> element allows multiple <source> elements. <source> elements can
link to different audio files. The browser will use the first recognized format.
Browser
Ogg
Wav
MP3
(Windows Audio
Files)
(XIPH.ORG, Open
source audio
format)
Internet Explorer
YES
NO
NO
Chrome
YES
YES
YES
Firefox
NO
YES
Update: Firefox 21
running on Windows
7, Windows 8,
Windows Vista, and
Android now supports
YES
MP3
Safari
YES
YES
NO
Opera
NO
YES
YES
Description
<audio>
<source>
HTML VIDEO
Before HTML5, there was no standard for showing videos/movies on web pages.
Before HTML5, videos could only be played with a plug-in (like flash). However,
different browsers supported different plug-ins.
HTML5 defines a new element which specifies a standard way to embed a video or
movie on a web page: the <video> element.
Firefox
Safari
Opera
MP4
YES
NO
YES
YES
YES
Update 1: Firefox 21
on Windows and
Android now supports
YES
MP4
Update 2: Firefox 30
on Linux now supports
MP4
YES
NO
NO
YES
WebM
Ogg
NO
YES
YES
NO
YES
MP4 = MPEG 4 files with H264 video codec and AAC audio codec
WebM = WebM files with VP8 video codec and Vorbis audio codec
Ogg = Ogg files with Theora video codec and Vorbis audio codec
Description
<video>
<source>
<track>