HTML Tags in echo

avatar December 21, 2011 by: 30

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

Share this Story
Categories
Php  
Tags
Add a Comment on "HTML Tags in echo"

    30 Comments on "HTML Tags in echo"

  1. avatar Ron Oehl says:

    interesting information! where did you get it? i am curious to read more!

  2. avatar Vik says:

    PHP – Day 1 minute 1

  3. I really like your writing style, superb information, regards for posting :D . “In university they don’t tell you that the greater part of the law is learning to tolerate fools.” by Doris Lessing.

  4. avatar dfw valet says:

    I liked the article very much and I wanted to leave my comment, Thanks.

  5. Simply the value of information and make a lot of viewers and followers, thank you

  6. avatar used machine says:

    I must say, its worth it!,i’llcheck back asap,cheers

  7. avatar dfw parking says:

    I liked the article very much and I wanted to leave my comment, Thanks.

  8. a tremendous amount addiitional information with this sort of concern on websites, observe.

  9. avatar Lael Szafran says:

    I truly appreciate this article post.Really thank you! Great.

  10. avatar Elia Gatts says:

    Firstly i would like to say that i like your site’s design and secondly..The information provided here in good and reliable. I would like to say that you have really done a great job here. Thumbs up!

  11. avatar Rich says:

    Webmaster, I am the admin at SEOPlugins.org. We profile SEO Plugins for WordPress blogs for on-site and off-site SEO. I’d like to invite you to check out our recent profile for a pretty amazing plugin which can double or triple traffic for a Worpdress blog. You can delete this comment, I didn’t want to comment on your blog, just wanted to drop you a personal message. Thanks, Rich

  12. avatar Daphne Zea says:

    My brother suggested I might like this blog. He was entirely right. This post actually made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

  13. avatar Hazel Korzep says:

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something enlightening to read?

  14. avatar Dewey Shonk says:

    As a web site owner I believe the subject matter here is reallywonderful. I appreciate it for your time. You should keep it up forever! Best of luck..

  15. avatar ralf says:

    Hello world I suggested an increase in the discussions and comments on matters of interests of visitors life and work , thank you.

  16. avatar james says:

    Hello world I suggested an increase in the discussions and comments on matters of interests of visitors life and work , thank you.

  17. you could have an awesome weblog here! would you wish to make some invite posts on my weblog?

  18. avatar Lyla Fili says:

    I appreciate your post, it was interesting and compelling. I have found my way here through Google, I am going to return over again :)

  19. avatar fotografia says:

    It’s actually a cool and useful piece of info. I am glad that you shared this useful information with us. Please keep us informed like this. Thanks for sharing.

  20. Hey man, love your internet site its so organized! haha

  21. very nice publish, i certainly love this website, carry on it

  22. I just want to tell you that I am very new to weblog and actually enjoyed you’re web page. Most likely I’m want to bookmark your blog post . You actually have perfect article content. Thanks for sharing your web-site.

  23. avatar seo says:

    Does your blog have a contact page? I’m having problems locating it but, I’d like to send you an email. I’ve got some ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it develop over time.

Follow us

About Techdigit

Tech Digit comprises of many authors but the CEO of techdigit is Sriram who is an internet Marketer and Entrepreneur.