all repos — h3rald @ fff94e5604bd922aefe055306d69d269edfcd4ae

The source code of the h3rald.com web site.

contents/subweb/subhtml.md

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
-----
id: subhtml 
title: SubHTML Specification
content-type: page
-----

### Document Structure and Metadata

A SubHTML document MUST be structured using respecting the following tag hierarchy:

```html
<!DOCTYPE html>
<html>
  <head>
    <title>A SubWeb web site</title>
    <base href="/" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/styles.css">
  </head>
  <body>
  </body>
</html>
```

#### DOCTYPE

A document MUST have the following DOCTYPE declaration before the `<html>` element:

```html
<!DOCTYPE html>
```

#### Comments

A document MAY contain comments delimited by `<!--` and `-->`, which can be placed within any elements and span multiple lines.

#### html

A document MUST be wrapped in a single `<html>` element.

This element MAY have a `lang` attribute defining the main language of the document as defined by [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646).

#### head

This element defines the header of the document and MAY contain metadata and links to external stylesheets.

#### base

#### title

#### meta

#### link

#### body

### Block Elements

#### blockquote

#### br

#### div

#### h1-h6

#### hr

#### p

#### pre

#### small

#### sub

#### sup


### Inline Elements

#### a

#### code

#### em

#### span

#### strong


### Lists

#### dd

#### dl

#### dt

#### li

#### ol

#### ul


### Forms

#### button

#### fieldset

#### form

#### input 

#### label

#### optgroup

#### option

#### select 

#### textarea


### Tables

#### table

#### td

#### th

#### tr

### Common Attributes

#### accesskey 

Specifies a keyboard shortcut to activate or focus an element.

#### aria-* 

Defines accessibility properties and states for assistive technologies.

#### class 

Specifies one or more CSS class names for styling the element.

#### dir 

Sets the text direction (left-to-right, right-to-left, or auto).

#### id 

Defines a unique identifier for the element within the document.

#### lang 

Specifies the primary language of the element’s content.

#### role 

Defines the element’s semantic role for accessibility.

#### tabindex 

Controls keyboard navigation order and focusability.

#### title 

Provides advisory information displayed as a tooltip.