I am just trying to clean up my code by removing any unwanted spaces and while doing so I was about to remove the gap between my </head> tag and my <body>
So it looks like this:
</head>
<body>
Instead of this:
</head>
<body>
but as I was about to do so I was wondering if there is any type of code that can benefit from being in between this space? or whether it's a no go area?
Or would it only be acceptable for leaving notes?
It's not valid HTML markup to place any tags directly into the <html> element, except for <head>, <body> and comments.
As for the blank space, it makes no difference. Some people may argue it's more readable to separate them, due to the highly different purpose of both tags, but for parsing, there's no difference. Of course, you may save as much as 5 bytes in ASCII encoding (assuming you indent children of <body> with 4 spaces, that would be "space space space space newline"), but that is easily overlooked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With