Skip to content Skip to sidebar Skip to footer

Php Creating Extra Space In Html Page

I'm new to web development and I'm really stuck with this silly problem. When I insert php code before html code, something like this:

Solution 1:

I guess this what happens

Your code like this

<?php
//your php code here
?>
<!DOCTYPE html PUBLIC "

You should have it like this

<?php
//your php code here
?><!DOCTYPE html PUBLIC "

Post a Comment for "Php Creating Extra Space In Html Page"