I made an article on how to center a div or text in div with CSS. If you are just starting to work with HTML and CSS, you will greatly benefit from learning how to center divs and text within divs in particular.
Check it out and let me know if it helped you 😁
https://webdev-tech.com/blog/how-to-center-div-or-text-in-div-with-css