Htmlslide 1
Htmlslide 1
<dl> Output:
<dt>Coffee</dt> Coffee
<dd>Black hot drink</dd> Black hot drink
<dt>Milk</dt> Milk
<dd>White cold drink</dd> White cold drink
</dl>
HTML Email Tag
HTML <a> tag provides us an option to specify an
email address to send an email. While using <a> tag as
an email tag, we will use mailto: email address along
with href attribute.
Syntax
<a href =“mailto: [email protected] > Send email
</a>
Media Tags: Audio and Video
HTML 5 has introduced two new multimedia tags, AUDIO and VIDEO,
for displaying the audio and video streams on a Web page
We can play the multimedia files, which are stored in our local
computer, on the Web page by specifying their location. The src
attribute is used to specify the multimedia file to play it on the Web
page.
If browser does not support AUDIO and VIDEO tags, then the text are
displayed on the Web page
HTML <audio> tag
HTML <audio> tag is used to play an audio file in HTML.
Example
<audio controls>
<source src=“songs.ogg” type=“audio/ogg”>
<source src=“songs.mp3” type=“audio/mpeg”>
<source src=“songs.wav” type=“audio/wav”>
Your browser does not support the audio tag
</audio>
Attributes of AUDIO tag
Attribute Description
Poster Provides an image to be displayed when the video file is not available
<TR>: Table row, is to specify the row in the table. It holds <TH> Table
Heading and <TD> Table Data.
<TH>: Table Header, is used for giving Heading to Table. By default header
elements contents are in bold font and center-aligned.
<TD>: Table Data, within the row you create columns by <TD> tag. The
Table data can consist of lists, images, forms and other element. The TD is a true
container that can hold other HTML elements, even more tables.
Example: A simple HTML table, containing <HTML>
two columns and two rows:
<HTML>
<HEAD>
<TITLE> A SIMPLE TABLE IN HTML </TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1">
<TR>
<TH>MONTH</TH>
<TH>SAVINGS</TH>
</TR>
<TR>
<TD>JANUARY</TD>
<TD>$100</TD>
</TR>
</TABLE>
</BODY>
OUTPUT
Attributes of <TABLE> tag
BORDER: used to draw borders around all the Table cells. By default,
tables are shown without borders i.e. BORDER=0. The size of border
can set by assigning an integer value. For example BORDER=3, gives
table a three pixel border.
ALIGN: used to align a table relative to windows border. It can set to
left, right or center.
CELLSPACING: used to set the space between the cells in a table. It
takes value in pixel.
CELLPADDING: used to set the space between the cell data and cell
wall in a table. It takes value in pixel.
WIDTH: used to set the width of the table, as either an absolute
width in pixels, or a percentage of the document width. For
example: WIDTH=<width in pixel or percent>