Notes for You:: How to use HTML Tags in PHP - PHP Tutorial 10
PHP files can have HTML code as well as PHP scripts; i.e. we can write HTML code directly inside a PHP file.
We can also generate desired HTML structure using PHP scripts dynamically; i.e. we can insert HTML tags in between double quotations as part of the PHP strings to generate desired html structure.
Example Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Default page
</title>
</head>
<body>
Hello <strong>World</strong> <br/>
Hello <i>World</i> <br/>
Hello World <br/>
Hello World <br/>
<br/>
<?php
echo "Hello <strong>World</strong> <br/>";
echo "Hello <i>World</i> <br/>";
echo "Hello World <br/>";
echo "Hello World <br/>";
echo "<br/>";
?>
</body>
</html>
Note:
replace < with less-than symbol.
replace > with greater-than symbol.
=========================================
Follow the link for next video:
PHP Tutorial 11 - How to use HTML attributes in PHP echo statement
• How to use HTML Attrib...
Follow the link for previous video :
PHP Tutorial 09 - PHP white space & line break | How to insert new line in PHP
• Multiple spaces & Line...
=========================================
PHP Tutorials Playlist:-
• PHP Tutorials
=========================================
Watch My Other Useful Tutorials:-
MySQL Tutorials Playlist:-
• MySQL Tutorials
HTML Tutorials Playlist:-
• HTML Tutorials
CSS Tutorials Playlist:-
• CSS Tutorials
JavaScript Tutorials Playlist:-
• JavaScript Tutorials
=========================================
► Subscribe to our KZitem channel:
/ chidrestechtutorials
► Visit our Website:
www.chidrestec...
=========================================
Hash Tags:-
#ChidresTechTutorials #PHP #PHPTutorial
Негізгі бет How to use HTML Tags in PHP - PHP Tutorial 10
Пікірлер: 14