The second step of becoming a full-stack web developer involves learning HTML - The language that adds structure and content to web-pages.
We've defined the following objectives:
After this chapter, students will...
- use HTML to create a web-page
- use hyperlinks to reference HTML documents
- use rich media
- push their work to Github
The structure of a web-page's content is a reflection of its HTML. If we want content to be presented as a list, we would use the <li>
tag; if we want content to be presented in a table, we would then use the <table>
tag. In other words, we can structure content how we want; we need, however, to use the correct tags.
To improve your familiarity with HTML, please complete the following lessons:
- Lesson 1: Building Your First Web Page
- Lesson 8: Creating Lists
- Lesson 11: Organizing Data with Tables
When you're done with these lessons, you'll apply what you've learned to create the following HTML. (This is the HTML you would receive from IMDB if you searched for "Hackers".)
A hyperlink, which is created with an <a>
tag, enables developers to link a web-page to another (or the same) web-page.
To learn how to use hyperlinks, please read Creating Hyperlinks.
After you're done reading, we'll apply this new knowledge to the result's page we created. Please follow these instructions:
-
You will not create a separate page of HTML for each movie title on the result's page. We want, however, you to gain practice with hyperlinks. Please write the code to make each movie title a hyperlink. When the link is clicked, a new tab should open. Using a relative link, have the tab open to this README.md.
-
You will also not create a separate page of HTML for each actor or actress. To this extent, turn every actor and actress on your result's page into a hyperlink. Have each link be an absolute path the actor or actress' page on IMDB.
HTML has the amazing ability to support different types of rich media:
<img>
: image<svg>
: vector image<embed>
: embedded video<video>
: native video<canvas>
: graphics- and more...
Let's get some practice using rich media with Lesson 9: Adding Media. After you're done with this lesson, include the <img>
tag into our result's page. Here's the instructions you should follow:
-
Replace each of the image placeholders (
[img placeholder]
) with an<img>
tag. You'll be provided images for each of the titles. -
Set the height and width of each image to 32 x 44 pixels.
We want to see the amazing work you've done, so push your code to Github. If you're unclear how to do this, follow these steps:
- If you haven't done this, you'll need to create a fork and clone of this repository.
- Inside of
_02_html/your-solution
, create a folder with the following naming convention:[lastName-firstName]
. So your folder structure will look like this:_02_html/your-solution/lastName-firstName
- Inside of the
lastName-firstName
folder, create a file namedindex.html
. - Add to
index.html
the HTML you've written. - Add (
git add -A
) and commit your changes (git commit -m "Include solution for chapter 1"
). - Push your changes to your fork:
git push origin master
- Submit a pull request. Github will send us a notification of your request once it's submitted.
Here is a great thorough walk-through of this process of submitting a Pull Request: http://www.codenewbie.org/blogs/how-to-make-a-pull-request
As you continue with the pre-course, build the habit of frequently adding, committing, and pushing your work to your forked repository on Github. This is a good workflow; moreover, it minimizes any chances of losing your valuable work.
In this chapter, you've built a result's page on IMDB. What you've done so far is awesome, but it lacks style. Let's address this problem and add some to our page. We need to take the next step of web development: Chapter 3: CSS