mirror of
https://github.com/cbracco/html5-test-page.git
synced 2025-08-06 06:07:25 +02:00
Merge pull request #39 from cbracco/issue/13-picture-element
Add picture element
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
# 0.9.5 (April 3, 2021)
|
||||||
|
|
||||||
|
- Add <picture> element (thanks @AurelioDeRosa!).
|
||||||
|
|
||||||
# 0.9.4 (April 3, 2021)
|
# 0.9.4 (April 3, 2021)
|
||||||
|
|
||||||
- Remove unnecessary role attributes. Update headings (thanks @gipsi!).
|
- Remove unnecessary role attributes. Update headings (thanks @gipsi!).
|
||||||
|
20
index.html
20
index.html
@@ -323,15 +323,23 @@
|
|||||||
<article id="embedded__images">
|
<article id="embedded__images">
|
||||||
<header><h2>Images</h2></header>
|
<header><h2>Images</h2></header>
|
||||||
<div>
|
<div>
|
||||||
<h3>No <code><figure></code> element</h3>
|
<h3>Plain <code><img></code> element</h3>
|
||||||
<p><img src="https://placekitten.com/480/480" alt="Image alt text"></p>
|
<p><img src="https://placekitten.com/480/480" alt="Photo of a kitten"></p>
|
||||||
<h3>Wrapped in a <code><figure></code> element, no <code><figcaption></code></h3>
|
<h3><code><figure></code> element with <code><img></code> element</h3>
|
||||||
<figure><img src="https://placekitten.com/420/420" alt="Image alt text"></figure>
|
<figure><img src="https://placekitten.com/420/420" alt="Photo of a kitten"></figure>
|
||||||
<h3>Wrapped in a <code><figure></code> element, with a <code><figcaption></code></h3>
|
<h3><code><figure></code> element with <code><img></code> and <code><figcaption></code> elements</h3>
|
||||||
<figure>
|
<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>
|
<figcaption>Here is a caption for this image.</figcaption>
|
||||||
</figure>
|
</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>
|
</div>
|
||||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||||
</article>
|
</article>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "html5-test-page",
|
"name": "html5-test-page",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"description": "A page filled with common HTML elements to be used for testing purposes.",
|
"description": "A page filled with common HTML elements to be used for testing purposes.",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user