Tags in HTML - III

Tags in HTML -III | Web Development

In this article, we will learn about some more Tags in HTML specifically about some media tag in HTML.

  • Image tag :

An image tag is used to insert an image to a web page.

The tag creates room for the specified image that holds the image.

The images are not practically embedded into the websites; they are been linked to the websites(or web pages).

The Image tag has two attributes that are as follows:
“src” – that determines the source of the image.
“alt” – that determines an alternate text for the image, if the image is not displayed for some reason then the text would be displayed instead.

<img src="https://developersdome.comwp-content/uploads/2021/07/logodd-e1625989473520.png" alt="Our Logo">

Output :

Logo
  • Video tag :

A Video tag is used to attach video content to a web page.

The Video tag in HTML contains one or more source tags in which the browser will choose the first source it supports.

The text between the opening and closing video tag will only be displayed in browsers that do not support the < video > element.

MP4, WebM, and OGG are the three video formats that are supported in HTML.

<video width="480" height="270" controls>
  <source src="https://developersdome.comwp-content/uploads/2021/07/Pexels-Videos-1093662.mp4" type="video/mp4">
</video>

Output:

Hope this article will guide you to recognize some more HTML tags you need and still if you have any problems or queries regarding this, post them in the comments section and we will be glad to assist you.

HTML Tag/Elements Reference List

Table in HTML

Id and Classes in HTML | Web Development

Transitions in CSS | Web Development

Leave a Reply