Skip to content

itscodenation/int-u2l8-23-24-student-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lesson 2.8: Debugging & Review

Objectives

By the end of this lesson, coders will be able to:

  • Understand the importance of writing clean, readable code and debug errors.
  • Review HTML and CSS concepts.
  • Participate in coding challenges to reinforce concepts.
  • Prepare for future coding interviews by experiencing a coding challenge similar to those in the tech industry.

Table of Contents

  1. Debugging
  2. HTML Review
  3. CSS Review
  4. Key Takeaways

Debugging

  • Errors are normal: It's totally normal to run into errors; both beginners and pros encounter them.
  • Three Strategies to Debug:
    1. Write clean code
    2. Use documentation
    3. Read error messages

Debugging: Write Clean Code

Clean code is more readable and makes spotting errors easier.

<html>
	<body>
	  <p>clean</p>
	  <p>code</p>
	</body>
</html>

Debugging: Use Documentation

Hover over an HTML tag that's not working to find a link to documentation.

HTML Review

  • HTML Structure:
    • It adds structure to web pages.
    • It uses tags to create different elements on a webpage.
<body>
  <h1>Hello World</h1>
  <p>Yay, coding!</p>
  <button>Click here.</button>
</body>

CSS Review

  • CSS Styling:
    • It adds style to web pages.
    • Choose a selector, property, and value.
p {
  color: blue;
}

Key Takeaways

  • Writing clean, error-free code is essential, but encountering errors is a normal part of the coding process.
  • Debugging involves strategies such as writing clean code, reading error messages, and consulting documentation.
  • HTML and CSS are foundational technologies for creating web pages.

Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published