HTML Tags in echo

By

December 21, 2011Php6 Comments

You can use HTML tags in echo statement of PHP. Here are some of the examples.

1)

<?php
echo "<center>Hello World</center>";
?>

This displays Hello World in center of browser page.

2)This Displays Hello World As H1 tag.

<?php
echo "<h1>Hello World</h1>";
?>

3)This Displays Hello World in red color and font size to 10.

<?php
echo "<h1><font size=10 color=RED> Hello World</font></h1>";
?>


See More Examples

Tags:
6 Responses to “HTML Tags in echo”
  1. Wiley Bade says:

    Several Thx for this, it makes items better.

  2. Hey buddy might i release a number of paragraph with the report on my own little weblog

  3. Spending time to your blog is incredibly helpfull, Ready your following content articles.

  4. free traffic says:

    Writers adore to know whenever the issues they write provides elicited a hard

  5. This is an excellent web site and extremely instructive. I’ll keep coming back with this site to read your content material.

  6. incredibly glad to determine such details that i ended up getting trying to locate a quite long time.This created really delighted! In any case

Leave a Reply