@@klawischnigg
Ok, ich hoff, jetzt geh' ich Dir nicht auf die Nerven, wenn ich frage, was man am object-Element besser oder anders manipulieren kann als am img-Element.
Bei object
besser: Alternativtext im Elementinhalt, nicht als Attributwert. D.h. object
-Alternativtext kann auch Mark-up enthalten.
Bei img
besser: mit srcset
kann man Bilder in verschiedenen Auflösungen anbieten. Je nach gerendererter Größe wird das passende geladen. Mit picture
außenrum sind auch verschiedene Bildausschnitte und Seitenverhältnisse machbar.
And the winner is: img
.
🖖 Live long and prosper
--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14