Learn CSS Colors by Building a Set of Colored Markers - Step 5

Tell us what’s happening:

im struggling to name the attribute part
Step 5

You can have multiple self-closing meta elements on a web page. Each meta element adds information about the page that cannot be expressed by other HTML elements.

Add another self-closing meta element within the head. Give it a name attribute set to viewport and a content attribute set to width=device-width, initial-scale=1.0 so your page looks the same on all devices.

Your code so far

<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta  name="viewpoint">
    <meta  content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8">
    <title>Colored Markers</title>
  </head>

<!-- User Editable Region -->

  <body>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge Information:

Learn CSS Colors by Building a Set of Colored Markers - Step 5

You need only one meta tag <meta> for this step. Then add name property and it’s value, and content property and it’s value within it.
@Sam72

Thanks Ill try this now and let you know in a min

1 Like

name=“viewport”,
content=“width=device-width, initial-scale=1.0”>

You didn’t need comma after value “viewport”

And it’s is best if you post your code with Three ``` back ticks on a separate line above and below your code.

Perfect Thanks for that

Your welcome. Happy Coding.

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