Neue Knoten ins DOM
bearbeitet von PitHi,
> Willst du einen Link oder ein Bild einfügen?
> Tipp: Erarbeite zuerst ein gutes html Modell. baue es dann mit JS nach.
>
Beides.
Und ja, das HTML-Modell existiert bereits jund ich baue gerade nach 😉
~~~HTML
<section class="gallery">
<a href="./img/gallery/pic1.jpg">
<figure>
<img src="./img/gallery/pic1.jpg"/>
<figcaption>Text1</figcaption>
</figure>
</a>
... usw.
</section>
~~~