Detect if the given code is a valid HTML code.
<html>
    <h1>This is a heading</h1>
    <p>This is a paragraph.</p>
</html>
true
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Detect if the given code is a valid HTML code.

### Response:
true