Web 001: Basics of HTML
This will help you:
Write HTML (HyperText Markup Language) documents to display content (like a web page!)
HTML is the markup language used to create and display web pages. Yes, all of them. Google, Facebook, Twitter... you name a website: it uses HTML to show web pages. HTML isn't really a programming language - it can't do that much on its own, and it can't solve problems like programming languages can. It really just makes content look a certain way. Without the help of CSS, it doesn't even look very good. On the bright side, it's pretty easy to use - it's just a matter of surrounding pieces of content with to tell a browser how to display it.
Skipped that paragraph? Cool, we're gonna make you a personal website. It'll be pretty easy, and if you stick around for the CSS (or even JavaScript!) activities, it'll look awesome.
Time: 1 hour / Level: A1
You should already:
Read this intro to HTML (I promise it's short!)
If you've done the Python web scraping activity, this will probably seem easy peasy
Also you'll have a better idea of how web pages are usually structured.
Get the code and resources for this activity by clicking below. It will allow you to download the files from a Google Drive folder. Unzip the folder and save it in a sensible location.
Step 1: Learn About HTML/Tags
Tags are what makes HTML a thing. They look like this
<a href="google.com">This is Google!</a>
Would display as:
This is Google!
Almost all tags have to be opened <tagname>
before the text and closed </tagname>
after the text. Don't forget to close tags. Closing tags have a forward slash /
before the tag name that matches the opening tag.
You can also nest tags. Here's a paragraph tag containing some text and a link:
<p>
Hello world!
This is a paragraph I wrote.
<a href="example.com">Click this link!</a>
</p>