Skip to main content

HTML with Matt Richard

HTML = HyperText Markup Language
Not programming language a markup language

HTML Elements
* Create the structure and semantics
1. Starting tag
2. Element content
3. Ending tag
<tag></tag> 
*<html> Defines the whole HTML document

*<head> Contains the title, scripts, styles, etc
*<title> Defines a title. At the top of the browser
*<body> Viewable content
*<h1>-<h6> Defines a heading
*<p> Defines a paragraph
*<a> Defines an anchor. Used to create links
*<img> Defines an image. Requires src attribute.
*<hr> Horizontal Line.
*<!-- This is a coment in HTML -->

HTML Attributes
* Add information to an element
* Always added to the starting tag
* <a href="url">Viewable Text</a>

Tables
<table> defiens a table
<tr> Defines a table row
<th> Creates a header cell.
<td> Creates a standard cell. 

Lists
<ul> Unordered List
<ol> Ordered List
<dl> Definition List

<li> Creates an item in an unordered or ordered list
<dt> Defines an item in a definition list.
<dd> Describes and item. 

Forms
<form>
<!--Input Elements -->
</form>
<input> has several different types given by type = "one of the following"

text
password
radio
checkbox
submit