• Register
1 vote
585 views

Problem :

I am learning HTML . Now I want to send the email but my email provider is not allowing me send my email if my body is not the well formatted html provider. Please find below the error:
“The error is Element head is missing a required instance of child element title.”

Please find below my code :

<!DOCTYPE html>
<html>
<div style="background-color: rgb(238,238,238);padding: 0;margin: 0;font-family: Open Sans , Helvetica Neue , Helvetica , Arial , sans-serif;font-size: 13.0px;background-color: rgb(238,238,238);">
</div>
</html>
I am looking for the expert help on this error.
8 5 2
3,230 points

Please log in or register to answer this question.

1 Answer

1 vote

Solution :

To fix your above error you must add a body-tag and a head-tag. Also it must contain the title and it should not be empty and also you must pay attention to a charset setting.
<!DOCTYPE html>
<html>
   <head>
    <title>Title</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>
  <body>
    <div style="background-color: rgb(238,238,238);padding: 0;margin: 0;font-family: Open Sans , Helvetica Neue , Helvetica , Arial , sans-serif;font-size: 13.0px;background-color: rgb(238,238,238);">
    </div>
  </body>
</html>

The content model for the  element head if your document is the iframe srcdoc document or if the  title info is available from the higher level protocol a zero or more elements of the metadata content, of which there should be no more than one is the title element and also it should be  no more than one is the base element. Otherwise your elements of your metadata content of which a exactly one is a title element and no more than a one is a base element.

Hope you understood it.

8 4
5,680 points

Related questions

0 votes
1 answer 153 views
153 views
Problem : I am beginner to html. I have recently started learning html. When I tried to process my web page in a W3C validator it started showing me below error &ldquo;Start tag head seen but an element of the same type was already open&rdquo;. But when I try to remove the ... I re add a start tag then the error comes back again. How can I fix this issue? Can anybody help me in fixing this issue?
asked Mar 6, 2020 mphil 2.3k points
0 votes
2 answers 120 views
120 views
Problem : I want to know why I keep facing below error while I try to check my page on http://validator.w3.org/check The error is as below : Line 300, Column 90: The for attribute of the label element must refer to a form control. <label for="myname" style ... ;&nbsp;  <input class="css_form_namefield TooltipIstok " type="text" name="myname" value="" style="width: 600px;" maxlength="60" > </div>
asked Jan 3, 2020 alecxe 7.5k points
0 votes
2 answers 405 views
405 views
Problem : Facing following strange error the value of the for attribute of the label element must be the id of a non-hidden form control.
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 4 views
4 views
Problem: Hello! I want the answer to the question mentioned above. This question was asked in a quiz I attempted recently and it confused me. Please explain the correct answer in some detail. Thanks!
asked 1 day ago Code Learner 6.5k points
1 vote
1 answer 15 views
15 views
I am trying set the background color of the navbar, however the color doesn't seem to extend to the child container. What am I missing? I am using a display flexbox so I can evenly distribute the content of the navbar. I think it has something to do with the Flex property, but I couldn't ... <li><a href="#logout">Logout</a></li> </ul> </nav> </header> <script src="js/scripts.js"></script> </body>
asked Sep 13, 2020 Marivoke 530 points
0 votes
1 answer 77 views
77 views
Problem: I am trying to auto-fill an address using the google mapsAPI in my application, but I keep getting the error "InvalidValueError: not an instance of HTMLInputElement". Below are the things I have tried Html input within a form. As you can see I tried the focus trick and it ... == undefined || place.geometry === null) { return; } }); }) } ) } Tried 4 different things, no luck this worked
asked Nov 4, 2020 sasha 13.2k points
0 votes
1 answer 14 views
14 views
Problem: How can I change a css class of an HTML element in response to an event onClickusing javascript?
asked Feb 12 sasha 13.2k points
0 votes
1 answer 614 views
614 views
Problem : I was hoping that someone may know how to resolve the below HTML5 validation error. When I try to validate my page it gives me a below error : Error Line 90, Column 63: An body start tag seen but an element of the same type was already open. <body class=" ... only find the one <body> (the one referenced by above error) and one </body>. Can anyone please tell me how to fix above error?
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 33 views
33 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? When coding an audio element, the code placed before the closing audio tag is considered to be: Question options: invalid fallback content only available to browsers that support HTML5 required
asked Feb 21, 2020 maddi86 5.4k points
0 votes
1 answer 67 views
67 views
I want to select all p elements inside a div element.
asked Oct 3, 2020 Daniel Anderson 4k points