Semantic HTML

(Difference between revisions)

Jump to: navigation, search
m (move)
Current revision (11:53, 15 September 2013) (view source)
m (Reverted edits by [[Special:Contributions/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
 
(28 intermediate revisions not shown.)
Line 1: Line 1:
-
<h1> Semantic (X)HTML </h1>
+
<entry-title> Semantic HTML </entry-title>
-
Semantic (X)HTML refers to:
+
Semantic HTML refers to:
-
# The semantic elements and attributes of (X)HTML (as opposed to the [[presentational-html|presentational HTML]] elements and attributes)
+
# The semantic elements and attributes of HTML (as opposed to [[presentational-html|presentational HTML]] elements and attributes)
-
# (X)HTML documents that are written using semantic (X)HTML.
+
# HTML documents that are written using semantic HTML.
-
# The practice of writing semantic (X)HTML
+
# The practice of writing semantic HTML
-
# [[posh|plain old semantic HTML]]
+
# [[posh|plain old semantic HTML (POSH)]]
-
 
+
-
__TOC__
+
-
 
+
-
== Contributors ==
+
-
* [http://tantek.com/ Tantek]
+
-
* [[User:AndyMabbett|Andy Mabbett]]
+
== Semantic Elements ==
== Semantic Elements ==
 +
Based on semantic elements from [[HTML5]] (including the <code>&lt;code&gt;</code> element, resolved but pending editor cycles).
-
(This list is incomplete, please add!)
+
=== alphabetical ===
-
 
+
Elements for marking up <em>visible</em> text and user interactivity only.
* a
* a
* abbr
* abbr
* acronym
* acronym
* address
* address
 +
* area
 +
* article
 +
* base
 +
* bdo
* blockquote
* blockquote
 +
* body
 +
* button
 +
* caption
* cite
* cite
-
* dt, dd
+
* code
 +
* col
 +
* colgroup
 +
* data
 +
* dd
 +
* del
* dfn
* dfn
 +
* dir (deprecated)
 +
* div
 +
* dl
 +
* dt
* em
* em
-
* ...
+
* fieldset
-
* h1,h2,h3,h4,h5,h6
+
* form
-
* li
+
* h1
-
* ...
+
* h2
 +
* h3
 +
* h4
 +
* h5
 +
* h6
 +
* html
 +
* img
 +
* input
 +
* ins
 +
* isindex (deprecated)
 +
* kbd
* label
* label
* legend
* legend
-
* ...
+
* li
 +
* map
 +
* menu (deprecated)
 +
* noframes
 +
* noscript
 +
* object
* ol
* ol
 +
* optgroup
 +
* option
* p
* p
 +
* pre
* q
* q
-
* ...
 
* samp
* samp
 +
* section
 +
* select
 +
* span
* strong
* strong
-
* sub
 
-
* sup
 
* table (when used for tabular data, not layout)
* table (when used for tabular data, not layout)
 +
* tbody
 +
* td
 +
* textarea
 +
* tfoot
 +
* th
 +
* thead
 +
* time
 +
* title
 +
* tr
 +
* ul
 +
* var
 +
==== invisible semantics ====
 +
* head
 +
* link
 +
* meta
 +
* param
 +
==== layer hooks ====
 +
* script
 +
* style
 +
 +
=== semantically clustered ===
 +
These lists/clusterings are incomplete.
 +
==== hypertext ====
 +
* a
 +
* area
 +
* map
 +
 +
==== common prose document ====
 +
* abbr
 +
* acronym
 +
* em
 +
* h1
 +
* h2
 +
* h3
 +
* h4
 +
* h5
 +
* h6
 +
* p
 +
* strong
 +
* title
 +
 +
==== quotes and references ====
 +
* blockquote
 +
* cite
 +
* q
 +
 +
==== contact ====
 +
* address
 +
 +
==== infrastructure ====
 +
* html
 +
* body (because of 'profile' attribute)
 +
* base
 +
* del
 +
* ins
 +
 +
==== international ====
 +
* bdo
 +
 +
==== forms ====
 +
* form
 +
** fieldset
 +
*** legend
 +
*** label
 +
*** button
 +
*** input
 +
*** isindex (deprecated)
 +
*** select
 +
**** optgroup
 +
**** option
 +
*** textarea
 +
 +
==== programming ====
 +
* code
 +
* kbd
 +
* pre
 +
* samp
 +
* var
 +
 +
==== tabular data ====
 +
* table (when used for tabular data, not layout)
 +
** caption
 +
** col
 +
** colgroup
 +
** thead
 +
*** th
** tbody
** tbody
-
** td
+
*** tr
 +
**** td
** tfoot
** tfoot
-
** th
+
 
-
** thead
+
==== definitions ====
-
** tr
+
* dfn
 +
* dl
 +
** dt
 +
** dd
 +
 
 +
==== text user interface ====
 +
* dir (deprecated)
 +
* menu (deprecated)
 +
 
 +
==== media ====
 +
* img
 +
* object
 +
 
 +
==== lists ====
 +
* ol
* ul
* ul
-
* var
+
** li
-
== Semantic Attributes ==
+
==== generic ====
 +
* div
 +
* span
 +
== Semantic Attributes ==
(This list is incomplete, please add!)
(This list is incomplete, please add!)
-
 
+
* axis
 +
* caption
* class
* class
* data
* data
 +
* headers
* href
* href
* hreflang
* hreflang
Line 63: Line 198:
* rel
* rel
* rev
* rev
-
* caption
 
* scope
* scope
* summary
* summary
 +
* title
* type
* type
-
== Presentations ==
+
Previous to HTML5:
-
The following presentations provide additional background, explanations, and techniques for authoring semantic (X)HTML.
+
== Semantic (X)HTML ==
 +
Semantic (X)HTML refers to:
 +
# The semantic elements and attributes of (X)HTML (as opposed to the [[presentational-html|presentational HTML]] elements and attributes)
 +
# (X)HTML documents that are written using semantic (X)HTML.
 +
# The practice of writing semantic (X)HTML
 +
# [[posh|plain old semantic HTML (POSH)]]
-
* 2005-09-29 [http://tantek.com/presentations/2005/09/elements-of-xhtml/ The Elements of Meaningful XHTML] (first version: [http://tantek.com/presentations/2005/03/elementsofxhtml/ 2005-03-13 at SXSW Interactive]).
+
== Semantic (X)HTML Elements ==
-
* 2004-09-28 [http://tantek.com/presentations/20040928sdforumws/semantic-xhtml.html Semantic XHTML: Can your website be your API? - Using semantic XHTML to show what you mean]
+
Based on the [http://www.w3.org/TR/html401/index/elements.html Index of HTML 4 Elements].
-
* 2004-02-11 [http://www.tantek.com/presentations/2004etech/realworldsemanticspres.html real world semantics]
+
 
-
* 2003-03-?? [http://tantek.com/presentations/2003SXSW/stylesheets.html CSS: Between the Style Sheets] in particular slide 9, titled ''CSS & the Semantic Spectrum'', provides an overview of the semantic spectrum of (X)HTML tags.
+
== Presentations ==
-
* More microformats [[presentations]] in general
+
See [[posh#POSH_Presentations|POSH Presentations]].
== See also ==
== See also ==
Line 85: Line 225:
* [http://w3.org/TR/xhtml1 XHTML 1.0]
* [http://w3.org/TR/xhtml1 XHTML 1.0]
* [http://w3.org/TR/html401 HTML 4.01]
* [http://w3.org/TR/html401 HTML 4.01]
 +
* [http://w3.org/TR/html5 HTML5]

Current revision


Semantic HTML refers to:

  1. The semantic elements and attributes of HTML (as opposed to presentational HTML elements and attributes)
  2. HTML documents that are written using semantic HTML.
  3. The practice of writing semantic HTML
  4. plain old semantic HTML (POSH)

Contents

Semantic Elements

Based on semantic elements from HTML5 (including the <code> element, resolved but pending editor cycles).

alphabetical

Elements for marking up visible text and user interactivity only.

invisible semantics

layer hooks

semantically clustered

These lists/clusterings are incomplete.

hypertext

common prose document

quotes and references

contact

infrastructure

international

forms

programming

tabular data

definitions

text user interface

media

lists

generic

Semantic Attributes

(This list is incomplete, please add!)

Previous to HTML5:

Semantic (X)HTML

Semantic (X)HTML refers to:

  1. The semantic elements and attributes of (X)HTML (as opposed to the presentational HTML elements and attributes)
  2. (X)HTML documents that are written using semantic (X)HTML.
  3. The practice of writing semantic (X)HTML
  4. plain old semantic HTML (POSH)

Semantic (X)HTML Elements

Based on the Index of HTML 4 Elements.

Presentations

See POSH Presentations.

See also

References

Semantic HTML was last modified: Sunday, September 15th, 2013

Views