Div tag results in ''Special characters must be escaped''


#1

Exercise

I get these error messages:

‘‘Special characters must be escaped : [ < ] .’’
’‘Special characters must be escaped : [ > ] .’’

What is wrong with my code?



<!DOCTYPE html>
<html>
<!--  <head>
    <title>Brown Bears</title>
  </head>
  <body>
    <h1>The Brown Bear</h1>
    <div id=''introduction''>
      <h2>About Brown Bears</h2>
      <h3>Species</h3>
      <h3>Features</h3>
    </div>
    <h2>Habitat</h2>
    <h3>Countries with Large Brown Bear Populations</h3>
    <h3>Countries with Small Brown Bear Populations</h3>
    <h2>Media</h2>
  </body>
-->
</html>



#2

On the div, it is the id that you are using ’ ‘introduction’ ’ that you are getting the error. Another cause for the error is that you are not using double quotes.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.