Your GitHub Learning Lab Repository for Intro to HTML
Welcome to your repository for your GitHub Learning Lab course. This repository will be used during the different activities that I will be guiding you through.
Oh! I haven't introduced myself...
I'm the GitHub Learning Lab bot and I'm here to help guide you in your journey to learn and master the various topics covered in this course. I will be using Issue and Pull Request comments to communicate with you. In fact, I already added an issue for you to check out.
I'll meet you over there, can't wait to get started!
This repository is licensed under MIT (c) 2019 GitHub, Inc. Photo by Kelli Tungay on Unsplash
Add some style to your page
Step 12: Make it beautiful
You may be wondering why your page hasn't looked exactly the same as the sample I showed in the beginning. That's because HTML gives your webpage structure, but the simple tags you have learned so far don't tell the web browser how you want each page element to appear.
The appearance of each page element is defined through styles and is the subject of another course. For now, I have added a stylesheet for you.
For your webpage to use your new stylesheet, you just need to link it within the
<head>
of yourindex.html
file. If you include the following link in yourindex.html
file, your webpage will begin using the css file to make your website look awesome!As an example, your
index.html
file might look like this::keyboard: Activity: Create a style to your site
index.html
file in theadd-style
branch by using this direct link or going to the Code tab, selecting theadd-style
branch, clicking on theindex.html
file, and clicking the pencil :pencil: to edit.<head>
tags, add the following<link rel="stylesheet" href="style.css">
.I'll respond when I detect you've committed in this pull request.
Welcome
Let's build your first webpage
HTML is the markup language that forms the backbone of the internet. In this course, you will learn how to build a clean, stunning webpage using HTML which you can set as your browser's default start page. This is only the first step in your journey, but it will form an important foundation in your journey as a new developer.
What is HTML?
HTML stands for Hyper Text Markup Language. HTML is not a programming language. It is simply a way to describe the structure of your website. Your web browser reads the HTML document and displays it in the window.
Where does your website begin?
When someone enters your web address, the web standards will automatically look for a file called index.html and display it in your browser. Most people call this your home page.
Step 1: Hosting your webpage
It isn't enough to simply create a webpage on GitHub. You must deploy your webpage to a web host that is connected to the internet. For this course we will use GitHub Pages, but you could publish the HTML to any static host.
:keyboard: Activity: Turn on GitHub Pages
main
as your GitHub Pages publishing source.I'll respond in this issue after GitHub Pages has finished deploying your site.
Create a list
Step 9: Create a list
Your site with your new photo can be seen at: https://borakis.github.io/intro-html/
Ordered and unordered lists
Lists are used all over the internet. They come in two flavors: ordered and unordered.
And...
You can create a list using the
<ol>
tag for ordered lists, and the<ul>
tag for unordered lists. Then, each item must be wrapped in an<li>
, or list item, tag. Here's the code that generates the list I showed you above:And...
For the next exercise, you are going to create a list of your favorite websites. Later, we will add links so you can access those links quickly. For now, focus on creating the individual list items.
:keyboard: Activity: Create a list of your favorite sites
index.html
file in your main branch by using this direct link or going to the Code tab, clicking on theindex.html
file, clicking the pencil :pencil: to edit the HTML.add-links-and-lists
.Look for my response in your new pull request
Add a header
Step 6: Add a header
Take a peek at your shiny new web page! It can be found at: https://borakis.github.io/intro-html/
Headers create prominent text in the body of your web page. Headers come in different levels. For example, a header 1, or h1, is the largest, while a header 3, or h3, is smaller, and a header 6, or h6, smaller still. You can create headers in html using the h1, h2, h3, h4, h5, and h6 tags. Here's an example:
:keyboard: Create a header for your web page
index.html
file in your main branch by using this direct link or going to the Code tab, clicking on theindex.html
file, clicking the pencil :pencil: to edit the HTML.<h1>
tag, some content for the header, and a closing</h1>
tag.add-headers-and-images
.Look for my next response in your pull request