Getting started with your first portfolio - Part 1: Creating index.html
- Create a directory called
<GH Username>.github.io - Create a new file called
index.htmlunder the new directory Type the following snippet into
index.html<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>My Portfolio</title> </head> <body> <h1>Hello! My name is [name] ✌️</h1> </body> </html>Now, we are going to see how our code looks on the browser. In your terminal, navigate to your
<GH Username>.github.iodirectory, and type inopen index.html- this will allow you to see your changes by automatically opening a tab on your browser for your html file.- Alternatively: open Chrome, and press
Ctrl + Oon Windows/Linux orCmd + Oon Mac to open the file explorer dialog box. Then, navigate to your<GH Username>.github.iodirectory and open theindex.htmlfile - You will see something like this on your browser
When you make any changes to
index.html, you can refresh the newly-opened tab to see your changes. Add the following into theh1tag:<h1>Hello! My name is [name] ✌️, welcome to my portfolio :)</h1>When you refresh the page, you should see