blob: 604dd3542ab0e0f01c23d778cd1113cea0ae159e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
tags:
- html
- web
---
HyperText Markup Language.
Describes structure of documents on the web. Consists of elements, which is denoted by tags. An element is everything from the start tag to the end tag and in between. An element can contain other elements.
**Non-Replaced Elements** they contain and modify for example text, e.g `<p>` or `<em>`.
**Replaced Elements** they are replaced by objects such as a widget or image. Such as `<input>` or `<img>`.
- They have a default appearance
**Void Elements** cannot have nested elements. E.g `<input />`.
**Attributes** are key-value pairs on elements. Can also be boolean, then value not required: `<img ismap>`
Javascript object created for every element and section of text. **HTML DOM API** defines functionality to access and control each element.
[[Document structure]]
[[Semantic HTML]]
[[Attributes]]
---
https://web.dev/learn/html/welcome
|