Questions tagged [html5-img]

In HTML, images are defined with the tag. it is used to represent / display all types of image with tag.

In , images are defined with the <img> tag. it used to represent / display all types of image with <img> tag.

The <img> tag is empty, it contains attributes only, and does not have a closing tag.

The src attribute specifies the URL (web address) of the image:

example:

<img src="url" />

Main Attributes:

  • src
  • alt
  • width
  • height
7 questions
2
votes
0 answers

lazysizes - Aspect ratio not working for sources when {width} and {height} placeholders used

Seems that aspect ratio is not calculated for every picture source and only taken from the img tag itself. This prevents the plugin to work in art direction mode with different aspect ratio. img { width:100%; max-width:100%; …
Rob
  • 127
  • 14
0
votes
1 answer

Open/close a video stream

I'm using an Arduino Esp32 with a camera to stream video into a web page I've created. The Esp32 shuts down after around an hour and so the the page needs refreshing to bring the stream back (the window just shows the symbol when no image is…
0
votes
1 answer

Save canvas to an image file dynamically

Is there a way to download a canvas image to a file folder without a prompt showing up? I have found solutions requiring a prompt where you name the file, but I have not found any solutions where you can dynamically name the image and save to a…
Hmkyriacou
  • 31
  • 3
0
votes
1 answer

How to use Python's BeautifulSoup html parser to get img tag src with 2 'src' attributes

I have HTML pages that contains image tags with 2 'src' attributes, and I want to use BS to extract the first 'src' and not the second 'src'. For example: When I use BS as follows: from bs4 import BeautifulSoup html_doc =
Noam Baron
  • 11
  • 2
0
votes
1 answer

PHP check if file_exists without extension then Ajax a div with appropriate media tag (img or video) based on filepath

First posting here. I know inline php is not preferred but I haven't converted all my scripts to echo json_encoded arrays to work in javascript on the client side...so for now, I have inline php. I do not know the extension of the user uploaded…
0
votes
0 answers

Using videos in img html

Referencing this article: https://cloudinary.com/blog/evolution_of_img_gif_without_the_gif What is the compatibility situation with videos in img in 2020? I don't know what the name of the feature is called to look for in caniuse. Now you can
Harry
  • 47,045
  • 66
  • 163
  • 243
-3
votes
1 answer

How can I get to add images to html5 code

I'm trying add the images to html5 code. trying the code

html code