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: sites/en/frontend/HTML_attributes.step
+3-4
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ steps do
83
83
<li>Soccer</li>
84
84
<li>Programming</li>
85
85
</ul>
86
-
<p>I hear RailsBridge needs volunteers, should I volunteer!?!</p>
86
+
<p>I hear RailsBridge needs volunteers, should I volunteer? :)</p>
87
87
HTML
88
88
end
89
89
@@ -98,10 +98,10 @@ HTML
98
98
<li>Soccer</li>
99
99
<li>Programming</li>
100
100
</ul>
101
-
<p>I hear RailsBridge needs volunteers, should I volunteer!?!</p>
101
+
<p>I hear RailsBridge needs volunteers, should I volunteer? :)</p>
102
102
HTML
103
103
message "Refresh the page in the browser. You should see the new paragraphs you added, but no styling changes."
104
-
message "Many HTML attributes, like classes and ids, don't directly convey visual information. Your site will look the exact same until we use the class to add CSS styling."
104
+
message "Many HTML attributes, like classes and ids, don't convey visual information. Your site will look the exact same until we use the class to add CSS styling."
Copy file name to clipboardExpand all lines: sites/en/frontend/HTML_structure.step
+7-11
Original file line number
Diff line number
Diff line change
@@ -28,23 +28,19 @@ The `<html>` encloses all the rest of your page and states "Here is my HTML!"
28
28
<!-- Important invisible details will go here! -->
29
29
</head>
30
30
<body>
31
-
Actual Visible Content
31
+
Visible Content
32
32
</body>
33
33
</html>
34
34
HTML
35
35
message <<-MARKDOWN
36
36
37
37
### The Head
38
38
39
-
The `head` contains information that is not displayed in your browser. It has metadata tags that can tell a search engine or another program more about the file, like who wrote it or what keywords are relevant, such as:
39
+
The `head` contains information that is not displayed in your browser. It has metadata (data about data) tags that can tell a search engine or another program more about the file, like who wrote it or what keywords are relevant, such as:
40
40
41
-
What language or character set you're using: `<meta charset="utf-8">`
42
-
43
-
What the page title should be: `<title>HTML!</title>`
44
-
45
-
What CSS and JavaScript files to include (and where they are):
46
-
47
-
`<link rel="stylesheet" href="style.css">`
41
+
* What language or character set you're using: `<meta charset="utf-8">`
42
+
* What the page title should be: `<title>HTML!</title>`
43
+
* What CSS and JavaScript files to include (and where they are): `<link rel="stylesheet" href="style.css">`
48
44
49
45
MARKDOWN
50
46
source_code :html, <<HTML
@@ -65,7 +61,7 @@ HTML
65
61
66
62
### The Body
67
63
68
-
The Body contains the actual content of your file, the things you'll want your users
64
+
The body contains the actual content of your file, the things you'll want your users
69
65
to be able to see, read, or interact with!
70
66
71
67
MARKDOWN
@@ -76,7 +72,7 @@ steps do
76
72
77
73
step do
78
74
message <<-MARKDOWN
79
-
Let's add the doctype, HTML, head, and body tags to your file. It should look something like this:
75
+
Let's add the doctype, HTML, head, and body tags to your hello.html file. It should look something like this:
Copy file name to clipboardExpand all lines: sites/en/frontend/HTML_tags.step
+16-16
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ overview do
12
12
13
13
Tags convey meaning. And in order to display your content well, everything should be inside of a tag, not just words you want emphasized. So let's use the paragraph tag `<p>` and the header 1 tag `<h1>`.
14
14
15
-
You'll notice that even if you put in extra lines and spaces, HTML will treat any number of
15
+
You'll notice that even if you put in extra lines and spaces, browsers will treat any number of
16
16
new line or space characters like there's just one space there. When you're getting started
17
17
with HTML, this can seem like a pain, because you have to type
18
18
MARKDOWN
@@ -60,7 +60,7 @@ My name is Rachel.
60
60
end
61
61
62
62
step do
63
-
message "Even though we put in some blank lines, the browser ignored them. So we'll have to use tags to break up our content."
63
+
message "The browser ignored the new lines and the blank line because we didn't use any tags. Let's use some to break up our content."
64
64
message "Update your HTML with an `h1` tag and a `p` tag:"
65
65
66
66
source_code :html, <<-HTML
@@ -121,7 +121,7 @@ are a ton of other tags you might use:
121
121
td "A link (the 'a' stands for Anchor)."
122
122
}
123
123
tr {
124
-
td "h1-h6"
124
+
td "h1 to h6"
125
125
td "Various headers, h1 is the most important, h6 the least."
126
126
}
127
127
tr {
@@ -138,7 +138,7 @@ are a ton of other tags you might use:
138
138
}
139
139
tr {
140
140
td "table, tr, td"
141
-
td "You can make tables (like this one) with table rows and data cells."
141
+
td "Tables (like this one) with table rows and data cells."
142
142
}
143
143
tr {
144
144
td "form"
@@ -150,7 +150,7 @@ are a ton of other tags you might use:
150
150
}
151
151
tr {
152
152
td "div"
153
-
td "A section marker that doesn't do anything specific to the contents itself, but does make a new line after. (More on this later.)"
153
+
td "A section marker that doesn't do anything specific to the contents itself, but does make a new line after. (a 'division'. More on this later)"
154
154
}
155
155
tr {
156
156
td "span"
@@ -160,7 +160,7 @@ are a ton of other tags you might use:
160
160
161
161
message <<-MARKDOWN
162
162
163
-
And HTML5 introduced lots of new HTML tags to make the HTML more *semantic*, meaning the tags should describe the content they describe. Some of the new elements introduced by HTML5 include:
163
+
HTML5 introduced lots of new tags to make the HTML more *semantic*, meaning the tags should describe the content they describe. Some of the new elements introduced by HTML5 include:
164
164
165
165
MARKDOWN
166
166
@@ -171,43 +171,43 @@ are a ton of other tags you might use:
171
171
}
172
172
tr {
173
173
td "section"
174
-
td "A section of a document."
174
+
td "A section of a document: a thematic grouping of content."
175
175
}
176
176
tr {
177
177
td "nav"
178
-
td "A navigation section."
178
+
td "A navigation section, containing links to other pages or to parts within the current page."
179
179
}
180
180
tr {
181
181
td "header"
182
-
td "The header for a page. (This is different from the head element, which contains metadata about the page!)."
182
+
td "The header for a page or section of a page. (This is different from the head element, which contains metadata about the page!)."
183
183
}
184
184
tr {
185
185
td "footer"
186
-
td "The footer for a page."
186
+
td "The footer for a page or section of a page."
187
187
}
188
188
tr {
189
189
td "main"
190
-
td "The important content on a page."
190
+
td "The main content of a page."
191
191
}
192
192
tr{
193
193
td "aside"
194
-
td "Content not essential to the main content."
194
+
td "Content that's related to the main content, but could be considered separate from it."
195
195
}
196
196
end
197
197
198
198
message <<-MARKDOWN
199
199
200
-
Don't try to memorize all the tags! You can always look them up on sites like:
200
+
You don't need to memorize all the tags! You can always look them up on sites like:
What happens if you change the `<ul>` in your **hello.html** to `<ol>`? (Don't forget to change the closing tag, too.)
209
209
210
-
Can you link your favorite things to their respective Wikipedia pages? Here's an example link for you: `<a href="http://en.wikipedia.org/wiki/Ruby_(programming_language)">Ruby</a>`
210
+
Can you link your favorite things to their Wikipedia pages? Here's an example link for you: `<a href="http://en.wikipedia.org/wiki/Ruby_(programming_language)">Ruby</a>`
211
211
212
212
What are all the individual parts of the code to add a link?
message "Before the next step, you could try deploying your page to GitHub! If you haven't used Git or GitHub before, you might prefer to do this later."
5
-
link 'deploying_to_github_pages'
4
+
message "Before the next step, you could try deploying (sending your code) your page to GitHub! If you haven't used Git or GitHub before, **it's okay to do this later**."
Copy file name to clipboardExpand all lines: sites/en/frontend/add_more_elements.step
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
goals do
2
-
message "Now we'll switch from simple steps to doing **challenges**. There will still be something to do at each step, but it will take some figuring out to do correctly. (If you get stuck, you can still ask a TA or instructor for hints.) You will:"
2
+
message "Now we'll switch from simple steps to doing **challenges**. There will still be something to do at each step, but it will take some figuring out to do correctly. If you get stuck, ask a volunteer for hints. You will:"
3
3
goal "Fill in more content"
4
4
goal "Add an image tag"
5
5
goal "Use two different kinds of anchor tags"
@@ -60,6 +60,6 @@ Now that you know the basics of working with HTML, the trickiest part is remembe
Copy file name to clipboardExpand all lines: sites/en/frontend/basic_CSS.step
+6-6
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ overview do
7
7
message <<-MARKDOWN
8
8
## What is CSS?
9
9
10
-
CSS stands for __C__ascading __S__tyle__s__heets. It's a language for creating **rules** that
10
+
CSS stands for *C*ascading *S*tyle*s*heets. It's a language for creating **rules** that
11
11
can **select** various elements on the page and change their **visual properties**.
12
12
13
-
* __C__ascading - this is how the browser determines the correct style rules to apply to
13
+
* *C*ascading - this is how the browser determines the correct style rules to apply to
14
14
each element on the page. As we'll see, CSS has many ways to match rules to elements, and
15
15
some of those ways count for more than others. The browser allows more important rules to
16
16
_cascade_ over less important ones.
17
17
18
-
* __S__tyle__s__heets - CSS files are called 'stylesheets' because they are separate documents - their
18
+
* *S*tyle*s*heets - CSS files are called 'stylesheets' because they are separate documents - their
19
19
file type is .css - that only deal with styling information. We add special tags in our HTML files to
20
20
link them to our stylesheets.
21
21
@@ -40,7 +40,7 @@ MARKDOWN
40
40
message <<-MARKDOWN
41
41
## CSS Rules Are Made of a Selector and Attributes
42
42
43
-
The **selector** is the first part of a CSS rule - it tells the browser how to find, or _select_, the element we want to style.
43
+
The **selector** is the first part of a CSS rule - it tells the browser how to find, or *select*, the element we want to style.
44
44
On this page, we'll use `h1` and `p` as our selectors, which match the `h1` and `p` elements in our HTML.
45
45
46
46
<img src='img/css.png'>
@@ -112,9 +112,9 @@ explanation do
112
112
113
113
## CSS is super powerful
114
114
115
-
Here are two screen shots of the same HTML page, but on the right side, we've turned off all the CSS. Almost all of the color and formatting disappear, and the code snippets and buttons that were obvious with CSS styles now just look like text.
115
+
Here are two screen shots of the same HTML page. On the left is just the HTML. On the right side, we've added lots of CSS. Almost all of the color and formatting are applied using CSS, and the code snippets and buttons now look great.
Copy file name to clipboardExpand all lines: sites/en/frontend/basic_javascript.step
+3-3
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ HTML
18
18
end
19
19
20
20
step do
21
-
message "Type in this short script. Javascript is case-specific (it treats `mynewname` and `myNewName` as two different things) and picky about syntax, so if your script doesn't run, check carefully for typos."
21
+
message "Type in this short script. Javascript is case-specific (it treats `mynewname` and `myNewName` as two different things) and picky about syntax. If your script doesn't run, check carefully for typos."
22
22
23
23
source_code :html, <<HTML
24
24
<script>
@@ -50,11 +50,11 @@ explanation do
50
50
51
51
message <<-MARKDOWN
52
52
53
-
## Wherefore JavaScript?
53
+
## Why JavaScript?
54
54
55
55
Javascript allows you to make your pages interactive. You can use it to build
56
56
anything from a simple animation to a giant web application like Twitter
57
-
or Github. It gives you total control to add, remove, or modify content you've
57
+
or GitHub. It gives you total control to add, remove, or modify content you've
58
58
made with HTML. You can also use it to change styles and add or remove
0 commit comments