As you might expect, the first step to getting started with any new technology is setting up a couple of tools. While it is possible to create HTML and CSS with any text editor, using a code editor will offer features to make your life easier.
We'll be using github.dev, a free, online code editor, for this workshop. If you've ever used Visual Studio Code, this code editor may look familiar to you. One of the awesome things about using github.dev is that we'll be coding directly in the browser. We'll also add the CodeSwing extension, which allows us to make edits to our HTML/CSS and see the results immediately.
Let's start by creating a new repository for this project on GitHub, and then opening it in github.dev.
- If you don't have a GitHub account, go ahead and join GitHub. Then, create a new public repository named resume. If you've never made a GitHub repository before, check out the documentation for more information. Make sure to select Public and to initialize the repository with a README.
- Navigate to your new repository on GitHub.
- Open the repository in github.dev by pressing the
.
key from the repository page, or swap.com
with.dev
in the URL. This will set up a VS Code environment in your browser.
Once you have your repository open in github.dev, we'll install CodeSwing. As mentioned before, CodeSwing is an extension which helps us create HTML, CSS and JavaScript, and see updates in realtime.
- Open the Extensions toolbar by selecting the Extensions icon from the Activity Bar on the left-hand side of your window.
- In the Search Extensions textbox in the upper-right corner, type CodeSwing
- Select Install for CodeSwing
The extension will be installed.
One of the best productivity features in github.dev and Visual Studio Code is AutoSave. AutoSave automatically saves changes to your files, so you don't have to worry about losing any of your work. To turn on AutoSave, select the three parallel lines icon on the left-hand side of your github.dev window, in the Activity Bar. Go to File > AutoSave. Your AutoSave is turned on if there is a check mark next to the AutoSave menu item.
Congratulations! You have the tools you need to begin creating HTML/CSS pages. Next, let's create our first page.