6. Quiz Questions

If you would like to look up the answers for the following quiz questions, you can check our discussion forum. If you don't find an answer in the forum, you may create a post asking for an answer to a particular question.

If you would like to do interactive quizzes with online feedback and with the option to ask a coach, then you should enrol in the introductory online course (book parts 1-3) offered by our partner developer-competence.com.

6.1. Question 1: Well-Formed XML

Which of the following fragments represent well-formed XML? Select one or many:

  1. <emph><STRONGER>This is some text <bold>and this is more text. Here is even more.</bold> text.</STRONGER></emph>

  2. <stronger>This text is bold. <emph>And this is italicized and bold.</emph></stronger><emph>And this is just italics.</emph>

  3. <STRONGER>This text is bold. <emph>And this is italicized and bold.</STRONGER> And this is just italics.</emph>

  4. <strong>This text is bold. <em>and this is italicized and bold.</EM></strong><em>and this is just italics.</em>

6.2. Question 2: HTML Forms

Recall that an HTML form is a section of an HTML document consisting of block elements that contain controls and labels on those controls. Which of the following form elements represent correct forms? Select one or many:

  1. <form>
      <div><label>ISBN: </label><input name="isbn" /></div>
      <div><label>title: </label><input name="title" /></div>
    </form>
  2. <form>
      <div>
        <label for="isbn">ISBN: </label><input id="isbn" name="isbn" />
        <label for="title">title: </label><input id="title" name="title" />
      </div>
    </form>
  3. <form>
      <label>ISBN: <input name="isbn" /></label><br />
      <label>Title: <input name="title" /></label>
    </form>
  4. <form>
      <div><label for="isbn">ISBN: </label><input name="isbn" /></div>
      <div><label for="title">title: </label><input name="title" /></div>
    </form>
  5. <form>
      <div><label>ISBN: <input name="isbn" /></label></div>
      <div><label>Title: <input name="title" /></label></div>
    </form>