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.

No comments:
Post a Comment