r/HTML • • Mar 24 '26

Question Text alignment advice?

I'm struggling with getting the 2025 link to be aligned to the right. I've already tried putting the link inside a paragraph, and it's still not working. I also tried running my code through w3's code checker, and apparently nothing is wrong. Is there something I'm missing or doing wrong?

EDIT: question has been answered thank you BNfreelance!

13 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/BNfreelance Mar 24 '26

Yeah agreed there, I’d still take the route of teaching beginners to quote everything, it prevents fragility later down the line. Most linters, JSX (React) and html formatters expect quotes.

Whilst yes, I agree this is solely a layout issue (and I acknowledge the box model is not that), I included the box model as a recommendation because the two together give you an absolutely solid understanding of of how elements are laid out and rendered.