HTML Notes
Resources
Types of self-closing tags (aka empty elements)
- <hr> - horizontal line
- <br> - break
- <img> - image (has attributes src, alt, height, width)
- <input> - allows website user to enter data
- Complete list here
HTML Forms
Types of input field:
Example Form:
What this form looks like in HTML:
![html form example](Images/html-form-example.png)
Div and Span
The <div> and <span> tags are used to divide up areas of HTML to be styled in CSS.
Div allows blocks of content to be selected. Span is an inline version for selecting smaller areas within an element.