Results 1 to 3 of 3

Thread: Property font-weight doesn't exist

Threaded View

  1. #1
    Join Date
    Jun 2007

    Question Property font-weight doesn't exist - PHP string

    I tried using the jigsaw.w3.org css-validator on a php file - with the property option set to level 3 CSS on the validation page. This is a local style embedded inside a php string.

    I'm getting an error that says:
    Property \"font-weight doesn't exist : bold as shown here.

    Here is the string it's referencing: (it matches the example in my book)
    print "<div>Thank you, <span style=\"font-weight:bold; color:yellow; \">$name</span> for your posting:<p>$posting</p><div>";
    The string, and data-entry-form work fine. The entire web page all works. It just won't validate past this error.

    At this point I'm assuming the validation site above is only for CSS pages exclusively and will not validate local styles embedded inside php strings?
    I'm not sure what to do about this because the print statement matches a similar example in the book I'm learning from.
    Last edited by waveform; 06-09-2013 at 04:41 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles