Embedding Image
The <img> tag is self-closing because they don’t have a closing tag. The src attribute is the required attributes in the <img> tag, it helps to specify the source URL. The alt attribute provides the alternative text to an image. If the image does not load up then this message will be displayed.
Example: Illustration of embedding image in HTML .
HTML
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content=" width = device -width, initial-scale = 1 .0"> < title >Embedding Image in HTML Document</ title > </ head > < body > < img src = "https://media.w3wiki.org/wp-content/uploads/20190328185307/gfg28.png" alt = "gfglogo" > </ body > </ html > |
Output:
How to Embed Multimedia in HTML ?
A variety of tags such as the <img> tag, <video> tag, and <audio> tag are available in HTML to include media on your web page. Multimedia combines different media, such as images, audio, and videos. Users will have a better experience when multimedia is embedded into HTML. Early web browsers only supported text and were limited to a single font in a single color. However, later browsers introduced support for various fonts, images, and multimedia elements.
Note: Provide multiple video formats such as .wav, .mp3, .mp4, .mpg, .wmv, etc.
Contact Us