Loading...

Let's review proper use of the HTML techniques covered in this lesson.

Practice what you've learned about comments and ampersand notation with the multiple choice activity below.

Of the following choices, which is the best situation for using a comment tag?

  1. indicate the start of each row in a table
  2. explain what each HTML tag stands for
  3. indicate where the code for an image gallery begins
  4. give a title to the webpage

Comments should be used to show where sections of code start, for explaining more complicated code, and to label closing tags for multiple nesting elements.

Comments should be used to show where sections of code start, for explaining more complicated code, and to label closing tags for multiple nesting elements.

Comments should be used to show where sections of code start, for explaining more complicated code, and to label closing tags for multiple nesting elements.

Comments should be used to show where sections of code start, for explaining more complicated code, and to label closing tags for multiple nesting elements.

Why are comment tags helpful when debugging your code?

  1. They can keep a section of code from being parsed and displayed.
  2. Code within comment tags will be tested by the browser.
  3. The code will be displayed on the webpage as plain text.
  4. You can leave comments for another designer to see what you've tried to fix the problem so far.

"Commenting out" pieces of code can help you find what part of your code is causing the problem.

"Commenting out" pieces of code can help you find what part of your code is causing the problem.

"Commenting out" pieces of code can help you find what part of your code is causing the problem.

"Commenting out" pieces of code can help you find what part of your code is causing the problem.

Which of these characters does not need to be written in ampersand notation in HTML?

  1. &
  2. <
  3. >
  4. !

The exclamation point is common abbreviation. All of the other symbols here could interfere with coding if not created with ampersand notation.

The exclamation point is common abbreviation. All of the other symbols here could interfere with coding if not created with ampersand notation.

The exclamation point is common abbreviation. All of the other symbols here could interfere with coding if not created with ampersand notation.

The exclamation point is common abbreviation. All of the other symbols here could interfere with coding if not created with ampersand notation.

Which of the following is written in correct ampersand notation?

  1. &nbsp;
  2. &nbsp
  3. &amp;nbsp;
  4. &nbsp&

Ampersand notation is written by starting with the & symbol and ending with a semicolon.

Ampersand notation is written by starting with the & symbol and ending with a semicolon.

Ampersand notation is written by starting with the & symbol and ending with a semicolon.

Ampersand notation is written by starting with the & symbol and ending with a semicolon.

Which of the following is proper syntax for writing a comment tag?

  1. <  !-- I am a comment tag. --  >
  2. <!--I am a comment tag.-->
  3. <!----I am a comment tag.---->
  4. <!--I am--a--comment--tag.-->

Comment tags begin with <!-- and end with -->. There should be no spaces between the characters, nor should multiple hyphens be added to the tags or in the middle of the comment text.

Comment tags begin with <!-- and end with -->. There should be no spaces between the characters, nor should multiple hyphens be added to the tags or in the middle of the comment text.

Comment tags begin with <!-- and end with -->. There should be no spaces between the characters, nor should multiple hyphens be added to the tags or in the middle of the comment text.

Comment tags begin with <!-- and end with -->. There should be no spaces between the characters, nor should multiple hyphens be added to the tags or in the middle of the comment text.

Summary

Questions answered correctly:

Questions answered incorrectly: