--- layout: "../layouts/BlogPost.astro" title: "HTML+CSS Tutorial, Part 2" slug: html-css-part-2 description: "This is part 2 of a two-part tutorial for beginners as an introduction to HTML and CSS." added: "Feb 10 2014" tags: [technical, advice] --- ### What This is Part 2 of this tutorial, where we start from the very beginning of HTML and CSS. You don't need to know anything about HTML and CSS or anything about code to start. [You can find Part 1 here.](http://cassidoo.github.io/html/css/tutorial/2014/02/10/html-css-tutorial/) I'll included some tutorial files for you to play with and check out here: [HTML+CSS Tutorial Files](https://github.com/cassidoo/HTML-CSS-Tutorial/archive/master.zip) ### When 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. ### Where On a computer. Here. I have this tutorial hosted on [my GitHub account](https://github.com/cassidoo/HTML-CSS-Tutorial) if you'd like to look at it there, or if you'd like to suggest improvements! ### Why 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. ## Table of Contents - HTML (this half is in a separate post, for your readability, because I care) - Editors - Tag Structure - Text Structure - Links - Other tags - Images - Line Breaks - Tables - Making Things Gorgeous The Wrong Way - Colors - Width and Height - Borders - Text Styles - The `
` tag - Putting it all together so far - CSS - Classes and IDs and other Segregation - Classes - IDs - Other Segregation - The `` tag - The `` tags on our HTML page (hint: open style3.html in the **3 - Styles** folder). 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. Check out style3.html to see the classes I added to the `
` tags on the page. When you add a class, the user doesn't see it. But, you can style specific classes to do what you want, instead of having all `
` tags be the same. How about we style one of the classes specifically? It's simple. Just take the class name you made up (I'll use the `poemtitle` class for my example) and add a period `.` in front of it to select it in CSS, like so: .poemtitle { } And there you have it! Even though you might have different styles for your paragraphs, you can style the ones of class `poemtitle` individually. For this example, let's make all paragraphs with the font family Arial, the `poemtitle`s font weight `bolder`, the `author`s the color `#555555`, and the `poem`s in `italic`. Try doing it on your own if you can (just put your code in the given `