<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>html tags in php Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/html-tags-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/html-tags-in-php/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 23 Aug 2021 06:50:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to write html code in PHP</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-write-html-code-in-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-write-html-code-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 06:50:49 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How to write html code in PHP]]></category>
		<category><![CDATA[html code in php]]></category>
		<category><![CDATA[html in php]]></category>
		<category><![CDATA[html tags in php]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[write html code in PHP]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8164</guid>

					<description><![CDATA[<p>When developing a web application with PHP, we frequently need to print or echo a few HTML results. This work [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-write-html-code-in-php/">How to write html code in PHP</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When developing a web application with PHP, we frequently need to print or echo a few HTML results. This work can be accomplished in a variety of ways. Here are a few examples of methods:</p>



<p class="wp-block-paragraph"><strong>Using &#8220;echo or print&#8221;:</strong>&#8211; HTML markup, javascript, text, and variables may all be shown with PHP echo or print.</p>



<p class="wp-block-paragraph"><strong>Example 1:</strong>&nbsp;This example uses PHP echo to display the result.</p>



<script src="https://gist.github.com/AdarshAshwani/d526bafbc6f7b37bc1d797d29ed1816a.js"></script>



<p class="wp-block-paragraph"><strong>Output:-</strong></p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="659" height="122" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-149.png" alt="" class="wp-image-8168" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-149.png 659w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-149-300x56.png 300w" sizes="(max-width: 659px) 100vw, 659px" /></figure>



<p class="wp-block-paragraph"><strong>Example 2:</strong>&nbsp;This example uses PHP print to display the result.</p>



<script src="https://gist.github.com/AdarshAshwani/16e474d22359b602e4f2abab4497cf04.js"></script>



<p class="wp-block-paragraph"><strong>Output :</strong> </p>



<figure class="wp-block-image size-full"><img decoding="async" width="659" height="122" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-151.png" alt="" class="wp-image-8171" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-151.png 659w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-151-300x56.png 300w" sizes="(max-width: 659px) 100vw, 659px" /></figure>



<p class="wp-block-paragraph"><strong>Using echo shorthand or separating HTML:</strong> Any expression, variable value, or HTML markup can be shown with the PHP echo shortcut.</p>



<p class="wp-block-paragraph"><strong>Example 1:</strong>&nbsp;This example uses PHP echo shorthand to display the result.</p>



<script src="https://gist.github.com/AdarshAshwani/6b182a17949cb277d1b8fb13c0c9a68f.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong> </p>



<figure class="wp-block-image size-full"><img decoding="async" width="645" height="128" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-152.png" alt="" class="wp-image-8173" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-152.png 645w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-152-300x60.png 300w" sizes="(max-width: 645px) 100vw, 645px" /></figure>



<p class="wp-block-paragraph"><strong>Example 2:</strong>&nbsp;Separating HTML from PHP</p>



<script src="https://gist.github.com/AdarshAshwani/0ff67a60f2b2d2406b36d3897fee7d07.js"></script>



<p class="wp-block-paragraph"><strong>Output:-</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="648" height="347" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-153.png" alt="" class="wp-image-8180" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-153.png 648w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-153-300x161.png 300w" sizes="auto, (max-width: 648px) 100vw, 648px" /></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-write-html-code-in-php/">How to write html code in PHP</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-write-html-code-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
