Repository navigation
Expand file tree
/
Copy pathHTML.html
More file actions
281 lines (265 loc) · 13 KB
/
Copy pathHTML.html
File metadata and controls
281 lines (265 loc) · 13 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121942481-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-121942481-1');
</script>
<title>Introduction to HTML</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<link rel="stylesheet" href="Styles/style.css" type="">
<!--
<body style="background-image:url('images/banner-home.fc70d7f4.jpg')">
-->
<body style="background-color:rgb(184, 68, 230)">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.html">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="getting_started.html">Getting Started</a>
</li>
<li class="nav-item">
<a class="nav-link" href="HTML.html">HTML</a>
</li>
<li class="nav-item">
<a class="nav-link" href="CSS.html">CSS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Version_Control.html">Version Control</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Bootstrap.html">Bootstrap</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Javascript.html">Javascript</a>
</li>
<li class="nav-item">
<a class="nav-link" href="jQuery.html">jQuery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Analytics.html">Analytics</a>
</li>
</ul>
</div>
</nav>
<!-- end of navigation -->
<div class='jumbotron'>
<div class='container'>
<div class='row'>
<div class='col-sm-1'>
<br>
</div>
<div class='col-sm-2'>
<a href="https://techreturners.com/">
<img src="images/TR_Logo.png" ; alt="Tech Returners Logo" style="width:182px; height:27px">
<p style="color: white; font-size: 1vw">Empowering into Tech</p>
</a>
</div>
<div class='col-sm-9'>
<br>
</div>
<div class='col-sm-12'>
<h1 class='heading1'>Tech Returners</h1>
</div>
<div class='col-sm-12'>
<h2 class='heading2'>Introduction to HTML</h2>
</div>
<div class='col-sm-12'>
<br>
</div>
<div class='col-sm-1'>
<br>
</div>
<div class='col-sm-5'>
<div class='picture'>
<a href="getting_started.html">
<img src="images/banner-home.fc70d7f4.jpg" alt="TR Classroom image" style="width:242px; height:146px" ;>
<div class="centered">
<h1>Back</h1>
</div>
</a>
</div>
</div>
<div class='col-sm-6'>
<div class='picture'>
<a href="CSS.html">
<img src="images/banner-home.fc70d7f4.jpg" alt="TR Classroom image" style="width:242px; height:146px" ;>
<div class="centered">
<h1>Next</h1>
</div>
</a>
</div>
</div>
<div class='col-sm-12'>
<br>
</div>
<div class='col-sm-12'>
<h2 class='heading2'>Creating an HTML page</h2>
</div>
<div class='col-sm-12'>
<h3>
<ul>
<li>Task 1</li>
<ul>
<li>Create a folder called techreturners</li>
<li>Inside your techreturners folder create another folder called first_site</li>
<li>Open your text editor (VS Code that you downloaded from https://code.visualstudio.com)</li>
<li>Navigate to the first_site folder</li>
<li>Create a file called index.html</li>
<li>Write
<code class='whitetext2'><h1>Hello</h1></code>
</li>
<li>Save file</li>
<li>Open index.html in Chrome</li>
</ul>
</ul>
This is your first line of HTML! It has an open tag and a close tag.
<br>They tell your browser to display the text in-between as a heading.
</h3>
</div>
<div class='col-sm-12'>
<h2 class='heading2'>HTML basics - elements, tags and attributes</h2>
</div>
<div class='col-sm-12'>
<h3>
<ul>
<li>HTML uses a predefined set of elements for different types of content; they define the semantic
value (or meaning) of their content.</li>
<li>Elements include two matching tags and everything in between.</li>
<li>For example, the "<p>" element indicates a paragraph; the "<img>" element indicates an
image.
</li>
<li>HTML attaches special meaning to anything that starts with the less-than sign ("<") and ends
with the greater-than sign (">"). Such markup is called a tag.</li>
<li>The start tag may contain additional information, also known as an attribute.
<br>Attributes usually consist of 2 parts, its name and corresponding value.</li>
<li>In the example below, the attribute name is “class”, and the class of the div is “main”.
<code class='whitetext2'><br><div class="main"></code>
</li>
</ul>
</h3>
</div>
<div class='col-sm-12'>
<h2 class='heading2'>Good code and html layout</h2>
</div>
<div class='col-sm-12'>
<h3>
<ul>
<li>To write good code, you must properly nest start and closing tags, that is, write close tags
in the opposite order from the start tags.</li>
<li>Every html document requires this layout
<br>
<a href="https://www.w3schools.com/tags/tag_doctype.asp" style="color:white">
https://www.w3schools.com/tags/tag_doctype.asp</a>
</li>
<li>The !DOCTYPE tells you what version of html you’re using (html5, html4 ...)
<br> With html5 (latest) it’s simple - you just write html
</li>
<li>Things within the <head>...</head> are used to provide info about the page</li>
<li>Only things within the <body>...</body> tags are displayed on the page</li>
</ul>
</h3>
</div>
<div class='col-sm-12'>
<h3>
<ul>
<li>Task 2</li>
<ul>
<li>Add in HTML doctype declaration to your index.html file</li>
<li>Update title</li>
<li>Add some elements to the body of the file</li>
<li>Save and refresh Chrome to see your changes</li>
</ul>
</ul>
</h3>
</div>
<div class='col-sm-12'>
<h2 class='heading2'>Additional Resources</h2>
</div>
<div class='col-sm-12'>
<h3>
<ul>
<li>
<a href="https://www.w3schools.com/html/html_intro.asp" class='whitetext2'>
https://www.w3schools.com/html/html_intro.asp</a>
</li>
<a href="https://www.w3schools.com/html/html_examples.asp" class='whitetext2'>
https://www.w3schools.com/html/html_examples.asp</a>
<br>HTML Examples
<br>Well organized and easy to understand Web building tutorials with lots of examples of how to
use HTML, CSS, JavaScript, SQL, PHP, and XML.
<li>
<a href="https://www.codecademy.com/learn/learn-html" class='whitetext2'>
https://www.codecademy.com/learn/learn-html</a>
</li>
<li>
<a href="https://www.sololearn.com/" class='whitetext2'>
https://www.sololearn.com/</a>
</li>
</ul>
</h3>
</div>
<div class='col-sm-12'>
<br>
</div>
<div class='col-sm-12'>
<h2 class='heading2'> We now move on to explain about Style Sheets (CSS)
<br> Click the link Below</h2>
</div>
<div class='col-sm-12'>
<br>
</div>
<div class='col-sm-4'>
<br>
</div>
<div class='col-sm-4'>
<div class='picture'>
<a href="CSS.html">
<img src="images/banner-home.fc70d7f4.jpg" alt="TR Classroom image" style="width:242px; height:146px" ;>
<div class="centered">
<h1>CSS</h1>
</div>
</a>
</div>
</div>
<div class='col-sm-4'>
<br>
</div>
<div class='col-sm-12'>
<br>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>
<!-- © CookieMonster | <a href="https://antony-cooke.github.io/ChesterBL/</a> -->
</html>