Html Issue Bot 9000 Lab

Problem Statement

Let's practice using the W3C's HTML Validator!

Objectives

  1. Correct invalid HTML to be valid

Correct Invalid HTML To Be Valid

In this lab we'll use the W3C Validator to make our invalid HTML happy! You might need to change how you work this problem depending on your work environment. Either way you'll learn to fix invalid HTML.

Tasks for LearnIDE Environment Users

  1. Click the "OPEN IDE" button

Tasks for Local Environment Users

  1. Fork this repository.
  2. Clone your fork locally.
  3. cd into the local repo you just cloned.

In this lesson we'll be taking the provided index.html file and will get feedback from the W3C validator about it.

Steps

  1. Open index.html in a browser. See how it, well, doesn't look quite right?
  2. Open index.html in your text editor
  3. Visit the W3C validator at: http://validator.w3.org/#validate_by_input
  4. Copy the code from index.html and paste it into the text area
  5. Click the large "Check" button
  6. Use the error messages to correct the code your copy of index.html
  7. Repeat steps 3-6 until the Html Validator reports: "Document checking completed. No errors or warnings to show."
  8. Not only is the document now W3C-valid, it no longer looks weird

Submitting the Lab

When your document is valid, go to the terminal and type:

learn

Since you're verifying the HTML structure via W3C, the test here is not robust at all.

To move to the next lesson, type learn submit.

Resources

View HTML Issue Bot 9000 on Learn.co and start learning to code for free.

Unlock your future in tech
Learn to code.

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us