Skip to content

Commit 09f373b

Browse files
authored
Merge pull request #2 from bryant1410/master
Fix broken headings in Markdown files
2 parents 75d8ec2 + a23d145 commit 09f373b

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

README.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
HTML+CSS Tutorial
22
=================
33

4-
###Who
4+
### Who
55

66
I'm Cassidy. I'm software engineer & developer evangelist at [Clarifai](http://clarifai.com), and I've been teaching myself HTML, CSS, and other web programming and scripting for over 10 years.
77
And I want to teach you now.
88
Because you're good looking.
99
And because it's useful.
1010

11-
###What
11+
### What
1212

1313
In this tutorial, we'll start from the very beginning. You don't need to know anything about HTML and CSS or anything about code to start. I'll include some tutorial files for you to play with and check out.
1414

15-
###When
15+
### When
1616

1717
Now. Or whenever. I'm not planning on taking this down anytime soon. But you are only limited by your own schedule. Or set free by it. Whatever.
1818

19-
###Where
19+
### Where
2020

2121
On a computer. Here.
2222

23-
###Why
23+
### Why
2424

2525
Because this stuff is important. Whether you're a business person formatting your emails, an aspiring web designer wanting to get your feet wet, or just someone who is interested and hasn't tried any sort of coding, scripting, or programming before, **HTML and CSS are an essential part** of your learning curve.
2626

27-
##Table of Contents
27+
## Table of Contents
2828
* [HTML](https://github.com/cassidoo/HTML-CSS-Tutorial#html-time-lets-go)
2929
* Editors
3030
* Tag Structure
@@ -65,9 +65,9 @@ Because this stuff is important. Whether you're a business person formatting yo
6565
* [Final Project!](https://github.com/cassidoo/HTML-CSS-Tutorial#final-project)
6666
* And now, the end is near
6767

68-
##HTML Time. Let's Go.
68+
## HTML Time. Let's Go.
6969

70-
###Editors
70+
### Editors
7171

7272
So the first thing you'll need is an editor to edit your jazz. There's tons of options out there.
7373

@@ -79,7 +79,7 @@ So the first thing you'll need is an editor to edit your jazz. There's tons of
7979

8080
There's a bunch of others [listed here](http://en.wikipedia.org/wiki/List_of_HTML_editors), I just listed the ones I've used and liked!
8181

82-
###HTML Tag Structure
82+
### HTML Tag Structure
8383

8484
Here is a barebones HTML page, about as simple as you can get. You can open it up in the **1 - Structure** folder in the file part1.html. If you were to open the file in your favorite browser (which you can do, go ahead), you'll see a plain webpage with the title "My Website" and the words, "Hello, World!" written on the page.
8585

@@ -118,7 +118,7 @@ Inside `<html>`, there are two elements: `<head>`and `<body>`. Contained in `<he
118118

119119
On the other side of the planet, we have `<body></body>`. Everything visible to the user is contained in these tags. Right now, all that consists of is "Hello, World!" Let's change that for fun. Replace "Hello, World!" with your own text in your favorite HTML editor, and then open the page in your browser. Neat!
120120

121-
###Structuring text
121+
### Structuring text
122122

123123
Let's get juicy. We're going to talk about some new tags for structuring your text. Because you're not going to want just one style of text throughout your whole website, right?
124124

@@ -132,7 +132,7 @@ Next, we have `<p>` tags. `<p>` adds a *paragraph* of text to our website, whic
132132

133133
And finally, we have `<ul>`. `<ul>` means a bulleted list (also known as an *unordered list*), where every `<li>` is an item in that list (called a *list item*). But what if you want a numbered list? You could change `<ul>` to `<ol>` (and don't forget its closing tag), it's that simple! `<ol>` is an *ordered list*, which has numbers instead of bullet points, and that is truly the only difference. Add some list items (`<li>`) to the list (make sure you stay inside the `<ul>` tags), and then change your `<ul>` tags to `<ol>`!
134134

135-
###Links
135+
### Links
136136

137137
Links are what makes the world/Internet go 'round. Seriously. So, let's learn about them.
138138

@@ -155,7 +155,7 @@ So, anyway, the attribute 'href' tells us where the link is going to go when the
155155

156156
Also, one thing you should note: Links don't have to be in `<p>` tags like I put above. You could put them in `<li>` tags in a list, `<h1>` tags for a linking header, or completely on their own!
157157

158-
####Adding links to other pages in your website
158+
#### Adding links to other pages in your website
159159
Let's just say you have a fully functioning website called fakewebsite.com. You have your homepage and your "Contact Us" page in the same directory or folder.
160160

161161
Normally when a beginner links to different pages on their website, they just make links that look like `<a href="http://www.fakewebsite.com/index.htmL">Home</a>` and `<a href="http://www.fakewebsite.com/contactus.htmL">Contact Us</a>`.
@@ -170,11 +170,11 @@ Paste this line of code into page1.html. Watch the magic happen.
170170

171171
Now, if you were to change your domain or location of your files, you don't have to change a thing. Boo yah.
172172

173-
###Other tags
173+
### Other tags
174174

175175
So, you can reference the links that I showed you before if you want to check out some jazzy stuff you can do with your page. There are some other ones though that you might want to see before we move on to cooler and bigger things.
176176

177-
####Images
177+
#### Images
178178
`<img>`. Let's just say you want to put an image on your website. This is probably a good tag to know.
179179
Add the following to page1.html:
180180

@@ -188,7 +188,7 @@ One attribute that might be good for you to remember for `<img>` tags is the `al
188188

189189
When you load the page in the browser, the image looks the same. But, if you roll your mouse over the image, you'll see some words appear! WOW. That's the `alt` attribute. It stands for the *alternate text* for an image, and it's used when a user can't view the image for whatever reason (using a screen reader, slow connection, error in the `src` attribute, etc.). Or, in the case of [XKCD](http://xkcd.com/), it's used to add more humor to the page (roll your mouse over all of the comics on the site, they always add another joke or two that a lot of people don't know about).
190190

191-
####Line breaks
191+
#### Line breaks
192192
Let's just say you want to keep all your content in one paragraph `<p>`, but you still want to break it up.
193193

194194
That's easy.
@@ -200,7 +200,7 @@ So, there's two special tags here, `<hr>` and `<br>`. They are *empty tags*, me
200200

201201
Try inserting these in between some of your `<p>` tags to try it out!
202202

203-
####Tables
203+
#### Tables
204204
Tables are really cool. They can also be a bit confusing. Open up tables.html (in the **2 - Tags** folder) in a browser to check out the example table I made for you there.
205205

206206
There's several tags for tables, but the essential ones are `<table>`, `<tr>`, `<th>`, and `<td>`. Look at tables.html in your editor.
@@ -281,13 +281,13 @@ One other fun thing you can try playing with are the `colspan` and `rowspan` att
281281

282282
You can also nest tables, but I won't get into that right now. If you want to play around with the code, try adding some `<tr>` and `<td>` tags inside your current `<td>` tags. MaGiCal ThInGs.
283283

284-
###Making Things Gorgeous The Wrong Way
284+
### Making Things Gorgeous The Wrong Way
285285

286286
So, your website right now looks pretty bland, and that's normal. But, we want a website that is hot, sexy, ravishing, and powerful. Yes, that's right, we want a website just like you.
287287

288288
So first, I will show you the wrong way to style your pages. You might ask why, but trust me, if you learn in this order, you'll understand HTML attributes a lot better, and then when you move on to CSS your mind will explode with joy. Explode.
289289

290-
####Colors
290+
#### Colors
291291

292292
Alrighty. Let's get frisky. Open up the **3 - Styles** folder and the file style1.html. You might notice that this file is pretty bland right now, but that's what we're gonna fix. Be patient, my grasshopper.
293293

@@ -314,7 +314,7 @@ Try adding colors to various tags on the page! You can make your `<h1>` the col
314314

315315
Now, you might see the syntax in your HTML journey where you actually have the `color` attribute, like `<p color="red">wut</p>`. Though this is technically allowed, please don't do this. Please. You'll be so much happier in the long run, I promise.
316316

317-
####Width and Height
317+
#### Width and Height
318318

319319
So, what if you want to make a picture or a paragraph a different size? Easy peasy.
320320

@@ -347,7 +347,7 @@ If you have more than one property that you want to style, for example both heig
347347

348348
Why is the syntax this funky? Well, that's because it's secretly CSS syntax. But we'll get into that more later.
349349

350-
####Borders
350+
#### Borders
351351

352352
What if we have a paragraph IN A BOX. That's right. Kind of like a table. But not. That'd be cool. Of course, there are plenty of other things that can have a border. Buttons (we'll get to those later), color blocks (also later), and images, and MORE can have them. Mmmhm.
353353

@@ -379,7 +379,7 @@ Let's mix it up a bit with different borders for you to check out. I'm just goi
379379
380380
Notice how I added `width` and `height` to a couple of them. We're getting incestuous with our stylings. Aww yeah.
381381

382-
####Text Styles
382+
#### Text Styles
383383

384384
Besides having header tags and colors, there are other text styles that you can use. What if you want bold text, or italics? Different sizes? Once again, the `style` attribute comes to the rescue.
385385

@@ -398,7 +398,7 @@ Browser time. You've now got some text in the font Arial, and it's italic! WOO
398398
The properties we used here are `font-family` and `font-style`. For the former, you can choose a lot of fonts, but you have to be careful. Not every computer has the same fonts. This is just my personal opinion: don't put something here besides Arial unless you've done some JavaScript magic. And because I'm assuming you don't know JavaScript, don't use this unless you're changing this to Arial. At least not yet. :)
399399
And for `font-style`, it can be `normal`, `oblique`, and `italic`. You can play with those now, it's pretty straightforward.
400400

401-
###The `<head>` Tag
401+
### The `<head>` Tag
402402

403403
Before we start going insane with how good you are at HTML, let's start looking at something that you haven't played with yet. The `<head>` tag.
404404

@@ -436,13 +436,13 @@ Add this after your description line, and stick your name in it! I think I got
436436

437437
And there you have it, a self-refreshing webpage. You're so good at this.
438438

439-
###Putting it all together so far
439+
### Putting it all together so far
440440

441441
Okay, you have a pretty solid understanding of stuff so far. I want you to take cooking.html, and make it shine.
442442
Resize the images so the page is more uniform. Add borders to them. Change the font styles and weights. Change the colors. Add some keywords in the metadata and change the title of the page.
443443
Using the information I've given you so far, you can make a pretty good looking site!
444444

445-
##CSS is magical, and now you're gonna learn it.
445+
## CSS is magical, and now you're gonna learn it.
446446

447447
So far, we've been making things pretty the wrong way. So, we're going to learn it the right way. So excited.
448448

@@ -508,11 +508,11 @@ You will always have your CSS in the syntax, `selector { property: value; proper
508508

509509
Try playing around with the CSS we have right now. Edit the colors, add some borders, change the font styles. Don't forget your semicolons!
510510

511-
###Classes and IDs and other Segregation
511+
### Classes and IDs and other Segregation
512512

513513
So, you have some of the CSS basics down already. You're so smart. It's really a simple language, once you know the basic syntax. So, now we'll get into more fancy stuff. What if you want to edit several tags differently?
514514

515-
####Classes
515+
#### Classes
516516

517517
Let's say that we have 8 `<p>` tags on our HTML page (hint: open style3.html in the **3 - Styles** folder).
518518
If we want to style each of these tags differently, we can use *classes*. A class is actually an HTML attribute that you can name whatever you want.
@@ -551,7 +551,7 @@ Gosh you're good at this. Go eat a cookie.
551551

552552
[Pausing here for cookie break]
553553

554-
####IDs
554+
#### IDs
555555

556556
Now, let's talk about IDs. They are very similar to classes. The only real difference between classes and IDs is that you can only have one of each ID. So, for example, if you have a special paragraph that you only want to style once, then you can stick in there the `id` attribute like so:
557557

@@ -566,11 +566,11 @@ When you want to style your IDs, you put a hashtag `#` before it in your CSS, li
566566

567567
Remember: You can only use an ID once. IDs are more helpful when you're controlling the element with JavaScript, not styling, but that's something for another day.
568568

569-
####Other Segregation
569+
#### Other Segregation
570570

571571
Let's say that you want to separate individual text in your paragraphs or sections on your page. Let's introduce 2 new tags: `<span>` and `<div>`.
572572

573-
#####The `<span>` tag
573+
##### The `<span>` tag
574574
The `<span>` tag is pretty invisible unless you style it. It's used to group *inline-elements* (so like a word in a paragraph), and it doesn't actually do anything unless you style or manipulate it with something else.
575575

576576
So, let's say you have a paragraph and you really want to emphasize some text within a paragraph without a line break or anything. In comes `<span>`. For example:
@@ -600,7 +600,7 @@ Wait a minute. Hold up. `p span`?? WHY THE SPACE? Calm yourself, I'll tell y
600600

601601
Make sense? I hope so. To sum up: `<span>` tags separate specific parts of paragraphs or other inline sections of a page. They do nothing otherwise. You can nest CSS if you want. Boom. Next.
602602

603-
#####The `<div>` tag
603+
##### The `<div>` tag
604604

605605
Alrighty. Go enjoy a beach vacation and then come back to this.
606606

@@ -700,7 +700,7 @@ Makes sense? I hope so. You're hot.
700700

701701
Okay, so if you open `homepage.html` in the browser, you see nothing. That's okay. Let's change that by learning a few new CSS properties!
702702

703-
######Background color
703+
###### Background color
704704

705705
One property that you will learn to know and love is `background-color`.
706706
It does exactly what you would expect it to: it sets the background color of the element it is styling!
@@ -742,7 +742,7 @@ Let's add some backgrounds.
742742
Save in your editor and now refresh in that browser! WOW. COLOR. Now, our site definitely isn't perfect yet.
743743
Let's throw some MORE new CSS properties at you!
744744

745-
######Floating
745+
###### Floating
746746

747747
One property that you will probably use fairly often is `float`. This is one of those properties that you will learn to both love and hate.
748748
It's kind of magical.
@@ -810,7 +810,7 @@ Let's make it so that your header and footer are always on the top and bottom of
810810

811811
Incoming, the `position` property.
812812

813-
######Positioning
813+
###### Positioning
814814

815815
The `position` property is pretty much exactly what one would expect a positioning property to do: It positions things.
816816

@@ -873,7 +873,7 @@ Why the heck is that happening?
873873

874874
I'll tell you.
875875

876-
######Margins and Padding
876+
###### Margins and Padding
877877

878878
![Alt](cpbm.jpg)
879879

@@ -1012,7 +1012,7 @@ The same goes for `padding`, you can also do `padding: 5px 10px 15px 0px;`, etc.
10121012
Now, with all that you've learned so far, you should probably make this a really great, functional website.
10131013
I'll teach you just one more thing, and then I'll set you free like a bird or something.
10141014

1015-
######Z-Index
1015+
###### Z-Index
10161016

10171017
The property `z-index` isn't one that you'll run into super often, but it's something that will help you in the long run.
10181018

@@ -1098,12 +1098,12 @@ But hey, that's a LOT of reusing code. Plus what if someone is trying to read y
10981098

10991099
Duh.
11001100

1101-
###The `<link>` Tag, Comments, and other Developer Joys
1101+
### The `<link>` Tag, Comments, and other Developer Joys
11021102

11031103
Let's just say you want to reuse your styles across your website on every page. It makes sense.
11041104
It'd be kind of annoying to have drastic changes on every page.
11051105

1106-
####The `<link>` tag
1106+
#### The `<link>` tag
11071107

11081108
That's where the `<link>` tag comes in! The `<link>` tag is an empty tag (like <br> and <img>), so it has no end tag, and it's used to link to external stylesheets!
11091109

@@ -1122,15 +1122,15 @@ And finally, `href`. You remember this one, I hope! It's just like our `<a>` t
11221122
Let's check out this `<link>` tag in action. Open up the **6 - Linking** folder and open home.html, and paste the `<link>` line above on the line below the `<title>` tags in the `<head>`. Voila! That's it. Refresh your browser and check out the magic. It should look just like what we made in the previous section!
11231123
Now, if you open the main.css file in your editor, you'll see that it's all the CSS you recognize and love, but there's no `<style>` tags. Those tags aren't needed when you are using a CSS file!
11241124

1125-
####Commenting
1125+
#### Commenting
11261126

11271127
Let's just say that you want to show off your code to someone, but they're not exactly sure what you're doing.
11281128

11291129
You can add comments!
11301130

11311131
*Comments* in your code are blocks of text that will not be read by the computer. Every computer language has them.
11321132

1133-
#####HTML Comments
1133+
##### HTML Comments
11341134

11351135
In HTML, a comment looks like this:
11361136

@@ -1140,7 +1140,7 @@ As you can see, it almost looks like a regular tag, with an opening `<!--` and a
11401140

11411141
Look inside the **7 - Project** folder, and open index.html. You'll see a few comments there. Notice how you can put them all on one line, or in a multi-line block! As long as you have a beginning `<!--` and end `-->`, you have total freedom with comments.
11421142

1143-
#####CSS Comments
1143+
##### CSS Comments
11441144

11451145
Don't worry, you can comment your CSS too!
11461146

@@ -1155,12 +1155,12 @@ And again, you can have single-line comments, and multi-line ones too.
11551155
Comments are great for keeping track of what you're doing, especially if a project you're working on spans over a period of time.
11561156
You can make notes for yourself to check later, or you could just tell someone who is reading your code that they are attractive.
11571157

1158-
####Other Developer Joys
1158+
#### Other Developer Joys
11591159

11601160
There's so many things that could go in this section for such a generic title. So, what am I going to tell you?
11611161
Well, I'm going to tell you what I *haven't* taught you so far.
11621162

1163-
#####Forms
1163+
##### Forms
11641164

11651165
A common thing you'll see on websites are forms, like textboxes, buttons, and checkboxes.
11661166
I didn't teach you these because you can't do things with them unless you know a bit more than beginner knowledge, which isn't the purpose of this tutorial.
@@ -1172,7 +1172,7 @@ If you're really dying to see a button, here you go:
11721172
And there you have it, a button on your website! If you actually want to know how to make the button or form do something, you'll need to know some JavaScript.
11731173
Until you do, here's more information on buttons: [W3Schools - HTML Forms](http://www.w3schools.com/tags/tag_form.asp)
11741174

1175-
#####HTML5 and CSS3
1175+
##### HTML5 and CSS3
11761176

11771177
If you've read anything about the internet and developing for it, you've probably heard some key words thrown around, and a couple of those key words are HTML5 and CSS3.
11781178
What are those, actually? Well, HTML5 is the latest standard for HTML. The previous HTML version came out in 1999, which is quite a while ago. Unless you're time traveling right now and you printed this out to read as you go.
@@ -1189,13 +1189,13 @@ If you want to read more about HTML5 and CSS3, check out some of the links below
11891189
* [HTML5 Rocks](http://www.html5rocks.com/)
11901190
* [Dive Into HTML5](http://diveintohtml5.info/)
11911191

1192-
#####How To Meet Ladies/Laddies (Get it? HTML Jokes are the best...)
1192+
##### How To Meet Ladies/Laddies (Get it? HTML Jokes are the best...)
11931193

11941194
Honestly I have nothing to put here I just like the joke that HTML stands for that.
11951195

11961196
I hope your HTML is spick and `<span>`. Heh.
11971197

1198-
##Final Project!
1198+
## Final Project!
11991199

12001200
Alrighty! So you've looked at the **7 - Project** folder a bit, but I haven't told you what that folder is for yet.
12011201

@@ -1219,7 +1219,7 @@ The best way to learn is by doing. Do as much as you can until you think you ha
12191219

12201220
And if you need help you can always come back and visit. :)
12211221

1222-
##And now, the end is near
1222+
## And now, the end is near
12231223

12241224
Actually, now the end is here.
12251225

0 commit comments

Comments
 (0)