-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
--- | ||
{ | ||
"title": "Sémantique au niveau du texte", | ||
"language": "en", | ||
"altLangPage": "text-level-semantics.html", | ||
"breadcrumbs": [ | ||
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } | ||
], | ||
"dateModified": "2023-07-06" | ||
} | ||
--- | ||
<div class="wb-prettify all-pre hide"></div> | ||
<div lang="en"> | ||
<div class="alert alert-warning"> | ||
<p>The purpose of this page is to test all native content grouping related elements, if they are aligned with our design and are compliant to our accessibility guideline when used as is without any special customization. The following include all content grouping elements in the HTML5 specification and a few examples was inspired by the <a href="https://html.spec.whatwg.org/multipage/forms.html#forms">WHATWG section 4.4</a> as February 2023. This page may not contain all the possible grouping content element combination.</p> | ||
</div> | ||
|
||
<h2>The <code>a</code> element</h2> | ||
<p><a href="/">Home</a></p> | ||
<pre><code></code></pre> | ||
|
||
<h2>The <code>em</code> element</h2> | ||
<p>Cats <em>are</em> cute animals.</p> | ||
<pre><code> | ||
Cats <em>are</em> cute animals. | ||
</code></pre> | ||
|
||
|
||
<h2>The <code>strong</code> element</h2> | ||
<p>Chapter 1: <strong>The Praxis</strong></p> | ||
<pre><code> | ||
Chapter 1: <strong>The Praxis</strong> | ||
</code></pre> | ||
|
||
<h2>The <code>small</code> element</h2> | ||
<p>Example Corp today announced record profits for the | ||
second quarter <small>(Full Disclosure: Foo News is a subsidiary of | ||
Example Corp)</small>, leading to speculation about a third quarter | ||
merger with Demo Group</p> | ||
<pre><code> | ||
Example Corp today announced record profits for the | ||
second quarter <small>(Full Disclosure: Foo News is a subsidiary of | ||
Example Corp)</small>, leading to speculation about a third quarter | ||
merger with Demo Group. | ||
</code></pre> | ||
|
||
<h2>The <code>cite</code> element</h2> | ||
<p>My favorite book is <cite>The Reality Dysfunction</cite> by | ||
Peter F. Hamilton.</p> | ||
<pre><code> | ||
My favorite book is <cite>The Reality Dysfunction</cite> by | ||
Peter F. Hamilton. | ||
</code></pre> | ||
|
||
<h2>The <code>q</code> element</h2> | ||
<p>The man said <q>Things that are impossible just take | ||
longer</q>. I disagreed with him.</p> | ||
<pre><code> | ||
The man said <q>Things that are impossible just take | ||
longer</q>. I disagreed with him. | ||
</code></pre | ||
|
||
<h2>The <code>dfn</code> element</h2> | ||
<p>The term <dfn>organic food</dfn> refers to food produced without synthetic chemicals.</p> | ||
<pre><code> | ||
The term <dfn>organic food</dfn> refers to food produced without synthetic chemicals. | ||
</code></pre> | ||
|
||
<h2>The <code>time</code> element</h2> | ||
<p><time>2011-11</time></p> | ||
<pre>Date time<code> | ||
<time>2011-11</time> | ||
</code></pre> | ||
|
||
<h2>The <code>code</code> element</h2> | ||
<p>The <code>code</code> element represents a fragment of computer | ||
code</p> | ||
<pre><code> | ||
The <code>code</code> element represents a fragment of computer | ||
code. | ||
</code></pre> | ||
|
||
<h2>The <code>abbr</code> element</h2> | ||
<p>The <abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr> | ||
started working on HTML5 in 2004.</p> | ||
<pre><code> | ||
The <abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr> | ||
started working on HTML5 in 2004. | ||
</code></pre> | ||
|
||
<h2>The <code>var</code> element</h2> | ||
<p>If there are <var>n</var> fruit in the bowl, at least <var>n</var>÷2 will be ripe.</p> | ||
<pre><code> | ||
If there are <var>n</var> fruit in the bowl, at least <var>n</var>÷2 will be ripe. | ||
</code></pre> | ||
|
||
<h2>The <code>samp</code> element</h2> | ||
<p>The computer said <samp>Unknown error -3</samp>.</p> | ||
<pre><code> | ||
The computer said <samp>Unknown error -3</samp>. | ||
</code></pre> | ||
|
||
<h2>The <code>i</code> element</h2> | ||
<p>Lemonade consists primarily of <i>Citrus limon</i>.</p> | ||
<pre><code> | ||
Lemonade consists primarily of <i>Citrus limon</i>. | ||
</code></pre> | ||
|
||
<h2>The <code>b</code> element</h2> | ||
<p>Take a <b>lemon</b> and squeeze it with a <b>juicer</b>.</p> | ||
<pre><code> | ||
Take a <b>lemon</b> and squeeze it with a <b>juicer</b>. | ||
</code></pre> | ||
|
||
<h2>The <code>u</code> element</h2> | ||
<p>The mixture of apple juice and <u class="spelling">eldeflower</u> juice is very pleasant.</p> | ||
<pre><code> | ||
The mixture of apple juice and <u class="spelling">eldeflower</u> juice is very pleasant. | ||
</code></pre> | ||
|
||
<h2>The <code>mark</code> element</h2> | ||
<p>Elderflower cordial, with one <mark>part</mark> cordial to ten <mark>part</mark>s water,</p> | ||
<pre><code> | ||
Elderflower cordial, with one <mark>part</mark> cordial to ten <mark>part</mark>s water, stands a<mark>part</mark> from the rest. | ||
</code></pre> | ||
|
||
<h2>The <code>bdi</code> element</h2> | ||
<p>The recommended restaurant is <bdi lang="">My Juice Café (At The Beach)</bdi></p> | ||
<pre><code> | ||
The recommended restaurant is <bdi lang="">My Juice Café (At The Beach)</bdi> | ||
</code></pre> | ||
|
||
<h2>The <code>bdo</code> element</h2> | ||
<p>The proposal is to write English, but in reverse order. "Juice" would become "<bdo dir=rtl>Juice</bdo>"></p> | ||
<pre><code> | ||
The proposal is to write English, but in reverse order. "Juice" would become "<bdo dir=rtl>Juice</bdo>"> | ||
</code></pre> | ||
|
||
<h2>The <code>span</code> element</h2> | ||
<p>In French we call it <span lang="fr">sirop de sureau</span>.</p> | ||
<pre><code> | ||
In French we call it <span lang="fr">sirop de sureau</span>. | ||
</code></pre> | ||
|
||
<h2>The <code>br</code> element</h2> | ||
<p>Simply Orange Juice Company<br>Apopka, FL 32703<br>U.S.A.</p> | ||
<pre><code> | ||
Simply Orange Juice Company<br>Apopka, FL 32703<br>U.S.A. | ||
</code></pre> | ||
|
||
<h2>The <code>wbr</code> element</h2> | ||
<p>www.simply<wbr>orange<wbr>juice.com</p> | ||
<pre><code> | ||
www.simply<wbr>orange<wbr>juice.com | ||
</code></pre> | ||
</div> |