{"id":3311,"date":"2026-01-17T11:14:50","date_gmt":"2026-01-17T10:14:50","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3311"},"modified":"2026-01-17T11:31:08","modified_gmt":"2026-01-17T10:31:08","slug":"how-remove-undesired-rows-in-html-source-code","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3311","title":{"rendered":"Undesired empty rows in html source"},"content":{"rendered":"\n<p>Using php to generate automatically a webpage can produce undesired empty rows (typically at the begging of your source code, before <code>&lt;!DOCTYPE html&gt;<\/code>).<br>To avoid them you could have i.g. to remove empty rows between <code>?&gt;<\/code> and <code>&lt;?php<\/code>, that is something like the follow code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>?&gt;\n\n&lt;?php<\/code><\/pre>\n\n\n\n<p>The (new) working code should be<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>?&gt;\n&lt;?php\n<\/code><\/pre>\n\n\n\n<p>On the contrary, empty rows inside <code>&lt;?php ... ?&gt;<\/code> blocks are <em>not relevant<\/em>.<\/p>\n\n\n\n<p>In general, every empty (useless) row after a <code>?><\/code> could generate undesired empty rows in your html output source code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using php to generate automatically a webpage can produce undesired empty rows (typically at the begging of your source code, before &lt;!DOCTYPE html&gt;).To avoid them you could have i.g. to remove empty rows between ?&gt; and &lt;?php, that is something like the follow code: The (new) working code should be On the contrary, empty rows &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=3311\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;Undesired empty rows in html source&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[751,566],"tags":[982,981,983],"class_list":["post-3311","post","type-post","status-publish","format-standard","hentry","category-php","category-webmaster","tag-empty-rows","tag-output-html","tag-webpage"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3311"}],"version-history":[{"count":6,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3311\/revisions"}],"predecessor-version":[{"id":3318,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3311\/revisions\/3318"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}