Beispiel:HTML img-Element-2.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche

<!doctype HTML> <html> <head>

 <meta charset="utf-8">
 <title>Bilder mit img einbinden - 2</title>
 <style>

img:nth-of-type(2) {float:right;} .landscpae { width: 100%; } body {max-width: 40em;} div {margin-bottom:2em;} h1 {font-size: 2vw;font-family:sans-serif;} </style> </head>

<body>

Bilder mit img einbinden

<img src="https://wiki.selfhtml.org/images/4/45/SELF-Logo.svg" alt="Self-Logo">

<img src="https://wiki.selfhtml.org/images/4/45/SELF-Logo.svg" width="100" height="100" alt="SELF-Logo" >

<img src="http://wiki.selfhtml.org/images/3/31/Hund.gif" width="208" height="181" alt="Hund mit Halsband und gefletschten Zähnen."> <img src="https://wiki.selfhtml.org/images/5/54/Landscape.svg" class="landscape" alt="Toskanalandschaft als Symbolbild">

</body> </html>