Learning Code


Tips for troubleshooting your code.
  • Check your syntax: selector {property: value;}
  • Check for extra/missing/incorrect:
    • colons :
    • semi-colons ;
    • opening or closing brackets { or }
    • opening or closing parenthesis ( or )
  • Check that the selector is correct:
    • Does it exist in both the HTML and CSS?
    • Is it in the correct format for both the HTML and CSS?
  • Could something else be over-riding the selector?
    • Try using a more specific selector
    • Try moving the style lower in the stylesheet (CSS page)
  • Is your spelling correct?
  • Is your capitaliztion correct or consistent?