Home  >  Article  >  Web Front-end  >  Embed PHP in HTML

Embed PHP in HTML

WBOY
WBOYOriginal
2024-09-04 16:52:05828browse

The following article provides an outline of Embed PHP in HTML. HTML is a pre-defined front end language code, whereas php is a server-side scripting language; it is also called an embedded server-side language. Most of the PHP syntax codes has to be followed with the c, java and Perl script languages. It normally works with other web-based dynamic script languages, and also performance side, it will be more better compared to other script languages whereas it is paired with html codes for creating web-based applications it is a non-interruptible functioning type for creating the websites.

Syntax:

The Embed PHP code is the standard one that is a normal html document; we have written the PHP code on the html page.

Code:

<html>
<head>
<title>
</title>
<script language="php">
-----some codes----
</script>
</head>
</html>

The above code is the basic syntax for embedding the php code in html page with the help of