Sélection de la langue

Recherche


Sémantique au niveau du texte

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 2024. This page may not contain all the possible grouping content element combination.

The a element

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

The em element

Cats are cute animals.


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

The strong element

Chapter 1: The Praxis


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

The small element

Example Corp today announced record profits for the second quarter (Full Disclosure: Foo News is a subsidiary of Example Corp), leading to speculation about a third quarter merger with Demo Group


	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 s element

Price: £4.50 £2.00!


	Price: <s>£4.50</s> £2.00!
	

The cite element

My favorite book is The Reality Dysfunction by Peter F. Hamilton.


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

The q element

The man said Things that are impossible just take longer. I disagreed with him.


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

The dfn element

The term organic food refers to food produced without synthetic chemicals.


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

The ruby, rt, rp elements

OJ (Orange Juice)


	<ruby> OJ <rp>(<rt>Orange Juice<rp>)</ruby>
	

The data element

Available starting today! North Coast Organic Apple Cider


	Available starting today! <data value="UPC:022014640201">North Coast Organic Apple Cider</data>
	

The time element

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

The code element

The code element represents a fragment of computer code


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

The abbr element

The WHATWG started working on HTML5 in 2004.


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

The var element

If there are n fruit in the bowl, at least n÷2 will be ripe.


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

The samp element

The computer said Unknown error -3.


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

The kdb element

Hit F1 to continue.


		Hit <kbd>F1</kbd> to continue.
		

The sub element

Water is H2O.


		Water is H<sub>2</sub>O.
		

The sup element

The Hydrogen in heavy water is usually 2H.


		The Hydrogen in heavy water is usually <sup>2</sup>H.
		

The i element

Lemonade consists primarily of Citrus limon.


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

The b element

Take a lemon and squeeze it with a juicer.


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

The u element

The mixture of apple juice and elderflower juice is very pleasant.


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

The mark element

Elderflower cordial, with one part cordial to ten parts water, stands apart from the rest.


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

The bdi element

The recommended restaurant is My Juice Café (At The Beach)


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

The bdo element

The proposal is to write English, but in reverse order. "Juice" would become "Juice">


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

The span element

In French we call it sirop de sureau.


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

The br element

Simply Orange Juice Company
Apopka, FL 32703
U.S.A.


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

The wbr element

www.simplyorangejuice.com


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

Détails de la page

Date de modification :