Riddle 2, Hint
This riddle is all about metadata, a cornerstone concept in this course. In the head of this code, a handful of metadata are defined in comments, for example <!--This is a comment--> Note that comments do not effect the code, and never appear in the output, even when they are in the body, as below.
Test your code at W3Schools CodeConverter, and then compare it to the answer.
For more on comments, click here.
Warning! Do not confuse the head section of a code with the "headings." The heading contents are listed between <h1> and </h1>, <h2> and </h2>, and so on. For example, <h1>The Doctor Riddle</h1> is a heading. Search engines take headings into account when selecting websites. For more information, see headings.
<!DOCTYPE>
<html>
<head>
<title>The Wrong Doctor, relatively speaking</title>
<meta name="keywords" content="riddle, doctor, gender roles">
<!--The content of "keywords" are the words that will connect your webpage to a search engine.-->
<meta name= "description" content="What parent is not this child's father?">
<!--Describes the webpage-->
<!--Other metadata-->
<meta name ="author" content="Adam Cleri"
</head>
<body>
<!--Except for this comment, the body portion of HTML code, unlike the head, is produced in the final composition.
<h1>The Doctor Riddle</h1>
<h2>This riddle elaborates on the "head" section of an HTML code.</h2>
<p>A father and his son end up in a horrific car accident, and are immediately rushed to two separate hospitals.
<br>When the boy arrives to the emergency room, the doctor says, "I cannot treat this boy, he is my son."
<br><br>How is this possible? </p>
<p><b>Challenge:</b>
<br>Include the following in your the head of your HTML code:
<br>keywords
<br>a description
<br>your name as the author.</p>
</body>
</html>

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home