Sections

Section

The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading.

Red Delicious

These bright red apples are the most common found in many supermarkets.

Granny Smith

These juicy, green apples make a great filling for apple pies.

Article

The article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.

The Very First Rule of Life

If there's a microphone anywhere near you, assume it's hot and sending whatever you're saying to the world. Seriously.

Aside

The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.

The h1, h2, h3, h4, h5, and h6 elements

These elements represent headings for their sections.

The semantics and meaning of these elements are defined in the section on headings and sections.

These two snippets are equivalent in the outline:

Let's call it a draw(ing surface)

Diving in

Simple shapes

Canvas coordinates

Canvas coordinates diagram

Paths

Let's call it a draw(ing surface)

Diving in

Simple shapes

Canvas coordinates

Canvas coordinates diagram

Paths

hgroup

The hgroup element represents the heading of a section. The element is used to group a set of h1u{2013} h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.

Dr. Strangelove

Or: How I Learned to Stop Worrying and Love the Bomb

Address

The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole.

Dave Raggett, Arnaud Le Hors, contact persons for the W3C HTML Activity

Grouping

p

The p element represents a paragraph.

The little kitten gently seated himself on a piece of carpet. Later in his life, this would be referred to as the time the cat sat on the mat.

Personal information

There was once an example from Femley,
Whose markup was of dubious quality.
The validator complained,
So the author was pained,
To move the error from the markup to the rhyming.



hr

The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book.

Communication

There are various methods of communication. This section covers a few of the important ones used by the project.


Communication stones seem to come in pairs and have mysterious properties:

  • They can transfer thoughts in two directions once activated if used alone.
  • If used with another device, they can transfer one's consciousness to another body.
  • If both stones are used with another device, the consciousnesses switch bodies.

Radios use the electromagnetic spectrum in the meter range and longer.


Signal flares use the electromagnetic spectrum in the nanometer range.

Food

All food at the project is rationed:

Potatoes
Two per day
Soup
One bowl per day

Cooking is done by the chefs on a set rotation.

pre

The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.

This is the Panel constructor:

function Panel(element, canClose, closeHandler) {
              this.element = element;
              this.canClose = canClose;
              this.closeHandler = function () { if (closeHandler) closeHandler() };
            }    .markup

      You are in an open field west of a big white house with a boarded
      front door.
      There is a small mailbox here.
      >
    
    open mailbox
    
      Opening the mailbox reveals:
      A leaflet.
      >
    
  ()                   o             | |   /|   / o
  /\         ,_                 __,  | |    |__/    _|_
 /  \|   |  /  |  |  |_|  |  |_/  |  |/     | \   |  |
/(__/ \_/|_/   |_/ \/  |_/ \/  \_/|_/|__/   |  \_/|_/|_/

blockquote

The blockquote element represents a section that is quoted from another source.

His next piece was the aptly named Sonnet 130:

My mistress' eyes are nothing like the sun,
Coral is far more red, than her lips red...

He began his list of "lessons" with the following:

One should never assume that his side of the issue will be recognized, let alone that it will be conceded to have merits.

He continued with a number of similar points, ending with:

Finally, one should be prepared for the threat of breakdown in negotiations at any given moment and not be cowed by the possiblity.

We shall now discuss these points

ol

The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document.

I have lived in the following countries (given in the order of when I first lived there):

  1. Switzerland
  2. United Kingdom
  3. United States
  4. Norway

ul

The ul element represents a list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document.

I have lived in the following countries:

  • Norway
  • Switzerland
  • United Kingdom
  • United States

li

The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element.

The top 10 movies of all time
  1. Josie and the Pussycats, 2001
  2. Црна мачка, бели мачор, 1998
  3. A Bug's Life, 1998
  4. Toy Story, 1995
  5. Monsters, Inc, 2001
  6. Cars, 2006
  7. Toy Story 2, 1999
  8. Finding Nemo, 2003
  9. The Incredibles, 2004
  10. Ratatouille, 2007
The top 10 movies of all time
  1. Josie and the Pussycats, 2001
  2. Црна мачка, бели мачор, 1998
  3. A Bug's Life, 1998
  4. Toy Story, 1995
  5. Monsters, Inc, 2001
  6. Cars, 2006
  7. Toy Story 2, 1999
  8. Finding Nemo, 2003
  9. The Incredibles, 2004
  10. Ratatouille, 2007

dl

dt

dd

The dl element represents an association list consisting of zero or more name-value groups (a description list). Each group must consist of one or more names ( dt elements) followed by one or more values ( dd elements). Within a single dl element, there should not be more than one dt element for each name.

The dt element represents the term, or name, part of a term-description group in a description list ( dl element).

The dd element represents the description, definition, or value, part of a term-description group in a description list ( dl element).

Authors
John
Luke
Editor
Frank
color
colour
A sensation which (in humans) derives from the ability of the fine structure of the eye to distinguish three differently filtered analyses of a view.

figure

figcaption

The figure element represents some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document.

The element can thus be used to annotate illustrations, diagrams, photos, code listings, etc, that are referred to from the main content of the document, but that could, without affecting the flow of the document, be moved away from that primary content, e.g. to the side of the page, to dedicated pages, or to an appendix.

The figcaption element child of the element, if any, represents the caption of the figure element's contents. If there is no child figcaption element, then there is no caption.

In listing 4 we see the primary core interface API declaration.

Listing 4. The primary core interface API declaration.
interface PrimaryCore {
             boolean verifyDataLine();
             void sendData(in sequence data);
             void initSelfDestruct();
            }      %p The API is designed to use UTF-8.
Bubbles, sitting in his office chair, works on his latest project intently.
Bubbles at work

Text-level semantics

a

The a element may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links). This example shows how this can be used to make an entire advertising block into a link:

