Question: I want to create an HTML Message to send an email in PHP.

```
$message = $mess0 . "</br>" . $mess1 . "</br>" . $mess2 . "</br>" .  $mes1 . "</br></br>" . $mes2 . "</br>" . $mes23 . "</br></br>" . $mes3  . "</br></br>" .  $mes4 . "</br>" . $mes5 . "</br>" . $mes6 . "</br>" . $mes7 . "</br>" .  $mes8 . "</br>" .  $mes9 .  "</br></br>" . $mes10 ;

$message =  <html><body><p>$message</p></body></html>;

```

Here are some variables.

I am getting the following error. 

> 
> Parse error: syntax error, unexpected '<' in /home/thevowaa/public\_html/iphoneapp/webservice/file.php on line 214
> 
> 
>

Answer: 
Add HTML tags between double quotes.

```
$message = "<html><body><p>".$message."</p></body></html>";

```
There are two possible ways to hold HTML in PHP variable. You can use single quote or double quotes. You also need to put a dot(.) before and after single/double quotes. Your PHP string could be constructed in following two ways:

```
$message =  '<html><body><p>'.$message.'</p></body></html>';

```

or like this,

```
$message =  "<html><body><p>".$message."</p></body></html>";

```

Also, use of single quotes(') is encouraged in PHP coding because it's doesn't clash with javascript or css double quotes(") when constructing html pages using PHP.

For more information on usage of quotes in PHP, check out this [stackoverflow answer](https://stackoverflow.com/questions/3446216/what-is-the-difference-between-single-quoted-and-double-quoted-strings-in-php)