HTML is an accronym for Hyper Text Markup Language. As the name suggests, HTML is a markup form that is useful for presenting information on the web. As of 2013, HTML is nearly in it's fifth version.
Some Terms to Keep in Mind
- Tag: An HTML tags takes on the form <tag_name> where tag_name is a keyword representing the tag.
- Attribute: An attribute adds specificity to a tag and it is added within the opening tag (e.g. <tag_name attribute="some_value">).
- Element: The opening tag + content + closing tag (e.g. <p>Hello World!</p>).
General Rules of Thumb
- All tags must close: whether they are self-closing (e.g. <img />) or not (e.g. <p> </p>).
- The root element of any HTML page is always <html>.
- Attributes are always written as: property="value" (e.g. <img src="plane.png" />).
- Tags and attributes should always appear in all lowercase letters.
- Tags must be nested correctly: the first tag you open is the last one you close (e.g. <p>hello <em>world</em></p>).
Basic Structure
Every HTML document starts like this:
<html> <head> <title>Title: Appears on your browser tab</title> </head> <body> <!-- This is an HTML comment block --> </body> </html>
Learn about: Head Elements - Tags that can be used within the <head> section.
Learn about: Body Elements - Tags that can be used within the <body> section.