Hear we use html and php combining.
You can incorporate this into an HTML document simply by adding HTML outside the php start and end tags,Like..
<html>
<head>
<title>PHP script including HTML</title>
</head>
<body>
<div>
<b>
<?php
print "Hello world";
?>
</b>
</div>
</body>
</html>
Out put: Hello world.
As you can see, incorporating HTML into a PHP document is simply a matter of typing in the code . The PHP engine ignores everything outside PHP open and close tags. If you were to view this code with a browser, as shown in figure you would see the string hello world in bold.If you were to view the document source, as shown as normal HTML document.
Thanks stay with us..
You can incorporate this into an HTML document simply by adding HTML outside the php start and end tags,Like..
<html>
<head>
<title>PHP script including HTML</title>
</head>
<body>
<div>
<b>
<?php
print "Hello world";
?>
</b>
</div>
</body>
</html>
Out put: Hello world.
As you can see, incorporating HTML into a PHP document is simply a matter of typing in the code . The PHP engine ignores everything outside PHP open and close tags. If you were to view this code with a browser, as shown in figure you would see the string hello world in bold.If you were to view the document source, as shown as normal HTML document.
Thanks stay with us..
brother good tutoriale continue please.
ReplyDelete