For this mini-project, you'll deconstruct an existing web page and rebuild it. Don't worry if the links don't go anywhere and the search box doesn't do anything when you submit it. The goal is to start thinking about how elements get placed on the page and roughly how they get styled and aligned. For some of you, this may be the first time you've actually tried to "build" something in HTML (very exciting!).
Using the browser's developer tools (right clicking something on the page and clicking "inspect element" will get you there) will be your best friend. Build the page in a .html text file and open it in your browser to check it out (or try using CodePen or jsfiddle.net).
These skills will be helpful for you when you start building. Either try them yourself or at least make sure you know how to do it:
As mentioned in the introduction to git, you'll want to organize all your projects like a portfolio and link them to GitHub so it can be seen by others.
If you do not know how to setup a respository, follow the instructions found in Project: Git Basics to learn how.
cdinto it. This folder will house all the projects you do at Odin.
git clone https://github.com/YourUserName/google-homepage
google-homepageproject directory that is now on your local machine; setup your
README.mdfile and write a brief introduction for what the current project is and what skills you have demonstrated once you have completed it. (You can do this as a self-reflection at the end of the project which is a good way to revise what you have learned.)
README.mdfile - it can look something like this:
From The Odin Project's [curriculum](http://www.theodinproject.com/web-development-101/html-css)
Note: All Git commands need to be run from inside your project's folder (did you forget to
cd into the
When you're building your project, you will probably end up doing several
git add +
git commit cycles before being ready to push it up to Github with
git push origin master.
If you have entered
git push origin master and typed out your username and password, if you refresh your GitHub page, you should see new files added onto GitHub.
Okay, that's enough Git for the moment -- time to actually build stuff!
(the simple one with just a search box).
Inside your project folder, create your index.html file
-moz-appearanceif you're using Firefox.
You should be able to reuse much of your code from before if you started with that project. Again, don't worry about links to nowhere and forms that won't submit and hard coding the search results (which you'll have to do of course), just focus on placement and order of items on the page.
Note: All the classes and id's and names of elements that you inspect on Google's home page are nonsensical strings (like
If you want to show your work (the project) to others, or submit a solution below, you will need to publish your site so that others can access it from the web, rather than just on your local machine. The good news is that if you have your project on github (as described above) doing this is incredibly simple. There are a couple of options here, both with their own pros and cons.
Github allows you to publish web projects directly from a github repository. Doing this will allow you to access your project from
There are a couple of ways to go about doing this, but the simplest is this:
index.html. If it is not, you will need to rename it.
your-gh-username.github.io/your-github-repo-name(obviously substituting your own details in the link)
Rawgit.com is another option for viewing github projects online. It is simpler and quicker, but less permanent, likely less reliable than gh-pages, and you don't get the benefit of a nice personalized URL. That said, for just quickly sending someone a preview of something you aren't ready to officially publish, it works great.
Submit a link below to the github repo with your files in it by using a pull request. See the section on Contributing for how. Please include your partner's github handle somewhere in the description if you had one and they would like attribution.
This section contains helpful links to other content. It isn't required, so consider it supplemental for if you need to dive deeper into something
If you still feel shaky on your understanding of HTML and CSS, that's okay! You don't need to be an expert by any means yet. These resources should help if you want to shore up your understanding of things:
From the creators of The Odin Project...