diff --git a/common/text-level-semantics/index.json-ld b/common/text-level-semantics/index.json-ld new file mode 100644 index 0000000000..fc0432d6b4 --- /dev/null +++ b/common/text-level-semantics/index.json-ld @@ -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" + } + ] + } +} diff --git a/common/text-level-semantics/text-level-semantics.html b/common/text-level-semantics/text-level-semantics.html new file mode 100644 index 0000000000..4e8994da60 --- /dev/null +++ b/common/text-level-semantics/text-level-semantics.html @@ -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" +} +--- +
+ +
+

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 WHATWG section 4.4 as February 2023. This page may not contain all the possible grouping content element combination.

+
+ +

The a element

+

Hyperlinks

+
<a href="/">Home</a>
+ +

The em element

+

Stress emphasis

+

+Cats <em>are</em> cute animals.
+
+ + +

The strong element

+

Importance

+

+Chapter 1: <strong>The Praxis</strong>
+
+ +

The small element

+

Side comments

+

+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.
+
+ +

The cite element

+

Titles of works

+

+My favorite book is <cite>The Reality Dysfunction</cite> by
+Peter F. Hamilton.
+
+ +

The q element

+

Quotations

+

+The man said <q>Things that are impossible just take
+longer</q>. I disagreed with him.
+
The dfn element +

Defining instance

+

+The term <dfn>organic food</dfn> refers to food produced without synthetic chemicals.
+
+ +

The time element

+

+
Date time
+<time>2011-11</time>
+
+ +

The code element

+

Computer code

+

+The <code>code</code> element represents a fragment of computer
+code.
+
+ +

The abbr element

+

Abbreviations

+

+The <abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr>
+started working on HTML5 in 2004.
+
+ +

The var element

+

Variables

+

+If there are <var>n</var> fruit in the bowl, at least <var>n</var>÷2 will be ripe.
+
+ +

The samp element

+

Computer output

+

+The computer said <samp>Unknown error -3</samp>.
+
+ +

The i element

+

Alternative voice

+

+Lemonade consists primarily of <i>Citrus limon</i>.
+
+ +

The b element

+

Keywords

+

+Take a <b>lemon</b> and squeeze it with a <b>juicer</b>.
+
+ +

The u element

+

Annotations

+

+The mixture of apple juice and <u class="spelling">eldeflower</u> juice is very pleasant.
+
+ +

The mark element

+

Highlight

+

+Elderflower cordial, with one <mark>part</mark> cordial to ten <mark>part</mark>s water, stands a<mark>part</mark> from the rest.
+
+ +

The bdi element

+

Text directionality isolation

+

+The recommended restaurant is <bdi lang="">My Juice Café (At The Beach)</bdi>
+
+ +

The bdo element

+

Text directionality formatting

+

+The proposal is to write English, but in reverse order. "Juice" would become "<bdo dir=rtl>Juice</bdo>">
+
+ +

The span element

+

Other

+

+In French we call it <span lang="fr">sirop de sureau</span>.
+
+ +

The br element

+

Line break

+

+Simply Orange Juice Company<br>Apopka, FL 32703<br>U.S.A.
+
+ +

The wbr element

+

Line breaking opportunity

+

+www.simply<wbr>orange<wbr>juice.com
+
diff --git a/common/text-level-semantics/texte-niveau-semantique.html b/common/text-level-semantics/texte-niveau-semantique.html new file mode 100644 index 0000000000..e623c6406e --- /dev/null +++ b/common/text-level-semantics/texte-niveau-semantique.html @@ -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" +} +--- +
+
+
+

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 WHATWG section 4.4 as February 2023. This page may not contain all the possible grouping content element combination.

+
+ +

The a element

+

Hyperlinks

+
<a href="/">Home</a>
+ +

The em element

+

Stress emphasis

+

+	Cats <em>are</em> cute animals.
+	
+ + +

The strong element

+

Importance

+

+	Chapter 1: <strong>The Praxis</strong>
+	
+ +

The small element

+

Side comments

+

+	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.
+	
+ +

The cite element

+

Titles of works

+

+	My favorite book is <cite>The Reality Dysfunction</cite> by
+	Peter F. Hamilton.
+	
+ +

The q element

+

Quotations

+

+	The man said <q>Things that are impossible just take
+	longer</q>. I disagreed with him.
+	
The dfn element +

Defining instance

+

+	The term <dfn>organic food</dfn> refers to food produced without synthetic chemicals.
+	
+ +

The time element

+

+
Date time
+	<time>2011-11</time>
+	
+ +

The code element

+

Computer code

+

+	The <code>code</code> element represents a fragment of computer
+	code.
+	
+ +

The abbr element

+

Abbreviations

+

+	The <abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr>
+	started working on HTML5 in 2004.
+	
+ +

The var element

+

Variables

+

+	If there are <var>n</var> fruit in the bowl, at least <var>n</var>÷2 will be ripe.
+	
+ +

The samp element

+

Computer output

+

+	The computer said <samp>Unknown error -3</samp>.
+	
+ +

The i element

+

Alternative voice

+

+	Lemonade consists primarily of <i>Citrus limon</i>.
+	
+ +

The b element

+

Keywords

+

+	Take a <b>lemon</b> and squeeze it with a <b>juicer</b>.
+	
+ +

The u element

+

Annotations

+

+	The mixture of apple juice and <u class="spelling">eldeflower</u> juice is very pleasant.
+	
+ +

The mark element

+

Highlight

+

+	Elderflower cordial, with one <mark>part</mark> cordial to ten <mark>part</mark>s water, stands a<mark>part</mark> from the rest.
+	
+ +

The bdi element

+

Text directionality isolation

+

+	The recommended restaurant is <bdi lang="">My Juice Café (At The Beach)</bdi>
+	
+ +

The bdo element

+

Text directionality formatting

+

+	The proposal is to write English, but in reverse order. "Juice" would become "<bdo dir=rtl>Juice</bdo>">
+	
+ +

The span element

+

Other

+

+	In French we call it <span lang="fr">sirop de sureau</span>.
+	
+ +

The br element

+

Line break

+

+	Simply Orange Juice Company<br>Apopka, FL 32703<br>U.S.A.
+	
+ +

The wbr element

+

Line breaking opportunity

+

+	www.simply<wbr>orange<wbr>juice.com
+	
+