Html-Css Tutorial
Html-Css Tutorial
HTML stands for HyperText Markup Language. Hypertext means "text with links in it." Any
time you click on a word that brings you to a new webpage, you've clicked on hypertext!
A markup language is a programming language used to make text do more than just sit on a
page: it can turn text into images, links, tables, lists, and much more. HTML is the markup
language we'll be learning.
What makes webpages pretty? That's CSSCascading Style Sheets. Think of it like skin and
makeup that covers the bones of HTML. We'll learn HTML first, then worry about CSS in later
3. Basic terminology
To learn more HTML, we should learn how to talk about HTML. Already you have seen we use
<>s a lot.
1.
2.
3.
4.
You can think of tags as being like parentheses: whenever you open one, you should close it.
Tags also nest, so you should close them in the right order: the most recently opened tag should
be the first one closed, like in the example below.
<first tag><second tag>Some text!</second tag></first tag>
The last exercise taught us how to set up our HTML file. Everything we do now will go between
<html> and </html>.
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
- The CEO
- VP
- Director
- Middle management
- Lowly assistant
- Gets coffee for everyone
Below we'll ask you to add headings of various sizes. Feel free to write whatever you like for the
headings!
9. Mid-lesson breather
Here's a quick summary of things we've learned:
1.
2.
3.
4.
5.
1. First, there's an opening <a> tag and that tag has an attribute called href. The href value
tells your link where you want it to go, in this case http://www.codecademy.com.
2. Then you have a description of your link between your opening <a> and your closing </a>
tags. This is what you will be able to click on.
3. Finally, you have your closing </a> tag.
10
1. First we open our <a> tag and point the href to http://www.codecademy.com/ again.
2. But this time, instead of using text inside the <a> tag, we use an <img> tag.
3. Finally, we have our closing </a> tag.
Now when you click on the yellow duck, you will be taken to http://www.codecademy.com!
Placing one HTML tag inside of another is called nesting.
See lines 7 9
11
12