mirror of
https://github.com/cbracco/html5-test-page.git
synced 2025-01-17 04:58:16 +01:00
Add picture element; Revise other image examples
This commit is contained in:
parent
328c708a5e
commit
d882dfcb48
20
index.html
20
index.html
@ -323,15 +323,23 @@
|
||||
<article id="embedded__images">
|
||||
<header><h2>Images</h2></header>
|
||||
<div>
|
||||
<h3>No <code><figure></code> element</h3>
|
||||
<p><img src="https://placekitten.com/480/480" alt="Image alt text"></p>
|
||||
<h3>Wrapped in a <code><figure></code> element, no <code><figcaption></code></h3>
|
||||
<figure><img src="https://placekitten.com/420/420" alt="Image alt text"></figure>
|
||||
<h3>Wrapped in a <code><figure></code> element, with a <code><figcaption></code></h3>
|
||||
<h3>Plain <code><img></code> element</h3>
|
||||
<p><img src="https://placekitten.com/480/480" alt="Photo of a kitten"></p>
|
||||
<h3><code><figure></code> element with <code><img></code> element</h3>
|
||||
<figure><img src="https://placekitten.com/420/420" alt="Photo of a kitten"></figure>
|
||||
<h3><code><figure></code> element with <code><img></code> and <code><figcaption></code> elements</h3>
|
||||
<figure>
|
||||
<img src="https://placekitten.com/420/420" alt="Image alt text">
|
||||
<img src="https://placekitten.com/420/420" alt="Photo of a kitten">
|
||||
<figcaption>Here is a caption for this image.</figcaption>
|
||||
</figure>
|
||||
<h3><code><figure></code> element with a <code><picture></code> element</h3>
|
||||
<figure>
|
||||
<picture>
|
||||
<source srcset="https://placekitten.com/800/800"
|
||||
media="(min-width: 800px)">
|
||||
<img src="https://placekitten.com/420/420" alt="Photo of a kitten" />
|
||||
</picture>
|
||||
</figure>
|
||||
</div>
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
|
Loading…
x
Reference in New Issue
Block a user