File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,22 @@ Define a custom font. All modern browsers support WOFF2.
102
102
}
103
103
```
104
104
105
+ ## Font weights
106
+
107
+ Which font weight number belongs to which font weight name.
108
+
109
+ css | name
110
+ --- | ---
111
+ 100 | Thin
112
+ 300 | Light
113
+ 350 | Book
114
+ 400 (normal)| Normal/Regular
115
+ 500 | Medium
116
+ 600 | Semi Bold/Demi Bold
117
+ 700 (bold)| Bold
118
+ 800 | Extra Bold/Ultra Bold
119
+ 900 | Black/Heavy
120
+
105
121
## Responsive design
106
122
107
123
Every webpage should look good on desktop, tablet and mobile.
@@ -151,7 +167,7 @@ Don't wait for possible double click.
151
167
152
168
## Click through top element
153
169
154
- Make a top level element behave it's not there.
170
+ Make a top level element behave like it's not there.
155
171
156
172
``` css
157
173
.box {
@@ -187,7 +203,7 @@ button:focus-visible {
187
203
188
204
## Provide "alt" to background image
189
205
190
- Note: make sure to keep the element empty .
206
+ Note: don't include text in this element.
191
207
192
208
``` html
193
209
<div class =" background-image" role =" img" aria-label =" Alt text" ></div >
@@ -198,7 +214,7 @@ Note: make sure to keep the element empty.
198
214
Remove the semantics from an element
199
215
200
216
``` html
201
- <h2 role =presentation >Large text, but not a heading</h2 >
217
+ <h2 role =" presentation" >Large text, but not a heading</h2 >
202
218
```
203
219
204
220
## Toggle buttons
You can’t perform that action at this time.
0 commit comments