Including variables withn span tags

Let name = "Whatever";

$w('#text209').html= `<span style="color:#EEEEEE; font-size:16px; font                      family:helvetica; font-weight:bold;">Name</span>

Hi,

The trick behind this is to use the quotation carefully, First, be sure you are using the variable name correctly ( case sensitive - name/Name ), Second, wrap the opening tag with double quotation and the style statement with single quotation, and concatenate them with +
" " + Variable name + “

then your code should look something like this :

let name = "Whatever";
$w('#text1').html= "<span style='color:#EEEEEE; font-size:16px; font family:helvetica; font-weight:bold;'>"+ name +"</span>";

Hope this helps!
Best.

Mustafa