HTML
HTML
Web Design
An Introduction to the basics of HTML
+
How the Internet Works
Examples:
amazon.com facebook.com
+
Interpreted Language
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body>
(Your content goes here)
</body>
</html>
Tells the browser to interpret the text as html.
Everything on your webpage goes between these tags
Tells browser additional info about your page.
Marks the main content of the page.
+
Try it!
Remember:
<html>…</html> tags enclose everything on your web page
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body>
(Your content goes here)
</body>
</html>
+
Not Done Yet…
Header
Create a header for your web page.
Enclose it with <h1>… </h1> – this will increase the size of the text
and bold it.
To make the header a different size, you can use the tags <h2>…
</h2>, <h3>…</h3>, <h4>…</h4>, <h5>...</h5>, or <h6>…</h6>.
Add <h3> tags around “Favorites”
Paragraph
To mark the start and end of a paragraph, enclose it with <p></p>
You can add <br/> tags to add line breaks in your paragraph. Unlike
the others, this is an empty tag – nothing needs to go inside it.
+
Your Code Should Look Similar to This
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body>
<h1> (Header goes here) </h1>
<p>
(Paragraph goes here) <br/>
</p>
</body>
</html>
+
More Commands!
<blockquote> </blockquote>
Used for long quotes
+
Creating Lists: Ordered Lists
There are 3 types of lists: ordered, unordered and definition
lists
Ordered Lists
Used to mark lists that are numbered.
Example:
1. Brush Teeth
2. Shower
3. Eat Breakfast
Unordered Lists
Used to mark bulleted lists.
Example:
• Milk
• Cookies
• Cup
Example:
Stargate Atlantis
Awesome Sci-Fi show about the lost city of Atlantis
Parks and Recreation
Hilarious mockumentary about staff members of a Parks and Rec department
How I Met Your Mother
Comedy about Ted Moseby, his friends and how he met his wife
<td> </td> : Mark the start and end of table (data) cell
Example:
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body>
</body>
</html>
+
Images
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body>
</body>
</html>
+
Youtube Videos
Go to youtube
Click “embed”.
Form:
<nav>
<a href=“url1”> Link 1 </a>
<a href=“url2”> Link 2 </a>
<a href=“url3”> Link 3 </a>
</nav>
NOTE:
The url in the navigation bar is to .html files you’ve created
+
style
Example:
<html>
<head>
<title> (Your title goes here) </title>
</head>
<body style=“background-color:yellow;”>
.
.
.
</body>
</html>
+
<div>
Example:
<div style=“color: green;”>
</div>
+
HTML Attribute
Include 2 links
Include 1 video