answersLogoWhite

0


Best Answer

Yep. We do it all the time. One way is to simply tell PHP that you want the tags echoed. Like so:

<?php

echo('<b>Hi</b> Nice to meet you!');

?>

Sometimes you want instead to simply use the PHP in parts of a page and leave the rest. You can do this, too.

<body>

<div class="login">

<?php

if($user->loggedIn()){

?>

<b>Hi!</b>

<?php

}else{

?>

<!-- HTML FORM HERE -->

<?php

}

?>

</div>

</body>

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can HTML tags code and text be included in a php code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which tags are allowed in the HTML head portion of the HTML document?

&lt;TITLE&gt; &lt;/TITLE&gt;, Text formatting tags


A webpage is a text file of tags and embedded text?

HTML


What html element does not display text on the web page as seen in the web browser the comment graphic image or text?

You can use the comment tags to include text in your HTML code that will not be displayed in the browser. Here is how you do that: &lt;!-- Comment Text --&gt;.


What is the purpose of the PRE tags in HTML code?

It does preformatted text. It displays text in a plain font and it preserves any line breaks, which normally does not happen in html. It also keeps spaces, so the text will look like it is typed in the source code.


What is a header code?

Header codes, or tags, are used in html language. They are used to identify the page and can be text, banner or logo.


What Is The Code To Show An Html A Text?

&lt;code&gt;&lt;code&gt;HTML TEXT HERE&lt;/code&gt;&lt;/code&gt;


What is function of HTML code?

HTML code sends instructions to a browser defining the format of the page. For example, you can use the &lt;b&gt;&lt;/b&gt; tags to tell the browser to display something in bold text.


What is web design software that generates HTML tags?

There is no need for any software. You can write the code in a notepad or any text editor.


HTML tags does this to text to define how it appears online?

Mark


HTML documents are created by adding what to text?

C. Tags


How HTML tags needed to create a basic webpage?

HTML tags can be made to create a basic webpage. The basic tags with some text can make a webpage in basic format.


How do you insert a HTML text box in a flash website how to insert HTML text box code in empty text box?

The textarea tag is a part of the form tag and is contained within that and the fieldset tags. A textbox is produced by an inline or external JavaScript.