em

The em element represents stress emphasis of its contents.

Cats are cute animals.

strong

The strong element represents strong importance for its contents.

Warning. This dungeon is dangerous. Avoid the ducks. Take any gold you find. Do not take any of the diamonds, they are explosive and will destroy anything within ten meters. You have been warned.

small

The small element represents side comments such as small print.

Single room
199 € breakfast included, VAT not included
Double room
239 € breakfast included, VAT not included

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.

s

The s element represents contents that are no longer accurate or no longer relevant.

Buy our Iced Tea and Lemonade!

Recommended retail price: $3.99 per bottle

Now selling for just $2.99 a bottle!

cite

The cite element represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case report, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing.

My favorite book is The Reality Dysfunction by Peter F. Hamilton. My favorite comic is Pearls Before Swine by Stephan Pastis. My favorite track is Jive Samba by the Cannonball Adderley Sextet.

q

The q element represents some phrasing content quoted from another source.

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

The W3C page About W3C says the W3C's mission is To lead the World Wide Web to its full potential by developing protocols and guidelines that ensure long-term growth for the Web . I disagree with this mission.

dfn

The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element.

The GDO is a device that allows off-world teams to open the iris.

Teal'c activated his GDO and so Hammond ordered the iris to be opened.

The GDO is a device that allows off-world teams to open the iris.

Teal'c activated his GDO and so Hammond ordered the iris to be opened.

abbr

The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.

The WHATWG is a loose unofficial collaboration of Web browser manufacturers and interested parties who wish to develop new technologies designed to allow authors to write and deploy Applications over the World Wide Web.

time

The time element represents either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset. [GREGORIAN]

http://www.web2con.com/ Web 2.0 Conference: - , at the Argent Hotel, San Francisco, CA

I usually have a snack at .

I've liked model trains since at least 1983.

code

The code element represents a fragment of computer code. This could be an XML element name, a filename, a computer program, or any other string that a computer would recognize.

When you call the activate() method on the robotSnowman object, the eyes glow.

var i: Integer;
begin
   i := 1;
end.  %div#var.element

var

The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, or it could just be a term used as a placeholder in prose.

If there are n pipes leading to the ice cream factory then I expect at least n flavors of ice cream to be available for purchase!

a = b 2 + c 2
Using Pythagoras' theorem to solve for the hypotenuse a of a triangle with sides b and c

samp

The samp element represents (sample) output from a program or computing system.

The computer said Too much cheese in tray two but I didn't know what that meant.


      jdoe@mowmow:~$
      ssh demo.example.com
      Last login: Tue Apr 12 09:10:17 2005 from mowmow.example.com on pts/1
      Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SMP Tue Feb 1 11:22:36 PST 2005 i686 unknown
      jdoe@demo:~$
      _
    

kbd

The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).

To make George eat an apple, press Shift+ F3

sub and sup

The sup element represents a superscript and the sub element represents a subscript.

The most beautiful women are M lle Gwendoline and M me Denise .

The coordinate of the ith point is ( x i , y i ). For example, the 10th point has coordinate ( x 10 , y 10 ).

i

The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized.

The Felis silvestris catus is cute.

The term prose content is defined above.

There is a certain je ne sais quoi in the air.

b

The b element represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is boldened.

The frobonitor and barbinator components are fried.

mark

The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity.

I also have some kittens who are visiting me these days. They're really cute. I think they like my garden! Maybe I should adopt a kitten.

ruby

rt

rp

The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana.

The rt element marks the ruby text component of a ruby annotation.

The rp element can be used to provide parentheses around a ruby text component of a ruby annotation, to be shown by user agents that don't support ruby annotations.

かんじ 
hàn
( かん )( )

bdi

The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]

  • User jcranmer: 12 posts.
  • User hober: 5 posts.
  • User إيان: 3 posts.

