Hyper Text Markup Language
Today we discuss about Image
What is image tag in HTML?
Instructions on how to insert image. The HTML <img> tag is used to embed an image in a web page. Images are not technically inserted into a web page, images are linked to web pages.
The <img> tag is empty ,it contains attributes only and does not have a closing tag .
<img scr="" alt= "" >
How to use the image tag in HTML?
<DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
Insert image
</body>
Example:
- Then the output is:
If we want to change the width and height of an imag then :
How to insert picture in a table?- <table> use <img> tag within the <td> tag table data element.
Example:
HTML allows playing video in a web page by using the <video> tag. To embed the video in the web page ,we use the scr element for mentioning the file address , and width and height attributes are used to define its size.
<video scr="" width="" height="" controls></video>
How to use it?
First you download your video from google then save it to your folder which is you used in visual studio then insert the video tag in it and also use the control tag because it must be used in it with this tag we can start the video.
Example:
Then the output is:
No comments:
Post a Comment