# Proper Syntax for HTML Tags in Dynamic Text

**URL:** https://forum.kirupa.com/t/proper-syntax-for-html-tags-in-dynamic-text/280286
**Category:** flash
**Created:** [January 25, 2009, 6:52pm UTC](https://forum.kirupa.com/t/proper-syntax-for-html-tags-in-dynamic-text/280286 "2009-01-25T18:52:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![av104](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@av104](https://forum.kirupa.com/u/av104)
#### Post date: [January 25, 2009, 6:52pm UTC](https://forum.kirupa.com/t/proper-syntax-for-html-tags-in-dynamic-text/280286/1 "2009-01-25T18:52:07Z")

</div>

I have a question regarding the proper syntax to use while inserting html tags for font face, font color etc. Please look at excellent tutorial written by Arjen Gosman on creating a Guest book using XML and PHP [http://www.kirupa.com/web/xml\_guestbook.htm](http://www.kirupa.com/web/xml_guestbook.htm) I want to modify lines 78 and 79 in the Action Script to control font size, font color etc. I modified these lines as follows:

myGuestbook.htmlText += “\<B\>\<font face=“Verdana” font size=“12 pt” font color=”#ffffff"\>" + this.firstChild.childNodes\*.attributes.myName + “\</font\>\</B\>” + " wrote:  
“;  
myGuestbook.htmlText += “\<B\>\<font face=“Verdana” font size=“12 pt” font color=”#ffffff”\>" + this.firstChild.childNodes\*.firstChild.firstChild.nodeValue + “\</font\>\</B\>” + "

";

However, when I test the movie, I get the following errors:

**Error** Scene=Scene 1, layer=AS, frame=1:Line 78: Syntax error.  
myGuestbook.htmlText += “\<B\>\<font face=“Verdana” font size=“12 pt” font color=”#ffffff"\>" + this.firstChild.childNodes\*.attributes.myName + “\</font\>\</B\>” + " wrote:  
“;  
**Error** Scene=Scene 1, layer=AS, frame=1:Line 79: Unexpected ‘lt’ encountered  
myGuestbook.htmlText += “\<B\>\<font face=“Verdana” font size=“12 pt” font color=”#ffffff”\>" + this.firstChild.childNodes\*.firstChild.firstChild.nodeValue + “\</font\>\</B\>” + "

";  
**Error** Scene=Scene 1, layer=AS, frame=1:Line 81: Unexpected ‘}’ encountered  
}  
Total ActionScript Errors: 3 Reported Errors: 3  
What is the proper syntax for changing font size, font color in this excample?

Thanks!
