---
title: "Discussion on \"How to Use PHP In HTML Code\" | Hashnode"
description: "Discussion on \"How to Use PHP In HTML Code\". Broadly speaking, when it comes to using PHP in HTML, there are two different approaches. The first is to embed the PHP code in your HTML file itself with the .html extension—this requires a special consideration, which we’ll discuss in a moment. The..."
url: "https://hashnode.com/posts/how-to-use-php-in-html-code-1/6075763985f3a21e3926cd2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Use PHP In HTML Code](https://buquio.hashnode.dev/how-to-use-php-in-html-code-1?utm_source=hashnode&utm_medium=feed)

Broadly speaking, when it comes to using PHP in HTML, there are two different approaches. The first is to embed the PHP code in your HTML file itself with the .html extension—this requires a special consideration, which we’ll discuss in a moment. The...

Apr 13, 2021 · 2 min read · buquio.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#html](https://hashnode.com/tag/html)

## Written by

[bukola kehinde](https://hashnode.com/@buquio)

@buquio

  
[View profile](https://hashnode.com/@buquio)

frontend developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
