Skip to content

Commit

Permalink
Create Working Examples for Scaffolding - Text-Level semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbinyu413 committed Jul 6, 2023
1 parent 36468cf commit d2503ac
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 0 deletions.
35 changes: 35 additions & 0 deletions common/text-level-semantics/index.json-ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Text level semantics",
"fr": "Sémantique au niveau du texte"
},
"description": {
"en": "HTML elements used as is.",
"fr": "Les éléments HTML utilisé tel quel."
},
"modified": "2023-02-21",
"componentName": "text-level",
"processing": "baseline",
"status": "stable",
"pages": {
"examples": [
{
"title": "Text level semantics",
"language": "en",
"path": "text-level-semantics.html"
},
{
"title": "Sémantique au niveau du texte",
"language": "fr",
"path": "texte-niveau-semantique.html"
}
]
}
}
148 changes: 148 additions & 0 deletions common/text-level-semantics/text-level-semantics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
---
{
"title": "Text level semantics",
"language": "en",
"altLangPage": "texte-niveau-semantique.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 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>Hyperlinks</p>
<pre><code>&lt;a href="/">Home&lt;/a></code></pre>

<h2>The <code>em</code> element</h2>
<p>Stress emphasis </p>
<pre><code>
Cats &lt;em>are&lt;/em> cute animals.
</code></pre>


<h2>The <code>strong</code> element</h2>
<p>Importance</p>
<pre><code>
Chapter 1: &lt;strong>The Praxis&lt;/strong>
</code></pre>

<h2>The <code>small</code> element</h2>
<p>Side comments</p>
<pre><code>
Example Corp today announced record profits for the
second quarter &lt;small>(Full Disclosure: Foo News is a subsidiary of
Example Corp)&lt;/small>, leading to speculation about a third quarter
merger with Demo Group.
</code></pre>

<h2>The <code>cite</code> element</h2>
<p>Titles of works</p>
<pre><code>
My favorite book is &lt;cite>The Reality Dysfunction&lt;/cite> by
Peter F. Hamilton.
</code></pre>

<h2>The <code>q</code> element</h2>
<p>Quotations</p>
<pre><code>
The man said &lt;q>Things that are impossible just take
longer&lt;/q>. I disagreed with him.
</code></pre

<h2>The <code>dfn</code> element</h2>
<p>Defining instance</p>
<pre><code>
The term &lt;dfn>organic food&lt;/dfn> refers to food produced without synthetic chemicals.
</code></pre>

<h2>The <code>time</code> element</h2>
<p></p>
<pre>Date time<code>
&lt;time>2011-11&lt;/time>
</code></pre>

<h2>The <code>code</code> element</h2>
<p>Computer code</p>
<pre><code>
The &lt;code>code&lt;/code> element represents a fragment of computer
code.
</code></pre>

<h2>The <code>abbr</code> element</h2>
<p>Abbreviations</p>
<pre><code>
The &lt;abbr title="Web Hypertext Application Technology Working Group">WHATWG&lt;/abbr>
started working on HTML5 in 2004.
</code></pre>

<h2>The <code>var</code> element</h2>
<p>Variables</p>
<pre><code>
If there are &lt;var>n&lt;/var> fruit in the bowl, at least &lt;var>n&lt;/var>÷2 will be ripe.
</code></pre>

<h2>The <code>samp</code> element</h2>
<p>Computer output</p>
<pre><code>
The computer said &lt;samp>Unknown error -3&lt;/samp>.
</code></pre>

<h2>The <code>i</code> element</h2>
<p>Alternative voice</p>
<pre><code>
Lemonade consists primarily of &lt;i>Citrus limon&lt;/i>.
</code></pre>

<h2>The <code>b</code> element</h2>
<p>Keywords</p>
<pre><code>
Take a &lt;b>lemon&lt;/b> and squeeze it with a &lt;b>juicer&lt;/b>.
</code></pre>

<h2>The <code>u</code> element</h2>
<p>Annotations</p>
<pre><code>
The mixture of apple juice and &lt;u class="spelling">eldeflower&lt;/u> juice is very pleasant.
</code></pre>

<h2>The <code>mark</code> element</h2>
<p>Highlight</p>
<pre><code>
Elderflower cordial, with one &lt;mark>part&lt;/mark> cordial to ten &lt;mark>part&lt;/mark>s water, stands a&lt;mark>part&lt;/mark> from the rest.
</code></pre>

<h2>The <code>bdi</code> element</h2>
<p>Text directionality isolation</p>
<pre><code>
The recommended restaurant is &lt;bdi lang="">My Juice Café (At The Beach)&lt;/bdi>
</code></pre>

<h2>The <code>bdo</code> element</h2>
<p>Text directionality formatting</p>
<pre><code>
The proposal is to write English, but in reverse order. "Juice" would become "&lt;bdo dir=rtl>Juice&lt;/bdo>">
</code></pre>

<h2>The <code>span</code> element</h2>
<p>Other</p>
<pre><code>
In French we call it &lt;span lang="fr">sirop de sureau&lt;/span>.
</code></pre>

<h2>The <code>br</code> element</h2>
<p>Line break</p>
<pre><code>
Simply Orange Juice Company&lt;br>Apopka, FL 32703&lt;br>U.S.A.
</code></pre>

<h2>The <code>wbr</code> element</h2>
<p>Line breaking opportunity</p>
<pre><code>
www.simply&lt;wbr>orange&lt;wbr>juice.com
</code></pre>
149 changes: 149 additions & 0 deletions common/text-level-semantics/texte-niveau-semantique.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
---
{
"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>Hyperlinks</p>
<pre><code>&lt;a href="/">Home&lt;/a></code></pre>

<h2>The <code>em</code> element</h2>
<p>Stress emphasis </p>
<pre><code>
Cats &lt;em>are&lt;/em> cute animals.
</code></pre>


<h2>The <code>strong</code> element</h2>
<p>Importance</p>
<pre><code>
Chapter 1: &lt;strong>The Praxis&lt;/strong>
</code></pre>

<h2>The <code>small</code> element</h2>
<p>Side comments</p>
<pre><code>
Example Corp today announced record profits for the
second quarter &lt;small>(Full Disclosure: Foo News is a subsidiary of
Example Corp)&lt;/small>, leading to speculation about a third quarter
merger with Demo Group.
</code></pre>

<h2>The <code>cite</code> element</h2>
<p>Titles of works</p>
<pre><code>
My favorite book is &lt;cite>The Reality Dysfunction&lt;/cite> by
Peter F. Hamilton.
</code></pre>

<h2>The <code>q</code> element</h2>
<p>Quotations</p>
<pre><code>
The man said &lt;q>Things that are impossible just take
longer&lt;/q>. I disagreed with him.
</code></pre

<h2>The <code>dfn</code> element</h2>
<p>Defining instance</p>
<pre><code>
The term &lt;dfn>organic food&lt;/dfn> refers to food produced without synthetic chemicals.
</code></pre>

<h2>The <code>time</code> element</h2>
<p></p>
<pre>Date time<code>
&lt;time>2011-11&lt;/time>
</code></pre>

<h2>The <code>code</code> element</h2>
<p>Computer code</p>
<pre><code>
The &lt;code>code&lt;/code> element represents a fragment of computer
code.
</code></pre>

<h2>The <code>abbr</code> element</h2>
<p>Abbreviations</p>
<pre><code>
The &lt;abbr title="Web Hypertext Application Technology Working Group">WHATWG&lt;/abbr>
started working on HTML5 in 2004.
</code></pre>

<h2>The <code>var</code> element</h2>
<p>Variables</p>
<pre><code>
If there are &lt;var>n&lt;/var> fruit in the bowl, at least &lt;var>n&lt;/var>÷2 will be ripe.
</code></pre>

<h2>The <code>samp</code> element</h2>
<p>Computer output</p>
<pre><code>
The computer said &lt;samp>Unknown error -3&lt;/samp>.
</code></pre>

<h2>The <code>i</code> element</h2>
<p>Alternative voice</p>
<pre><code>
Lemonade consists primarily of &lt;i>Citrus limon&lt;/i>.
</code></pre>

<h2>The <code>b</code> element</h2>
<p>Keywords</p>
<pre><code>
Take a &lt;b>lemon&lt;/b> and squeeze it with a &lt;b>juicer&lt;/b>.
</code></pre>

<h2>The <code>u</code> element</h2>
<p>Annotations</p>
<pre><code>
The mixture of apple juice and &lt;u class="spelling">eldeflower&lt;/u> juice is very pleasant.
</code></pre>

<h2>The <code>mark</code> element</h2>
<p>Highlight</p>
<pre><code>
Elderflower cordial, with one &lt;mark>part&lt;/mark> cordial to ten &lt;mark>part&lt;/mark>s water, stands a&lt;mark>part&lt;/mark> from the rest.
</code></pre>

<h2>The <code>bdi</code> element</h2>
<p>Text directionality isolation</p>
<pre><code>
The recommended restaurant is &lt;bdi lang="">My Juice Café (At The Beach)&lt;/bdi>
</code></pre>

<h2>The <code>bdo</code> element</h2>
<p>Text directionality formatting</p>
<pre><code>
The proposal is to write English, but in reverse order. "Juice" would become "&lt;bdo dir=rtl>Juice&lt;/bdo>">
</code></pre>

<h2>The <code>span</code> element</h2>
<p>Other</p>
<pre><code>
In French we call it &lt;span lang="fr">sirop de sureau&lt;/span>.
</code></pre>

<h2>The <code>br</code> element</h2>
<p>Line break</p>
<pre><code>
Simply Orange Juice Company&lt;br>Apopka, FL 32703&lt;br>U.S.A.
</code></pre>

<h2>The <code>wbr</code> element</h2>
<p>Line breaking opportunity</p>
<pre><code>
www.simply&lt;wbr>orange&lt;wbr>juice.com
</code></pre>
</div>

0 comments on commit d2503ac

Please sign in to comment.