• Login
Community
  • Login

Basic Coding Question

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
basic css
2 Posts 2 Posters 1.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q
    Qara Qorum
    last edited by Apr 13, 2017, 9:53 PM

    Total Nube here. I am not sure why my p{ } format will not show color: red as a command. The video I am watching seems to be identical and it is working for him. I saved file as index.html and as an html file.

    "<!DOCTYPE html>
    <html>

    <head>
    <meta charset=“utf-8”/>
    <title>Introduction to CSS</title>
    <style type=“text/css”>
    p{
    color: red;
    }
    </style>
    </head>
    <body>

    <p> Style Me!</p>
    <p> Style Me!</p>

    </body>

    </html>"

    1 Reply Last reply Reply Quote -1
    • P
      PeterJones
      last edited by Apr 13, 2017, 10:08 PM

      This is a forum for the editor Notepad++, not whatever you happen to be using the editor for.

      However, that’s an easy one: stop using smart quotes. Changing your code to the following worked for me.

      <!DOCTYPE html>
      <html>
      
      <head>
      <meta charset="utf-8"/>
      <title>Introduction to CSS</title>
      <style type="text/css">
      p {
      color: red;
      }
      </style>
      </head>
      <body>
      
      <p> Style Me!</p>
      <p> Style Me!</p>
      
      </body>
      
      </html>
      
      1 Reply Last reply Reply Quote 1
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors