top of page
Robot on Wheels

html 101

We use HTML to create webpages. That's why it is the language of the internet.

Learn HTML and get your ticket to the world of web development!

Why is HTML important?

HTML is important because it's at the foundation of the web. Without it, we wouldn't have the rich and diverse ecosystem of websites, apps, and services that we have today.

 

Learning HTML gives you the power to create and control your own online content, and opens up a world of possibilities.

 

 

Did you know...

Did you know that HTML is not a programming language?

 

Unlike programming languages like Java or Python, which are used to create complex software applications, HTML is a markup language that is used to structure and format content on web pages.

How do you get started?

HTML is simple! All you need is a text editor and a browser. Today, we are going to do this in Replit.

Replit Live Demo

  1. Go to Replit.

  2. Create an HTML Replit.

  3. Create base template page in browser.

Mobile Phone

Base template

<!DOCTYPE html>

<html>

  <head>

    <title>My first HTML page</title>

  </head>

  <body>

    <h1>Welcome to my first HTML page!</h1>

    <p>I'm learning how to create web pages with HTML.</p>

 

    <!-- Your code here START -->

    <!-- Your code here END -->

 

  </body>

</html>

Exercise #1: Creating HTML Text

  1. HTML has opening and ending tags.​

    Example:
    <h1> (open tag)
    </h1> (end tag)

    This is how you would say "hello friends!"
    using an h1 ("h" stands for Headline) tag.

    <h1>Hello friends!</h1>

  2. Create the following text in your HTML page.

    (p tag) "There once was a chicken named Sue,"
    (h3 tag) "Who had a most peculiar shoe."
    (h2 tag) "It was made of green silk,"
    (h1 tag) "And caused quite a milk spill."

    * Notice the size difference based on the tag!

  3. If you want to create a horizontal line, use the hr tag. Add this to your page.

    <hr />

    * Notice how this element doesn't have an end tag. The "/" is used to self-close the element.

  4. Add this text to your html page.
    * Note: The main thing to accomplish is the size difference. Don't worry about getting the exact tag right.



    Why was the math book sad?
    --------------------------------------
    Because it had too many problems.

Exercise #2: Adding media

  1. How do we add pictures? We use the img tag!

    <img src="LINK_TO_IMAGE" />

    Let's take a look at how this works. Imagine we
    had a URL link to an image 
    https://i.imgur.com/75HIquZ.jpeg.
    Add this code to your page.

    <img src="https://i.imgur.com/75HIquZ.jpeg " />

  2. If you want to make a link to another page, use the a tag!

    <a href="URL_LINK">TEXT TO CLICK!</a>

    Add this Google link to your page:

    <a href="https://www.google.com">Link to Google!</a>

  3. The text inside the a tag can have HTML in it. Make your link text into a headline!

    <a href="https://www.google.com"><h1>Link to Google!</h1></a>

  4. Add this image to your page.
    https://i.imgur.com/I0TI1dx.jpeg

  5. Image link:

    1. Add this image to your page. https://i.imgur.com/AoHXOzB.jpeg

    2. When you click it, it should go to https://twitter.com/

  6. The src in the img tag is called an "attribute". 

    <img src="https://i.imgur.com/75HIquZ.jpeg " />

    This is used to customize the HTML element. We can use it to customize font color. Add this to your page.

    <p style="color:red;">This is a red paragraph.</p>

  7. Create this on your page.
    The image address is https://i.imgur.com/DywYaTT.jpeg
    When you click the question, it should take you to http://reddit.com/
    * Note: The main thing to accomplish is the size difference. Don't worry about getting the exact tag or color right.

    Why couldn't the bicycle stand up by itself?
    Because it was two-tired.
     

DywYaTT.jpeg

Exercise #3: Lists

  1. Add this code to create a list on your page.

    <ul>
        <li>John</li>
        <li>Susie</li>
        <li>Sarah</li>
    </ul>

  2. Update your code to create a numbered list on your page.

    <ol>
        <li>John</li>
        <li>Susie</li>
        <li>Sarah</li>
    </ol>

  3. Create this Christmas wishlist. Notice the colors and links!

    1. iPhone (link to apple)
    2. New headphones (link to Bose)
    3. Animal Crossing for switch (link to Nintendo)

THANKS FOR JOINING US!

Coding is the new literacy.

To learn to read and write code is to learn to read and write the language of the future. It lets you create things with a different kind of language, one of technology.

Book a free class and make your mark in the 21st century.

bottom of page