You are on page 1of 6

HTML

#html
Table of Contents
About 1

Chapter 1: Getting started with HTML 2

Remarks 2

Versions 2

Examples 2

Hello World 2

Introduction 2

Element insight 3

Creating a simple page 3

Simple page break down 4

Chapter 2: Anchors and Hyperlinks 6

Introduction 6

Syntax 6

Parameters 6

Examples 7

Link to another site 7

Open link in new tab/window 7

Link to an anchor 8

Link that runs JavaScript 8

Link to a page on the same site 9

Link that runs email client 9

Link that dials a number 10

Chapter 3: ARIA 11

Syntax 11

Remarks 11

Examples 12

role="alert" 12

role="alertdialog" 12

role="application" 12

role="article" 12
role="banner" 13

role="button" 13

role="cell" 13

role="checkbox" 13

role="columnheader" 14

role="combobox" 14

role="complementary" 14

role="contentinfo" 14

role="definition" 15

role="dialog" 15

role="directory" 15

role="document" 15

role="form" 15

role="grid" 16

role="gridcell" 16

role="group" 17

role="heading" 17

role="img" 17

role="link" 17

role="list" 17

role="listbox" 18

role="listitem" 18

role="log" 18

role="main" 18

role="marquee" 18

role="math" 19

role="menu" 19

role="menubar" 19

role="menuitem" 19

role="menuitemcheckbox" 19

role="menuitemradio" 20

role="navigation" 20

role="note" 20
role="option" 20

role="presentation" 20

role="progressbar" 21

role="radio" 21

role="region" 21

role="radiogroup" 21

role="row" 21

role="rowgroup" 22

role="rowheader" 22

role="scrollbar" 22

role="search" 23

role="searchbox" 23

role="separator" 23

role="slider" 23

role="spinbutton" 23

role="status" 24

role="switch" 24

role="tab" 24

role="table" 24

role="tablist" 24

role="tabpanel" 25

role="textbox" 25

role="timer" 25

role="toolbar" 25

role="tooltip" 25

role="tree" 26

role="treegrid" 26

role="treeitem" 26

Chapter 4: Canvas 28

Parameters 28

Remarks 28

Examples 28

Basic Example 28
Drawing two rectangles on a 28

Chapter 5: Character Entities 30

Examples 30

Common Special Characters 30

Character Entities in HTML 30

Chapter 6: Classes and IDs 32

Introduction 32

Syntax 32

Parameters 32

Remarks 32

Examples 32

Giving an element a class 32

Using classes in CSS 33

Giving an element an ID 34

Problems related to duplicated IDs 34

Acceptable Values 35

For an ID 35

For a Class 36

Important Note: How ID and Class values are treated outside of HTML 36

W3C References 37

Chapter 7: Comments 38

Introduction 38

Syntax 38

Remarks 38

Examples 38

Creating comments 38

Conditional comments for Internet Explorer 39

Downlevel-hidden 39

Downlevel-revealed 39

Commenting out whitespace between inline elements 40

Chapter 8: Content Languages 41

Syntax 41
Click here to download full PDF material

You might also like