From the course: HTML for Programmers

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Debugging HTML

Debugging HTML

- [Instructor] Up until this point in the course, we've discussed how to write HTML code. But what happens when you encounter a bug and need to figure out what went wrong? There are two primary types of errors you'll encounter when writing code. The first type of error is a syntax error where you've accidentally typed something wrong. Maybe you spelled header incorrectly or forgot the closing forward slash. The second type of error is a logic error where the code is written correctly, but you've coded logic or structure that you didn't mean to code. HTML is parsed permissively, which means that the page will still display even with syntax errors. The displayed page might not look like you intended it to look, but it will still render. Let's try this out. Suppose you're building the navigation for your portfolio site. But you have a syntax bug. Instead of typing header, you accidentally swapped the a and e in the tag…

Contents