You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-33Lines changed: 59 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -26,59 +26,85 @@ Recipes to give to your computer to “cook” up some awesome things for you on
26
26
Please set up the following:
27
27
* A web browser to see what we're working on as others see it (Recommend Google Chrome: [chrome.google.com] (chrome.google.com))
28
28
* A text editor to modify your files (Recommend the Atom text editor: [atom.io](Atom.io))
29
-
* Download the tutorial files on this page within the zip file
29
+
* Download the tutorial files on this page within the zip file
30
+
31
+
###### Download the files for this class:
32
+
- Go to https://github.com/GalvanizeOpenSource/Learn-To-Code-HTML-CSS
33
+
- Click on the button on the right-hand side that says "Download ZIP"
34
+
- Go to your downloads folder and double click on the .zip file to unzip it
35
+
- IMPORTANT! leave all the individual files in the downloaded folder (if you would like to move it out of the downloads folder move the entire folder, not individual items)
36
+
- From Atom: file > open, select the folder and then click "Open"
37
+
- From Atom: if the file tree does not appear on the left hand View > Toggle Tree View -- this will show you the entire folder within Atom
38
+
-*Now if you already know some of what we're talking about,* you're all set to poke around in the files -- index.html and CSS/style.css are the two files we will using.
39
+
30
40
31
41
Patience! Setting up your computer takes time and can be tricky, especially across platforms.
32
42
33
43
Once you're ready, you can move onto the next lesson.
34
44
35
45
## H.T.M.L. - "the building blocks of the internet"
36
46
37
-
## Download the class files
38
-
- Go to https://github.com/GalvanizeOpenSource/Learn-To-Code-Week-1
39
-
- Click on the button on the right-hand side that says "Download ZIP"
40
-
- Go to your downloads folder and double click on the .zip file to unzip it
41
-
- IMPORTANT! leave all the individual files in the downloaded folder (if you would like to move it out of the downloads folder move the entire folder, not individual items)
42
-
- From atom file > open, select the folder and then click open
43
-
- From atom if the file tree does not appear on the left hand View > Toggle Tree View -- this will show you the entire folder within atom
47
+
Hyper Text Markup Language, or HTML, is the most elemental language of the internet. Everything you see within your web browser is an interpretation of HTML in some form of other, and it is essential to learn in all web development.
44
48
45
-
Now if you already know some of what we're talking about you're all set to poke around in the files -- index.html and style.css are the two files we will be making changes to later.
49
+
The syntax of most HTML is as follows:
50
+
*`<Tags>` - code that wraps around the content of HTML to designate a particular effect, sometimes inherent to the tag.
51
+
*`Attributes=""` - code inserted into tags to implement a particular effect that is external to the tag.
52
+
* Elements - the combined syntax of tags, attributes, and elements.
46
53
47
-
## What is git?
48
-
Git is a piece of software that allows you to edit and collaborate on projects
49
-
regardless of your teams location. With Git, you and your team can all be working
50
-
on the same codebase without having to worry about who's doing what in which order.
54
+
```
55
+
e.g. Element = <tag attribute=”blahblah”>content content</tag>
56
+
```
51
57
58
+
#### HTML Tags:
59
+
Tags are used to mark up the beginning and end of an HTML element.
52
60
53
-
## Overview of HTML
54
-
- tags
55
-
- elements
56
-
- attributes
61
+
Almost everything in HTML needs to start and end with a tag
62
+
Everything is wrapped like layers of an onionm `<opened>` and `</closed>`
63
+
e.g. `<div>”Hello!”</div>`
64
+
Note: not every tag is like this!
57
65
58
-
####HTML tags:
59
-
Tags are used to mark up the beginning and end of an HTML element.
66
+
*Common Tags:*
67
+
`<html></html>` designates document as HTML
68
+
`<div></div>` notes a block element in the page
69
+
`<a></a>` anchor, activates a link in the page
70
+
`<head></head>` contains meta information
71
+
`<body></body>` contains browser information
72
+
`<span></span>` notes an inline element
73
+
74
+
Irregular Tags:
75
+
-`<img />` creates an image in the page
76
+
-`<br />` creates a big break in the page
77
+
-`<hr />` creates a horizontal line
78
+
-`<link />` connects this to related documents
79
+
-`<input />` creates an input field
80
+
81
+
#### HTML Attributes:
60
82
61
-
```html
62
-
<div></div>
63
-
```
64
83
65
-
####HTML elements:
84
+
85
+
#### HTML Elements:
66
86
An element in HTML represents some kind of structure, generally and element
67
-
consists of a start tag, content, and an end tag.
87
+
consists of a start tag, perhaps some attributes, some content, and an end tag.
68
88
69
89
```html
70
90
<p>This is an element, it consists of p tags and content.</p>
71
91
```
72
92
73
-
####HTML attributes:
74
-
HTML attributes generally appear as name-value pairs. The most common attributes
75
-
are
76
-
- id "id is used on only a single element"
77
-
- class "class can be used on multiple elements"
78
-
- src "provides the location of an asset that element needs"
79
-
- href "specifies a link destination"
80
-
81
-
93
+
#### HTML attributes:
94
+
HTML attributes inform the browser on what to do with a tagged piece of content.
95
+
Attributes generally appear as name-value pairs.
96
+
```
97
+
<p class="foo">This is the content of an element with class 'foo'.</p>
98
+
```
99
+
The most common attributes are:
100
+
- id="" - id is used on only a single element"
101
+
- class="" - class can be used on multiple elements"
102
+
- href=”” - hyperlink reference to an internal or external link
103
+
- src=”” - source file to an image, video, etc.
104
+
- style=”” - add some color, font, margins, etc.
105
+
^ There’s a MUCH better way to do this via CSS - more on that later!
106
+
107
+
How do we check elements for whether they're talking to the browser? Use the **inspect element** feature!
0 commit comments