-
Notifications
You must be signed in to change notification settings - Fork 0
/
exetest4.html
125 lines (103 loc) · 4.34 KB
/
exetest4.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Tuomas Talkio">
<title>Let's Learn Flex Box</title>
<link href="CSS/style2.css" rel="stylesheet" type="text/css">
<style>
body {
margin: 0;
}
header, footer {
background: purple;
height: 100px;
}
h1 {
text-align: center;
color: white;
line-height: 100px;
margin: 0;
}
article {
padding: 10px;
margin: 10px;
background: aqua;
}
</style>
</head>
<body>
<header>
<h1>Flex Box Examples </h1>
</header>
<section>
<article>
<h2>What is HTML?</h2>
<p>
Hypertext Markup Language (HTML) is the standard markup language for
documents that are designed to be displayed in a web browser. HTML is not a programming language.
It is a markup language that tells browser how to structure a web page. HTML is made up of sereis of elements such as a piece of text, a pragraph,
list, table, links or forms.
</p>
</article>
<article>
<h2>HTML Elements</h2>
<p>
As in the above example, html document consists of a tree of elements and text.
Each element starts with a tag and ends with a tag.
Tags have to be nested such that they are completely within each other without overlapping .
</p>
</article>
<article>
<h2>Block Level Elements</h2>
<p>
Block-level elements form a visible block on a page. A block-level element appears on a new line
following the content that precedes it. Any content that follows a block-level element also
appears on a new line. Block-level elements are usually structural elements on the page.
For example, a block-level element might represent headings, paragraphs, lists, navigation
menus, or footers. A block-level element wouldn't
be nested inside an inline element, but it might be nested inside another block-level element.
</p>
</article>
</section>
<div class="flexContainer">
<article>
<h2>Block Level Elements</h2>
<p>
Block-level elements form a visible block on a page. A block-level element appears on a new line
following the content that precedes it. Any content that follows a block-level element also
appears on a new line. Block-level elements are usually structural elements on the page.
For example, a block-level element might represent headings, paragraphs, lists, navigation
menus, or footers. A block-level element wouldn't
be nested inside an inline element, but it might be nested inside another block-level element.
</p>
</article>
</div>
<div class="flexGrowContainer">
<article style="flex:4;">
<h2>HTML Elements</h2>
<p>
As in the above example, html document consists of a tree of elements and text.
Each element starts with a tag and ends with a tag.
Tags have to be nested such that they are completely within each other without overlapping .
</p>
</article>
<article style="flex:1;">
<h2>Block Level Elements</h2>
<p>
Block-level elements form a visible block on a page. A block-level element appears on a new line
following the content that precedes it. Any content that follows a block-level element also
appears on a new line. Block-level elements are usually structural elements on the page.
For example, a block-level element might represent headings, paragraphs, lists, navigation
menus, or footers. A block-level element wouldn't
be nested inside an inline element, but it might be nested inside another block-level element.
</p>
</article>
</div>
<footer>
<h1>Learning Flex @ 2022</h1>
</footer>
</body>
</html>