Hi, I need help if it’s okay. I’ve been trying to fix one of my projects for our defense this february and I can’t seem to figure out how am I suppose to inline the footer. I also tried adding display:inline but it still wouldn’t align with the copyright part.
Your copyright is in a <p> which is a block level element and as such, will take up the entire width of its container. That is why the list items are pushed down.
Right click on the copyright in your browser and choose Inspect Element to see what is happening.
Although the above is valid html it is not semantically correct as you have an inline fragment running into a block element. The first thing the browser has to do is construct an anonymous block box around the text so that it can begin to parse the html correctly. It would be much better to put the text in a paragraph where it belongs.
Of course as with everything in html the semantics are debatable and either way is valid so you could argue why bother? I just hate to see text in divs when they should be paragraphs or just hanging in no-mans-land.
Also without the paragraph around the text it would be hard to target that snippet of text specifically should the need arise at a later date.
I guess the answer is the all familiar “it depends”.
As contrived examples, markup like this is common
<p>Some text, <span class="foo">a span</span>, and more text</p>
while this looks “more correct” but unnecessarily bloated
<p><span>Some text, </span><span class="foo">a span</span><span>, and more text</span></p>
True, the more verbose markup could make it easier for CSS, JavaScript, and perhaps even the browser. to work with the DOM. But I have difficulty imagining it will become the norm anytime soon.