Use CSS in PHP Echo Add CSS in a Class and Include the Class in PHP Echo

36

<!DOCTYPE html>
<html>
<body>

<style>
.mycss{
	color: white;
    border:1px solid #000;
    background: black;
    padding: 10px;
}
</style>

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

</body>
</html>

Comments

Submit
0 Comments