appendix html5 reference -...

21
APPENDIX A HTML5 Reference This appendix provides the following information: Alphabetical HTML5 reference Obsolete elements Global attributes Event attributes Numeric and character entities 9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Upload: dinhanh

Post on 13-Feb-2019

294 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

A P P E N D I X AHTML5 Reference

This appendix provides the following information:

Alphabetical HTML5 reference

Obsolete elements

Global attributes

Event attributes

Numeric and character entities

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 2: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Th is appendix includes element descriptions sorted alphabetically. Th e elements listed in this appendix are the ones you will use most often, including a list of the global attributes allowed with the majority of HTML5 elements and a complete list of character entities. Some elements are obsolete in HTML5 but are still in common use in many Web sites. If you are creating HTML5-compliant Web pages, you should not use these obsolete elements. For more detailed information, visit the World Wide Web Consortium Web site at www.w3.org.

Th e HTML5 draft specifi cation was published as a First Public Working Draft on January 23, 2008 and several updated Working Drafts of the specifi cation have subsequently been published by the W3C HTML5 working group. Information about HTML5 elements may continue to change as the draft evolves until it becomes a complete W3C recommendation.

Alphabetical HTML5 ReferenceAll elements support the global and event attributes described in Tables A-3 and A-4. Table A-2 contains a list of the obsolete elements.

For more information on HTML5 elements, see: W3C Working

Draft 9 November 2010 www.w3.org/TR/html-markup

Element New in HTML5

Description Attributes

<!--comment

text-->

Insert a comment in your code

Browsers do not display

comments in the Web page

Place the comment within the

tag, for example:

<!-- This is a comment -->

None

<a> Create a clickable hypertext

anchor in a document; can be

text or an image

Global attributes plus:

href Target destination of the hyperlink

name Name of a fragment of the

document

target Window or frame in which the linked

document is displayed

hrefl ang Language of the destination of

the hyperlink

rel Defi nes the relationship between the

document and the destination

media Valid media-query type

type MIME type

Table A-1 Common HTML5 Elements (continues)

594

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 3: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<abbr> Abbreviation or acronym Global attributes

<address> Contact information Global attributes

<area> Clickable area in an image

map

Global attributes plus:

alt Specify an alternate string of text if the

image cannot be displayed by the browser

href Target destination of the hyperlink

hrefl ang Language of the destination of

the hyperlink

target Window or frame in which the linked

document is displayed

rel Defi nes the relationship between the

document and the destination

media Valid media-query type

type MIME type

shape Determines the shape of the

clickable area, circle or poly and

coordinates

<article> √ A section of content that

forms an independent part of

a document or Web site

Global attributes

<aside> √ Content that is tangentially

related to the main content

Global attributes

<audio> √ Contains an audio stream src URL of the radio stream content

autoplay When set to autoplay, the video

starts playing as soon as possible

preload Indicates whether preloading is

necessary

controls When set to controls, displays

playback controls

loop When set to loop, the video plays

repeatedly

Table A-1 Common HTML5 Elements (continues)

(continued)

595

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 4: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<b> Boldface text

This element is redefi ned

in HTML5 to have semantic

meaning: “Bold text is offset

from its surrounding content

without conveying any extra

emphasis or importance, and

for which the conventional

typographic presentation is

bold text”

Global attributes

<base> Sets the base URL or target

for a page

This is an empty element

Global attributes plus:

href Absolute or relative original URL for

the current document

target Default window or frame in which links

contained in the document are displayed

<blockquote> Indents text on both the left

and right margins

<body> Identifi es the body section of

the Web page

<br > Inserts a line break, forcing

text to the next line

This is an empty element

<button> Creates a button outside of a

form

Global attributes plus:

type Values are button, reset, or submit

name Name for the button

value Initial value for the button; this can

be changed by a script

disabled When value is disabled, the

button is not displayed

form Value of the id attribute associated

with the form

canvas √ Used with scripting

applications to dynamically

render graphics, animations,

or other visual images

Global attributes plus:

height Height of the canvas, in pixels

width Width of the canvas, in pixels

<caption> Indicates that the text appears

as the caption of a table

Global attributes

Table A-1 Common HTML5 Elements (continues)

(continued)

596

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 5: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<cite> Title of a cited work Global attributes

<code> Fragment of computer code Global attributes

<col> One or more columns in

a column group within the

<colgroup> element

This is an empty element

Global attributes plus:

span Number of columns spanned

<colgroup> Group of columns within a

table

Global attributes plus:

span Number of columns spanned

<command> √ Defi nes a command button

within a <menu> element

This is an empty element

Global attributes plus:

type Command, checkbox, or radio

<datalist> √ Defi nes a list of option values

for a form input element

The results of this element are

not displayed in the browser

window

Global attributes

<dd> Defi nition for a term within a

defi nition list <dl> element

Global attributes

<del> Text that has been deleted

from a document

Global attributes

<details> √ Represents a control from

which a user can request

more information

Global attributes plus:

open Specifi es the contents should be

shown to the user, value is open or null

<div> Indicates a division within the

document

Global attributes

<dt> Term or name within a

defi nition list <dl> element

<em> Emphasizes text, usually as

italic; browser determines the

text style

Global attributes

<embed> √ Contains content from an

external source

This is an empty element

src Address of the content being embedded

type MIME type of the embedded content

height Height of the embedded content,

in pixels

width Width of the embedded content, in

pixels

Table A-1 Common HTML5 Elements (continues)

(continued)

597

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 6: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<fi eldset> Container for form controls

grouped under a heading

Global attributes

<fi gcaption> √ Caption or legend for a fi gure Global attributes

<fi gure> √ Self-contained set of graphical

or related content

Global attributes

<footer> √ Contains footer content Global attributes

<form> Contains user-submittable

form

action URL of the application that

processes the form data; this URL points

to a script fi le or a e-mail address

enctype Content type used to submit the

form to the server (when the value of the

method is “post”); most forms do not

need this attribute

method Specifi es the HTTP method used to

submit the form data; the default value is get

• get Form data is appended to the URL

specifi ed in the action attribute

• post Form data is sent to the server as

a separate message

accept Comma-separated list of content

types that a server processing this form

can handle correctly; most forms do not

need this attribute

accept-charset List of allowed character

sets for input data that is accepted by the

server processing this form; most forms

do not need this attribute

name Name of this form for data processing

<h1> to <h6> Defi nes headings for six

levels of content

Global attributes

<head> Identifi es the head section

of the Web page, which

is re served for metadata

(information about the

document)

Global attributes

<header> √ Header of a section Global attributes

Table A-1 Common HTML5 Elements (continues)

(continued)

598

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 7: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<hgroup> √ Group of headings <h1>

through <h6>

Global attributes

<hr> Inserts a horizontal rule on

the page indicating thematic

break in the content

This is an empty element

Global attributes

<html> Root element of an HTML fi le Global attributes

<i> Italicize text

This element is redefi ned

in HTML5 to have semantic

meaning: “Italic text is offset

from its surrounding content

without conveying any extra

emphasis or importance, and

for which the conventional

typographic presentation is

italic text”

Global attributes

<iframe> Creates an inline frame that

contains a new content page

Global attributes plus:

src Address of a page that the nested

frame contains

name Content name

width Width of the iframe, in pixels

height Height of the iframe, in pixels

<img> Inserts an image into a Web

page

This is an empty element

Global attributes plus:

width Width of the image, in pixels

height Height of the image, in pixels

src URL that points to the image fi le; this

attribute is required

alt Specify an alternate string of text if the

image cannot be displayed by the browser

<input> Used in a <form> element

to create a variety of input

controls

Global attributes plus:

text Text entry fi eld where the user entry is

masked by asterisks

checkbox Provides on/off toggles that the

user selects

Table A-1 Common HTML5 Elements (continues)

(continued)

599

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 8: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

radio Lets a user choose one value from a

range of values

submit Sends the form data to the server

reset Clears the form of any user-entered

data and returns it to its original state

hidden Adds a control that is not displayed

in the browser

image Adds a graphic button to the form,

rather than the default button

button Creates a button that has no

default behavior

file Lets the user select a fi le that is

submitted with the form

datetime Global date and time

datetime-local Local date and time

date Calendar date

month Calendar month

time Time value

week Calendar week

number Number value

range Range of values

email Email address

url URL value

search Search term

tel Telephone number

color Color name

<ins> Text that has been added to a

document

Global attributes plus:

cite URL of a text citation for the

document

datetime Date and time when the text was

added

<kbd> Represents user input Global attributes

Table A-1 Common HTML5 Elements (continues)

(continued)

600

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 9: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<keygen> √ Defi nes a key for secure

communications

Global attributes plus:

challenge Challenge text string that is

submitted along with the key

keytype Type of key, such as rsa

autofocus Focuses on the textarea when

the page loads

name Name of this element for form

processing

form Value of the id attribute associated

with the form

disabled When value is disabled, the

textarea is not displayed

<label> Caption for a form control Global attributes plus:

for Reference the id of a form control to

associate the label

form Value of the id attribute associated

with the form

<legend> A title or explanatory caption for

the parent element’s content

Global attributes

<li> Marks an individual list item

This is an empty tag

Global attributes

<link> Defi nes a relationship between

the document and external

resources, such as a style

sheet

Global attributes plus:

type Type of external resource

href URL of the external resource

rel Describes the relationship between

the current document and the anchor

specifi ed by the href attribute

hrefl ang Language of the destination link

media Valid media-query type

<map> Defi nes an image map Global attributes plus:

name Name for the map

<mark> Text marked or highlighted for

reference purposes

Global attributes

<menu> Redefi ned in HTML5 to defi ne

a menu

Global attributes plus:

type Type of menu to display; values are

context, toolbar, or list, list is the default

Table A-1 Common HTML5 Elements (continues)

(continued)

601

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 10: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<meta> Used within the document

head to provide information

name Meta information name, such as

keyword or description

content Content of the named information

type

<meter> √ Measurement or fractional

value to measure data within

a range

Global attributes plus:

value Measured value shown by meter

min Lower bound of the range for the meter

low Point that marks the upper boundary

of the low segment of the meter

high Point that marks the lower boundary

of the high segment of the meter

max Upper bound of the range for the meter

optimum Point that marks the

optimum position for the meter

<nav> √ Group of navigation links Global attributes

<noscript> Fallback content for scripts Global attributes

<object> Contains external content Global attributes plus:

data URL of the content

type MIME type of the content

height Height of the object, in pixels

width Width of the object, in pixels

name Name of the object

<ol> Creates a numbered list Global attributes

<optgroup> Group of <option> elements

with a common label

Global attributes plus:

label Name of the group of options

<option> Option choice in an

<optgroup>

Global attributes plus:

label Name of the group of options

value Value for the option

<output> √ Result of a calculation in a

form

Global attributes plus:

name Name of this element for form

processing

form Value of the id attribute associated

with the form

Table A-1 Common HTML5 Elements (continues)

(continued)

602

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 11: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<p> Marks the beginning of a new

block of text

Global attributes

<param> Defi nes parameters for plug-

ins in <object> elements

Global attributes plus:

name Name of the parameter

value Value of the parameter

<pre> Preserves the formatting and

spacing of text as typed in the

source code; displays the text

in a monospace font, different

from the standard browser text

Global attributes

<progress> √ Indicates the completion

progress of a task

Used with a scripting language

Global attributes plus:

max Total value at completion.

value How much of the task has been

completed

<q> Quoted text from another

source

Global attributes plus:

cite Contains the address of the source of

the quoted text

<rp> √ Inserts ruby parentheses to

hide ruby text <rt> content

from browsers that do not

support the <ruby> element

Global attributes

<rt> √ Marks ruby text Global attributes

<ruby> √ Marks spans of content as

ruby annotations

Ruby text is used to provide

a short annotation of the

associated base text

Ruby annotations are used

frequently in Japan in many

kinds of publications, including

books and magazines

Ruby is also used in China,

especially in schoolbooks

Global attributes

<samp> Sample computer code Global attributes

Table A-1 Common HTML5 Elements (continues)

(continued)

603

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 12: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<script> Contains dynamic script or

data content

Global attributes plus:

type MIME type of the script or data

language

src Address of the external script

defer If set to defer, the script is executed

after the page is loaded

charset Character encoding of the

external script

<section> √ Section of a document typically

including a title or heading

Global attributes

<select> Form control for selecting

from a list of options

Global attributes plus:

name the name of this element for form

processing

form Value of the id attribute associated

with the form

disabled When value is disabled, the

textarea is not displayed

size Number of options to show

multiple If set to multiple, user can select

one or more options from the list

<small> Contains legal, privacy, and

other “fi ne-print” content

Global attributes

<source> √ Allows specifi cation for

multiple media sources for

audio and video elements

Global attributes plus:

src Address of the media source

type MIME type of the content

media Valid media-query type

<span> Serves as an inline division;

used to apply a style class or

rule to text

Global attributes

<strong> Contains important text, usually

displayed as boldface; browser

determines the text style

Global attributes

<style> Used in the <head> section to

contain CSS style rules

type Valid MIME type that designates a

styling language

media Valid media-query type specifi es to

which media the style applies

Table A-1 Common HTML5 Elements (continues)

(continued)

604

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 13: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<sub> Subscripted text Global attributes

<summary> Summary, caption, or legend

for a <details> element

Global attributes

<sup> Superscripted text Global attributes

<table> Marks the beginning and end

of a table

Global attributes plus:

summary Description of the table

<tbody> Block of rows in a table that

contains the body content

Global attributes

<td> Marks a data cell in a table Global attributes plus:

colspan Number of adjacent columns

spanned by the <td> element

rowspan Number of following rows

spanned by the <td> element

<textarea> Form control that lets users

enter multiple lines of text

content

Global attributes plus:

autofocus Focuses on the textarea when

the page loads

cols Number of characters visible

horizontally

disabled When value is disabled, the

textarea is not displayed

form ID value defi nes the form the

textarea belongs

maxlength Defi nes the maximum number

of characters

required Element is a required part of the

form submission

placeholder Short text hint to aid the user

when entering data

rows Number of lines of text to display

wrap When set to hard, the text wraps

based on the cols value

<tfoot> Block of rows in a table that

contains the footer content

Global attributes

<th> Forces the contents of a cell to be

displayed as bold and centered

Global attributes

Table A-1 Common HTML5 Elements (continues)

(continued)

605

Alphabetical HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 14: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Element New in HTML5

Description Attributes

<thead> Block of rows in a table that

contains the header content

Global attributes

<time> √ Contains a date or time value Global attributes plus:

datetime Specifi es the date or time the

element represents

pubdate Indicates that the date or time

given is a publication date or time

<title> Specifi es the title of the Web

page; title text appears in the

browser title bar and as the

bookmark or favorites text

Global attributes

<tr> Marks a row of cells in a table Global attributes

<tt> Specifi es monospace text,

usually Courier

Global attributes

<ul> Creates a bulleted indented list Global attributes

<var> Variable in a mathematical

expression

<video> √ Video or movie content Global attributes plus:

autoplay When set to autoplay, the video

starts playing as soon as possible

preload Indicates whether preloading is

necessary.

controls When set to controls, displays

playback controls

loop When set to loop, the video plays

repeatedly

poster URL for an image displayrf when

the video is loading

height Height of the video, in pixels

width Width of the video, in pixels

<wbr> √ Represents an approved line-

break location

Global attributes

Table A-1 Common HTML5 Elements

(continued)

606

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 15: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Obsolete ElementsTable A-2 lists the elements that are no longer supported in HTML5.

Element HTML5 Replacement

<acronym> <abbr>

<applet> <object>

<basefont> Use CSS

<big> Use CSS

<center> Use CSS

<dir> <ul>

<font> Use CSS

<frame> No replacement

<frameset> No replacement

<noframes> No replacement

<s> Use CSS

<strike> Use CSS

<tt> Use CSS

<u> Use CSS

<xmp> <pre>

Table A-2 Obsolete Elements

Global AttributesTable A-3 lists the global attributes, which are allowed within all of the elements listed in the element tables.

Attribute New in HTML5 Defi nition

accesskey Key label or list of key labels with which to

associate the element; each key label represents

a keyboard shortcut which browsers can use to

activate the element or give focus to the element

class Specifi es a class name for an element; the class

name can be used to specify style sheet rules

contenteditable √ Specifi es whether the contents of the element are

editable

Values are true, false, or empty

Table A-3 HTML5 Global Attributes (continues)

607

Global Attributes

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 16: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Attribute New in HTML5 Defi nition

contextmenu √ Use with the <menu> element to indicate that the

element is part of a context menu

dir Specifi es the element’s text directionality

Values are ltr, (left to right) or rtl (right to left)

draggable √ Specifi es whether the element is draggable

Values are true or false

hidden √ Specifi es that the element represents an element

that is not yet, or is no longer, relevant

id Specifi es a document-wide unique identifi er for an

element

Multiple elements in the document cannot have the

same id value

lang Specifi es the primary language for the contents of

the element and for any of the element’s attributes

that contain text

spellcheck √ Specifi es whether the element represents an

element whose contents are subject to spell

checking and grammar checking

Values are true, false, or empty

style Specifi es a style sheet rule for the element

tabindex Specifi es whether the element represents an

element that is focusable (that is, an element which

is part of the sequence of focusable elements

in the document), and the relative order of the

element in the sequence of focusable elements in

the document

title Specifi es a title for the element; the content of the

title is displayed in the browser as a pop-up window

or tooltip

Table A-3 HTML5 Global Attributes

(continued)

608

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 17: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Event AttributesTable A-4 lists the event attributes, which are used with a scripting language to trigger events.

Attribute Script is Triggered

onafterprintNew After the document is printed

onbeforeonloadNew Before the document loads

onbeforeprintNew Before the document is printed

onblur When the window loses focus

onerrorNew When an error occurs

onfocus When the window gets focus

onhaschangeNew When the document has change

onload When the document loads

onmessageNew When the message is triggered

onoffl ineNew When the document goes offl ine

ononlineNew When the document comes online

onpagehideNew When the window is hidden

onpageshowNew When the window becomes visible

onpopstateNew When the window’s history changes

onredoNew When the document performs a redo

onresizeNew When the window is resized

onstorageNew When a document loads

onundoNew When a document performs an undo

onunloadNew When the user leaves the document

Table A-4 HTML5 Event Attributes

Numeric and Character EntitiesTable A-5 lists the event attributes, which are used with a scripting language to trigger events.

Character Character Entity Numeric Entity Description

“ &#123; &quot; Quotation mark

# &#35; Number sign

$ &#36; Dollar sign

% &#37; Percent sign

& &#38; &amp; Ampersand

Table A-5 Numeric and Character Entities (continues)

609

Numeric and Character Entities

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 18: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Character Character Entity Numeric Entity Description

‘ &#39; Apostrophe

( &#40; Left parenthesis

) &#41; Right parenthesis

* &#42; Asterisk

+ &#43; Plus sign

, &#44; Comma

- &#45; Hyphen

. &#46; Period (full stop)

/ &#47; Solidus (slash)

0 &#48; Digit 0

1 &#49; Digit 1

2 &#50; Digit 2

3 &#51; Digit 3

4 &#52; Digit 4

5 &#53; Digit 5

6 &#54; Digit 6

7 &#55; Digit 7

8 &#56; Digit 8

9 &#57; Digit 9

: &#58; Colon

; &#59; Semicolon

< &#60; &lt; Less than sign

&#61; Equals sign

> &#62; &gt; Greater than sign

? &#63; Question mark

@ &#64; Commercial at

A Z &#65; - &#90; Uppercase letters A Z

[ &#91; Left square bracket

\ &#92; Reverse solidus (backslash)

] &#93; Right square bracket

ˆ &#94; Caret

_ &#95; Horizontal bar (underscore)

` &#96; Grave accent

a z &#97; - &#122 Lowercase letters a z

Table A-5 Numeric and Character Entities (continues)

(continued)

610

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 19: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Character Character Entity Numeric Entity Description

{ &#123; Left curly brace

| &#124; Vertical bar

} &#125; Right curly brace

˜ &#126; Tilde

&#160; &nbsp; Nonbreaking space

¡ &#161; &iexcl; Inverted exclamation mark

¢ &#162; &cent; Cent sign

£ &#163; &pound; British Pound sign

$ &#164; &curren; Currency sign

¥ &#165; &yen; Yen sign

|| &#166; &brvbar; Broken vertical bar

§ &#167; &sect; Section sign

¨ &#168; &uml; Spacing diaeresis

© &#169; &copy; Copyright sign

a &#170; &ordf; Feminine ordinal indicator

« &#171; &laquo; Left-pointing double angle quotation

mark

¬ &#172; &not; Not sign

_ &#173; &shy; Soft hyphen

® &#174; &reg; Registered trademark sign

¯ &#175; &macr; Macron overline

° &#176; &deg; Degree sign

± &#177; &plusmn; Plus-or-minus sign

2 &#178; &sup2; Superscript digit 2

3 &#179; &sup3; Superscript digit 3

´ &#180; &acute; Acute accent

μ &#181; &micro; Micron sign

¶ &#182; &para; Paragraph sign

· &#183; &middot; Middle dot

¸ &#184; &cedil; Cedilla

1 &#185; &sup1; Superscript digit 1

o &#186; &ordm; Masculine ordinal indicator

» &#187; &raquo; Right-pointing double angle quotation mark

¼ &#188; &frac14; Fraction one-quarter

½ &#189; &frac12; Fraction one-half

Table A-5 Numeric and Character Entities (continues)

(continued)

611

Numeric and Character Entities

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 20: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Character Character Entity Numeric Entity Description

¾ &#190; &frac34; Fraction three-quarters

¿ &#191; &iquest; Inverted question mark

À &#192; &Agrave; Capital letter A with grave

Á &#193; &Aacute; Capital letter A with acute

 &#194; &Acirc; Capital letter A with circumfl ex

à &#195; &Atilde; Capital letter A with tilde

Ä &#196; &Auml; Capital letter A with diaeresis

Å &#197; &Aring; Capital letter A with ring above

Æ &#198; &Aelig; Capital letter AE

Ç &#199; &Ccedil; Capital letter C with cedilla

È &#200; &Egrave; Capital letter E with grave

É &#201; &Eacute; Capital letter E with acute

Ê &#202; &Ecirc; Capital letter E with circumfl ex

Ë &#203; &Euml; Capital letter E with diaeresis

Ì &#204; &Igrave; Capital letter I with grave

Í &#205; &Iacute; Capital letter I with acute

Î &#206; &Icirc; Capital letter I with circumfl ex

Ï &#207; &Iuml; Capital letter I with diaeresis

D &#208; &ETH; Capital letter ETH

Ñ &#209; &Ntilde; Capital letter N with tilde

Ò &#210; &Ograve; Capital letter O with grave

Ó &#211; &Oacute; Capital letter O with acute

Ô &#212; &Ocirc; Capital letter O with circumfl ex

Õ &#213; &Otilde; Capital letter O with tilde

Ö &#214; &Ouml; Capital letter O with diaeresis

x &#215; &times; Multiplication sign

Ø &#216; &Oslash; Capital letter O with stroke

Ù &#217; &Ugrave; Capital letter U with grave

Ú &#218; &Uacute; Capital letter U with acute

Û &#219; &Ucirc; Capital letter U with circumfl ex

Ü &#220; &Uuml; Capital letter U with diaeresis

Ý &#221; &Yacute; Capital letter Y with acute

P &#222; &THORN; Capital letter THORN

ß &#223; &szlig; Sz ligature

Table A-5 Numeric and Character Entities (continues)

(continued)

612

A P P E N D I X A HTML5 Reference

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.

Page 21: APPENDIX HTML5 Reference - myresource.phoenix.edumyresource.phoenix.edu/.../Principles_of_Web_Design_5e_Appendix_A.pdf · HTML5 Reference This appendix ... tag, for example:

Character Character Entity Numeric Entity Description

à &#224; &agrave; Small letter a with grave

á &#225; &aacute; Small letter a with acute

â &#226; &acirc; Small letter a with circumfl ex

ã &#227; &atilde; Small letter a with tilde

ä &#228; &auml; Small letter a with diaeresis

å &#229; &aring; Small letter a with ring above

æ &#230; &aelig; Small letter ae

ç &#231; &ccedil; Small letter c with cedilla

è &#232; &egrave; Small letter e with grave

é &#233; &eacute; Small letter e with acute

ê &#234; &ecirc; Small letter e with circumfl ex

ë &#235; &euml; Small letter e with diaeresis

ì &#236; &igrave; Small letter i with grave

í &#237; &iacute; Small letter i with acute

î &#238; &icirc; Small letter i with circumfl ex

ï &#239; &iuml; Small letter i with diaeresis

d &#240; &eth; Small letter eth

ñ &#241; &ntilde; Small letter n with tilde

ò &#242; &ograve; Small letter o with grave

ó &#243; &oacute; Small letter o with acute

ô &#244; &ocirc; Small letter o with circumfl ex

õ &#245; &otilde; Small letter o with tilde

ö &#246; &ouml; Small letter o with diaeresis

÷ &#247; &divide; Division sign

o/ &#248; &oslash; Small letter o with stroke

ù &#249; &ugrave; Small letter u with grave

ú &#250; &uacute; Small letter u with acute

û &#251; &ucirc; Small letter u with circumfl ex

ü &#252; &uuml; Small letter u with diaeresis

ý &#253; &yacute; Small letter y with acute

þ &#254; &thorn; Small letter thorn

ÿ &#255; &yuml; Small letter y with diaeresis

Table A-5 Numeric and Character Entities

(continued)

613

Numeric and Character Entities

9781133086642, Principles of Web Design, Fifth Edition, Sklar - © Cengage Learning. All rights reserved. No distribution allowed without express authorization.