Usage summary

Element Purpose Example
a Hyperlinks
Visit my
            drinks
            page.
em Stress emphasis
I must say I
            adore
            lemonade.
strong Importance
This tea is
            very hot.
small Side comments
These grapes are made into wine.
            Alcohol is addictive.
s Inaccurate text
Price:
            £4.50
            £2.00!
cite Titles of works
The case
            Hugo v. Danielle
            is relevant here.
q Quotations
The judge said
            You can drink water from the fish tank
            but advised against it.
dfn Defining instance
The term
            organic food
            refers to food produced without synthetic chemicals.
abbr Abbreviations
Organic food in Ireland is certified by the
            IOFGA.
time Date and/or time
Published
            .
code Computer code
The
            fruitdb
            program can be used for tracking fruit production.
var Variables
If there are
            n
            fruit in the bowl, at least
            nu{f7}2
            will be ripe.
samp Computer output
The computer said
            Unknown error -3.
kbd User input
Hit
            F1
            to continue.
sub Subscripts
Water is H2O.
sup Superscripts
The Hydrogen in heavy water is usually
            2H.
i Alternative voice
Lemonade consists primarily of
            Citrus limon.
b Keywords
Take a
            lemon
            and squeeze it with a
            juicer.
mark Highlight
Elderflower cordial, with one
            part
            cordial to ten
            parts
            water, stands a
            part
            from the rest.
ruby, rt, rp Ruby annotations
 OJ (Orange Juice)
bdi Text directionality isolation
The recommended restaurant is
            My Juice Café (At The Beach).
bdo Text directionality formatting
The proposal is to write English, but in reverse order. "Juice" would become "Juice"
span Other
In French we call it
            sirop de sureau.
br Line break
Simply Orange Juice Company
Apopka, FL 32703
U.S.A.
wbr Line breaking opportunity
www.simplyorangejuice.com

Tabular Data

Table

The table element represents data with more than one dimension, in the form of a table.

In the following table, characteristics are given in the second column, with the negative side in the left column and the positive side in the right column.

Characteristics with positive and negative sides
Negative Characteristic Positive
Sad Mood Happy
Failing Grade Passing
Characteristics with positive and negative sides.

Characteristics are given in the second column, with the negative side in the left column and the positive side in the right column.

Negative Characteristic Positive
Sad Mood Happy
Failing Grade Passing
Characteristics with positive and negative sides.
Help

Characteristics are given in the second column, with the negative side in the left column and the positive side in the right column.

Negative Characteristic Positive
Sad Mood Happy
Failing Grade Passing
Characteristics with positive and negative sides

Characteristics are given in the second column, with the negative side in the left column and the positive side in the right column.

Negative Characteristic Positive
Sad Mood Happy
Failing Grade Passing
Characteristics with positive and negative sides

Characteristics are given in the second column, with the negative side in the left column and the positive side in the right column.

Negative Characteristic Positive
Sad Mood Happy
Failing Grade Passing
Characteristics with positive and negative sides
Characteristic Negative Positive
Mood Sad Happy
Grade Failing Passing

thead

The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table.

School auction sign-up sheet
Your name here What are you selling? Link to a picture Your reserve price
Ms Danus Doughnuts $45

Sample Tables

Specification values: Steel, Castings, Ann. A.S.T.M. A27-16, Class B;* P max. 0.06; S max. 0.05.
Grade. Yield Point. Ultimate tensile strength Per cent elong. 50.8mm or 2 in. Per cent reduct. area.
kg/mm 2 lb/in 2
Hard 0.45 ultimate 56.2 80,000 15 20
Medium 0.45 ultimate 49.2 70,000 18 25
Soft 0.45 ultimate 42.2 60,000 22 30
2008 2007 2006
Net sales $ 32,479 $ 24,006 $ 19,315
Cost of sales 21,334 15,852 13,717
Gross margin $ 11,145 $ 8,154 $ 5,598
Gross margin percentage 34.3% 34.0% 29.0%
2008 2007 2006
Research and development $ 1,109 $ 782 $ 712
Percentage of net sales 3.4% 3.3% 3.7%
Selling, general, and administrative $ 3,761 $ 2,963 $ 2,433
Percentage of net sales 11.6% 12.3% 12.6%

Forms

Sample Forms

Pizza Size

Pizza Toppings

fieldset

label

Interactive

details

The details element represents a disclosure widget from which the user can obtain additional information or controls.

Copying "Really Achieving Your Childhood Dreams"

Copying... 25%
Transfer rate:
452KB/s
Local filename:
/home/rpausch/raycd.m4v
Remote filename:
/var/www/lectures/raycd.m4v
Duration:
01:16:27
Color profile:
SD (6-1-6)
Dimensions:
320×240