HTML Basics
No CSS, just HTML
By the end of this unit you should be able to...
Basic HTML template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Exercise 0</title>
</head>
<body>
</body>
</html>
Different Tags for HTML Elements
Elements open by specifying a tag, then most have innerHTML, then close
<div>innerHTML is found here</div>
Some tags use no innerHTML
<img src="someLocation.jpg">
<br>
<input type="text">
(Note, using /> at the end is not required for example <br />)
Regardless of the tag type, all elements can have attributes
Attributes
Basic attributes (must know)
MANY tags can have specific attributes.
http://www.w3schools.com/html/html_basic.asp
Attributes modify an element to suit your specific needs.
Setup AppEngine for static submissions!
Tags and attributes practice
Instructions for the HTML Basics in this doc
HTML Basics - Tag Practice Exercises
Hint: Learning to use the documentation is more important than finishing quickly!
Document Object Model (DOM) example
<body>
<p>
This is a paragraph, containing
<a href="#"> a link </a>
in the middle.
</p>
<ul>
<li>This item has
<em>some emphasized text</em>
in it.
</li>
<li>This is another list item.</li>
</ul>
</body>
Draw this DOM tree
<body>
My favorite "Google look" gmail signature file.<br>
From Gmail: Settings -> General (first tab) -> Signature, then copy/paste from Chrome's display (without the dashes)<br>
<br>*** Some email body.***<br><br>
--
<table cellspacing="0">
<tbody>
<tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">
Dr. Dave Fisher
</td>
<td style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px">
| Rose-Hulman
</td>
<td style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px">
|
<a href="mailto:fisherds@gmail.com" target="_blank">
fisherds@gmail.com
</a>
</td>
<td style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px">
| 812-201-6488
</td>
</tr>
</tbody>
</table>
</body>
Space for your DOM tree
Output if you display that html in Chrome
Summary: HTML is the first step in building a site
Hopefully to feel comfortable with a wide variety of HTML tags