Thursday, December 11, 2008

How can I add html tags inside my php code

Can I add html tags inside my php code? Yes almost any html tag.
To use html tags inside php you can use echo to print them.
Look at the following code.


<html>
<head>
<title>Untitled Document</title>
</head>

<body>

<?php

echo '<strong>This is bold letters</strong>';

echo '<h1>This is heading letters</h1>';

echo '<div style="border: solid #000000;">
This is inside a div tag</div>';

?>

</body>
</html>


Like above example you can use any html tags.

Get custom programming done at GetAFreelancer.com!

No comments:

Post a Comment