Use CSS in PHP Echo by using Use Double Quotes and Escape Using Backslash

36

<!DOCTYPE html>
<html>
<body>

<style>
.mycssquote{
	color: white;
    background: black;
    border:1px solid red;
    padding: 5px;
}
</style>

<?php
echo "Welcome to Softhunt.net";
echo "<p class=\"mycssquote\">This is a text in PHP echo.</p>";
?>

</body>
</html>

Comments

Submit
0 Comments