Skip to content

Commit 78a87d6

Browse files
committed
Revised HTML section
1 parent 9b8f13e commit 78a87d6

File tree

1 file changed

+59
-33
lines changed

1 file changed

+59
-33
lines changed

README.md

Lines changed: 59 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,85 @@ Recipes to give to your computer to “cook” up some awesome things for you on
2626
Please set up the following:
2727
* A web browser to see what we're working on as others see it (Recommend Google Chrome: [chrome.google.com] (chrome.google.com))
2828
* 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+
3040

3141
Patience! Setting up your computer takes time and can be tricky, especially across platforms.
3242

3343
Once you're ready, you can move onto the next lesson.
3444

3545
## H.T.M.L. - "the building blocks of the internet"
3646

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.
4448

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.
4653

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+
```
5157

58+
#### HTML Tags:
59+
Tags are used to mark up the beginning and end of an HTML element.
5260

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!
5765

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:
6082

61-
```html
62-
<div></div>
63-
```
6483

65-
####HTML elements:
84+
85+
#### HTML Elements:
6686
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.
6888

6989
```html
7090
<p>This is an element, it consists of p tags and content.</p>
7191
```
7292

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!
82108

83109
## Overview of CSS
84110
- Specificity

0 commit comments

Comments
 (0)