Skip to content

itsmattpaw/phase-0-html-issue-bot-9000-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Issue Bot 9000

Learning Goals

  1. Demonstrate writing valid HTML

Introduction

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

Demonstrate Writing Valid HTML

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.

Getting Started

Fork and clone this lesson into your local environment. Navigate into its directory in the terminal, then run code . to open the files in Visual Studio Code. Finally, run bundle to install the lab's dependencies.

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

Wrapping Up

When your document is valid, go to the terminal and type rspec. Since the goal of this assignment is to practce verifying the HTML structure via W3C, the test in this lab is only checking that an index.html file exists.

Resources

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 77.0%
  • HTML 23.0%