First of all this is a wordpress page so [insert_php] is a replacement for <?php
.
The url of the page is as follows "http://**.com/?page_id=98#highlights?sel=q1s"
the code on the page is as follows
<div id="Question1" style="background-color:[insert_php] if ($_GET['sel'] == "q1s") { return "black"; } else { return "white"; };">
I'm sure I'm overlooking something here.
EDIT :
<div id="Question1" style="background-color:[insert_php] if ($_GET['sel'] == "q1s") { echo "black"; } else { echo "white"; }[/insert_php];">
this is my current code and it still showing no results, I checked the actual value I'm getting for background-color and for some reason am getting the result "white".