Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> img { max-width: 100%; height: auto; } </style> </head> <body> <h2>Responsive image example with max-width and height</h2> <div> <img src="/uploads/media/default/0001/01/25acddb3da54207bc6beb5838f65f022feaa81d7.jpeg" alt="Aleq" /> </div> </body> </html>