.class{backgroundcolor:red;}" ."/> .class{backgroundcolor:red;}" .">
Home > Article > Backend Development > What to do if php does not display html
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”.
The html code in php cannot be displayed
The problem code is as follows:
<?php include('conn.php'); ?> <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!