Forms & Tables | Working with HTML tools Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an HTML validator?

A

A tool that checks the validity of your HTML code against standard HTML specifications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does an HTML validator help debug code?

A

It helps identify errors and warnings in HTML code, ensuring correct structure and compliance with web standards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: HTML is a strict language that does not allow mistakes.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens if you forget to include a closing tag in HTML?

A

The element will still render due to the browser’s parsing algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a common issue that may arise from an unclosed h2 tag?

A

The following paragraph may render as a heading 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the most widely accepted HTML validator?

A

The w3.org markup validation service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you use the w3.org validator?

A

Visit validator.w3.org, click on Validate by Direct Input, and paste your HTML code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: An HTML validator benefits not only you but also _______.

A

your teammates and open-source contributors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the function of the Check button in the w3.org validator?

A

It displays a list of results with errors that need to be fixed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is another HTML validator you can use besides w3.org?

A

jsonformatter.org.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does jsonformatter.org validate HTML?

A

You paste your HTML code inside the first editor and click the Validate button.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the parsing algorithm in browsers do?

A

It handles common errors and tries to render HTML as closely as possible to the author’s intention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False: Browsers will not render HTML with missing closing tags.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the process of finding and fixing bugs in code called?

A

Debugging

Programmers refer to issues in code as bugs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the two important tools provided by browsers for debugging?

A

DOM inspector and developer tools

These tools help inspect and debug HTML, CSS, and JavaScript.

17
Q

What does DOM stand for?

A

Document Object Model

The DOM represents elements on a webpage in a tree-like structure.

18
Q

What does the DOM inspector allow you to do?

A

Inspect the HTML structure of the page

It provides a view of the elements that make up the webpage.

19
Q

What is the purpose of the developer tools?

A

To inspect the HTML, CSS, and JavaScript of the page

It helps in identifying issues within the page’s code.

20
Q

What type of error does a 404 page indicate?

A

Page not found

This error occurs when a user tries to access a webpage that doesn’t exist on the server.

21
Q

How can you open the developer tools in your browser?

A

Right-click and select Inspect, or use Control Shift I (PC) / Command Option I (Mac)

This opens the developer tools for debugging.

22
Q

What does the Elements tab in developer tools show?

A

The HTML structure of the page

It allows you to view and edit the HTML elements.

23
Q

What does the Console tab in developer tools display?

A

Any errors that might be occurring on the page

It is useful for diagnosing issues like broken links.

24
Q

What common error message indicates a broken link?

A

404 error

This message indicates that the requested page was not found.

25
Fill in the blank: The correct URL for the freeCodeCamp curriculum should be _______.
/learn ## Footnote The typo in the original link caused the 404 error.
26
True or False: The developer tools only work with HTML.
False ## Footnote Developer tools are used for HTML, CSS, and JavaScript.