-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML.txt
More file actions
74 lines (46 loc) · 2.19 KB
/
HTML.txt
File metadata and controls
74 lines (46 loc) · 2.19 KB
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
HTML - Hyper Text Markup Language
What is HTML?
HTML stands for Hyper Text Markup Language
HTML is the standard markup language for Web pages
HTML elements are the building blocks of HTML pages
HTML elements are represented by <> tags
HTML Attributes
HTML elements can have attributes
Attributes provide additional information about the element
Attributes come in name/value pairs like charset="utf-8"
HTML elements are the building blocks of HTML pages.
The <!DOCTYPE html> declaration defines this document to be HTML5
The <html> element is the root element of an HTML page
The lang attribute defines the language of the document
The <meta> element contains meta information about the document
The charset attribute defines the character set used in the document
The <title> element specifies a title for the document
The <body> element contains the visible page content
The <h1> element defines a large heading
The <p> element defines a paragraph
HTML Documents
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML Headings
HTML headings are defined with <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important.
HTML Paragraphs
HTML paragraphs are defined with <p> tags.
HTML Links
HTML links are defined with <a> tags.
HTML Images
HTML images are defined with <img> tags.
The source file (src), alternative text (alt), width, and height are provided as attributes.
HTML Buttons
HTML buttons are defined with <button> tags.
HTML Lists
HTML lists are defined with <ul> (unordered/bullet list) or <ol> (ordered/numbered list) tags, followed by <li> tags (list items).
HTML Tables
An HTML table is defined with a <table> tag.
Table rows are defined with <tr> tags.
Table headers are defined with <th> tags. (bold and centered by default).
Table cells (data) are defined with <td> tags.
Programming HTML
Every HTML element can have attributes.
For web development and programming, the most important attributes are id and class. These attributes are often used to address program based web page manipulations.