-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.html
28 lines (21 loc) · 845 Bytes
/
images.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
<!-- If the image is not avalable, the text which you put on alt tag wil show up
Alt - search engines read these -->
<html>
<head>
<style>
img {
width: 100px;
height: 200px;
object-fit: cover; /* It is very important property when image is higher pixel, it fits it. Try to see in inspect element */
}
video {
width: 400px;
}
</style>
</head>
<img src="images/coffee.avif" alt="A coffee mug on the table">
<!-- Until you put "controls" option, the videos controls won't be shown and video thumbnail will be shown-->
<video controls autoplay src="videos/ocean_video.mp4"></video>
<audio controls autoplay></audio>
<!-- Video and audio almost has same properties
--></html>