1 | 2 | 3 | Current Level: 4 | 5 | 6 | 7 | 8 | 9
index.html
File on GitHubLearn how to create and edit an index.html
file directly on GitHub’s web interface. This will be your website’s homepage.
You should have already created a repository with a README file, as covered in the previous lesson.
Navigate to Your Repository
Add a New File
index.html
.Write HTML Content
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is my first HTML file on GitHub.</p>
</body>
</html>
Commit the New File
index.html
file with personalized content.<h2>
), a list, or a link.Once you’ve added your index.html
, you can enable GitHub Pages in the repository settings to view your site live!