-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.html
65 lines (32 loc) · 1.66 KB
/
media.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html>
<head>
<!--The link to the stylesheet should be contained
within the head tags-->
<link rel="stylesheet" href="mystyle.css" type="text/css">
<title>
Media
</title>
</head>
<body>
<a href="index.html"> home</a> <a href="Basic_Table.html"> Basic Table</a> <a href="Lists.html"> Lists</a>
<a href="Formatting.html"> Formatting</a> <a href="blocking.html"> blocking</a> <a href="page_layout.html"> page layout</a>
<h2>Media</h2>
<h4>Audio</h4>
<p>Embedding audio in your webpage allows you to link to various files containing music or speech. The audio tag looks like the following:</p>
<p><audio controls></br>
<source src="horse.ogg" type="audio/ogg"></br>
<source src="horse.mp3" type="audio/mpeg"></br>
Your browser does not support the audio element.</br>
</audio></p>
<p>The controls attribute provides start/stop/fast-forward/rewind buttons for the listener. The source tags inside the audio tag allow you to provide several different audio formats. This is because different browsers support different kinds of audio The browser will go through the list, in order, until it finds a format it understands, or else, it will replace the controller with the message at the end.</p>
<h4>Video</h4>
<p>Embedding video in your webpage allows you to link to various files containing movies.</p>
<p>
<video height=312 width= 540 controls></br>
<source src="movie.mp4" type="video/mp4"></br>
<source src="movie.ogg" type="video/ogg"></br>
Your browser does not support the video element.</br>
</video>
</p>
</body>
</html>