.class{backgroundcolor:red;}" ."/> .class{backgroundcolor:red;}" .">

Home  >  Article  >  Backend Development  >  What to do if php does not display html

What to do if php does not display html

藏色散人
藏色散人Original
2020-07-18 10:01:204403browse

php does not display html because the tag is not closed. The solution is to rewrite the complete html code as "080b747a20f9163200dd0a7d304ba388 .class{backgroundcolor:red; }64b5a251643ff29a1f3958f7fc19d123”.

What to do if php does not display html

The html code in php cannot be displayed

The problem code is as follows:

<?php
include(&#39;conn.php&#39;);
?>
<html>
<head>
<style type="text/css">
.class{
backgroundcolor:red;
}
</styel>
</head>
<body>
<table class="class">
<tr>
<td width=200px>t00</td><td>t01</td><td>t02</td>
</tr>
<tr>
<td>t10</td><td>t11</td><td>t12</td>
</tr>
</table>
</body>
</html>

Then why can’t the background color of the table be displayed after I changed it?

Recommended: "PHP Tutorial"

The solution is as follows:

This problem is super simple

<style type="text/css">
.class{
backgroundcolor:red;
}
</styel>

There is no closing tag, it should be 531ac245ce3e4fe3d50054a55f265927, which is wrong.

The above is the detailed content of What to do if php does not display html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn