HTML Basics

Concept

HTML is Hyper Text Markup Language and can help you alter the appearance of text and many other aspects of your web pages. There are shelves of books and countless web pages dedicated to styling with HTML. This document is meant to serve as a basic reference.

HTML uses what are called "tags" to turn features on and off. These tags are noted by inserting the appropriate code between the < > symbols. Tags define special elements and attributes of text, lines, tables, and images. Two sets of tags are needed for each special element or attribute: an opening tag and a closing tag. For instance, <i> will turn on the italics, and </i> will turn it off. Whatever text you want in italics needs to be between the two tags.

HTML tags should be all lowercase. There is no priority of attributes when adding multiple tags to the same string of text, though good practice is to follow the “first one in, last one out” rule. Example: <b><i><u>this is the text</u></i></b>

HTML does not recognize the Enter key on your keyboard or multiple spaces. Use of line breaks <br> paragraphs <p> and non-breaking spaces &nbsp; can help achieve the same results.   

Examples

References