Welcome to the homework for the very first week of your class!
As you are probably a beginner at all of this, let's start off with something simple: We are going to make an HTML file from scratch and put in the bare minimum code required for a functioning web page.
So let's do that!
1. Find an empty spot on your Desktop or File explorer and right click (or two-finger click on a Mac). Hover your mouse over "New" and select the "Text Document" option.
When the file gets created, it will prompt you to name it. Name it "WeekA.html"; delete the default name and the ".txt" extension at the end. When you do that, Windows will transform it from a text file to an HTML file.
2. Open the file in Notepad. A way you can do this that probably should work is to right click the file, hover your mouse cursor over "Open with" and click Notepad.
3. Once you have the file open in Notepad, add the following line to your file:
<!DOCTYPE html>
This is the first line in any HTML file and it tells your web browser that this file is in fact an HTML file, no lies. It used to be longer and more complicated in older versions of HTML.
4. Click enter to add a new line, and then add the following HTML tags:
<html>
</html>
5. Between the two html tags, add the following two "head" tags:
<head>
</head>
6. Underneath the end head tag, put two "body" tags:
<body>
</body>
So far, your code should look like this:
<html>
<head>
</head>
<body>
</body>
</html>
Everything that the user sees on the webpage goes between the two body tags.
An HTML element is a combination of tags that have the same name (ex. <body> and </body> make up the body element). So far your file is an html element with a head element and a body element inside of it.
7. Between the two body tags, add the following two "p" tags:
<p><p>
The "p" stands for paragraph, which means it's time to type something that isn't code!
8. Between the two "p" tags, write the following statement:
Hello, World!
This is an age old tradition that dates back to more than half a century.
9. Save you're file and open it in the browser, which typically means double click your HTML file. If that doesn't work, try right clicking it, hover over "Open with" and find the web browser option.
If you see a blank screen with your sentence, then you did it!