code: def html(self):
          
          failure = ""
          skipped = None
          stdout = tag.text(self.stdout)
          stderr = tag.text(self.stderr)
  
          if self.skipped:
              skipped = """
              <hr size="1"/>
              <div class="skipped"><b>Skipped: {msg}</b><br/>
                  <pre>{skip}</pre>
              </div>
              """.format(msg=tag.text(self.skipped_msg),
                         skip=tag.text(self.skipped))
  
          if self.failed():
              failure = """
              <hr size="1"/>
              <div class="failure"><b>Failed: {msg}</b><br/>
                  <pre>{fail}</pre>
              </div>
              """.format(msg=tag.text(self.failure_msg),
                         fail=tag.text(self.failure))
  
          properties = [x.html() for x in self.properties]
  
          return """
      <a name="{anchor}">
          <div class="testcase">
              <div class="details">
                  <span class="testname"><b>{testname}</b></span><br/>
                  <span class="testclassname">{testclassname}</span><br/>
                  <span class="duration">Time Taken: {duration}s</span>
              </div>
              {skipped}
              {failure}
              <hr size="1"/>
              {properties}
              <div class="stdout"><i>Stdout</i><br/>
                  <pre>{stdout}</pre></div>
              <hr size="1"/>
              <div class="stderr"><i>Stderr</i><br/>
                  <pre>{stderr}</pre></div>
          </div>
      </a>
          """.format(anchor=self.anchor(),
                     testname=self.name,
                     testclassname=self.testclass.name,
                     duration=self.duration,
                     failure=failure,
                     skipped=skipped,
                     properties="".join(properties),
                     stdout=stdout,
                     stderr=stderr)
docs: Render this test case as HTML
          :return: