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>"; ?>
Share this Story








30 Comments on "HTML Tags in echo"
interesting information! where did you get it? i am curious to read more!
We write those information. We don’t refer any websites.
Glad I’ve fianlly found something I agree with!
PHP – Day 1 minute 1
Good to see real expertise on display. Your contribution is most weclome.
I really like your writing style, superb information, regards for posting
. “In university they don’t tell you that the greater part of the law is learning to tolerate fools.” by Doris Lessing.
I liked the article very much and I wanted to leave my comment, Thanks.
Simply the value of information and make a lot of viewers and followers, thank you
I’m impressed. You’ve rlealy raised the bar with that.
I must say, its worth it!,i’llcheck back asap,cheers
I liked the article very much and I wanted to leave my comment, Thanks.
a tremendous amount addiitional information with this sort of concern on websites, observe.
I truly appreciate this article post.Really thank you! Great.
That insight’s preecft for what I need. Thanks!
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!
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
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!
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?
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..
Hello world I suggested an increase in the discussions and comments on matters of interests of visitors life and work , thank you.
Hello world I suggested an increase in the discussions and comments on matters of interests of visitors life and work , thank you.
you could have an awesome weblog here! would you wish to make some invite posts on my weblog?
I appreciate your post, it was interesting and compelling. I have found my way here through Google, I am going to return over again
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.
Hey man, love your internet site its so organized! haha
very nice publish, i certainly love this website, carry on it
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.
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.