Hypertext Markup Language (HTML) is a markup language that defines the structure of a web page. You can view the HTML elements that make up any web page that you visit using your browser.
⭐️ Step 0: Inspect a web page using the Developer Tools
Visit a website of your choosing, right left to bring up the context menu and click "Inspect" (Chrome) or "Inspect Element" (Firefox). If you are using some other browser, feel free to ask a mentor how to bring up the developer tools.
Click on the button with a square and arrow on it. You should now be able to hover over any element in the web page to see the corresponding HTML element.
Each HTML element has an opening tag (e.g. <div>) and a closing tag (e.g. </div>). The user will only see the content in between the opening and closing tags. Here are some examples that you might see when you inspect your example webpage:
The <p> tag is used to define a paragraph of text.
<p>Here is some text.</p>
Tags can be nested within each other.
<p>Here is some <b>bold</b> text.</p><p>Here is some <i>italicized</i> text.</p>
You might encounter shorthand for tags that do not have content between the opening and closing tags. These tags are self-closing. For example, the tag for images (i.e. <img>) uses attributes (e.g. src) in the opening tag and is self-closing. The following two code snippets are equivalent.
⭐️ Step 1: Add some basic HTML elements to your website
We're not going to list out all the HTML elements here because there are so many, but here are some things you should try to add to your website.
some headers with different sizes
a bulleted or numbered list
a button (Don't worry about making the button do anything right now. We'll add functionality later.)
This is a good chance for you to learn how to Google how to do things. Format your queries with what you are trying to accomplish and the programming language (e.g. "add an image html" or "add a hyperlink html").