How to use HTML tags in PHP echo?

How to HTML tags in PHP echo?

Example 1: This example demonstrates that how HTML tags can be used in  PHP echo to display the result.


Example 2: This example demonstrates that how HTML tags can be used in  PHP echo to display the result by Separating HTML from PHP.

Example 3: We can use <<< heredoc to print the html. <<< must be followed by an identifier and line break.

<<<GFG
// HTML Markup
GFG;

Example 3: How PHP echo in HTML tables using database MySQL and Mysqli table?

Add a Comment