Code Monkey home page Code Monkey logo

int-u2l8-23-24-student-exercises's Introduction

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!

int-u2l8-23-24-student-exercises's People

Contributors

cn-curriculum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.