4 ms·
but how do you do images or video, they need some extra magic work
by brainzap 3y ago
but how do you do images or video, they need some extra magic work
- MrVandemar 3y agoI'm not sure I understand your question. <img> is the tag you use for an image, and there are tags to embed video.
- brettermeier 3y agoYes, it's really simple. And if he meant sizing, "height" and "width" parameters still work in an img-tag: <img src="img.png" height="100px"> (also the other parameter is set to "auto" automatically, at least in Firefox)
- erhaetherth 3y agopretty sure you're not supposed to use px in the height attribute. they are pixels. the width will be set to match the aspect ratio but your browser will have to DL the image first. which probably doesn't matter unless you have content to the left/right of it, then it'll get bumped when the image loads. layout shift is a nasty thing.
- brettermeier 3y agoBut you can do it and it works. And because it's about taking quick notes, it's not really about the beauty of the layout or layout shifts, isn't it?
- kome 3y ago<img>? <video>? but i'm not sure if i understand the question...
- GoblinSlayer 3y agoIn web 2.0 everything is done by javascript.