-1

It is showing an error on line 2 like this FATAL ERROR syntax error, unexpected '<' on line number 2 please tell me what I am missing here.My code is shown below

<?php
<footer>
<div class="container">
<center>
<p>Copyright &copy; Lifestyle Store. All Rights Reserved | Contact Us: +91 
9000000000</p>
</center>
</div>
</footer>
?>
JAI
  • 1
  • 1

1 Answers1

1

You cannot just write HTML directly inside PHP, like that, Try:

<footer>
<div class="container">
<center>
<p>Copyright &copy; Lifestyle Store. All Rights Reserved | Contact Us: +91 
9000000000</p>
</center>
</div>
</footer>

Remove the <?php and ?> tags.

Or add your html code inside PHP's echo:

<?php
echo '<footer>
<div class="container">
<center>
<p>Copyright &copy; Lifestyle Store. All Rights Reserved | Contact Us: +91 
9000000000</p>
</center>
</div>
</footer>';
?>
mega6382
  • 9,211
  • 17
  • 48
  • 69