To align inline elements in CSS, there is the text-align property, and this way you can align not only text. It has several valid values, which are described in this article.
CSS Text Align Last (With Examples)
Pure.CSS Aligned Form - javatpoint
CSS Text Align Property (HTML and CSS Tutorial)
How to use CSS flex at a glance - Eqsash
CSS Align - GeeksforGeeks
Text Align in CSS – How to Align Text in Center with HTML
How to use CSS grid features, properties summary - Eqsash
Mastering CSS Layout: A Comprehensive Guide to Key Properties, by Nahia Nowreen Urnisha
CSS text-align Property, How to Align Text with CSS
HTML canvas textAlign Property - GeeksforGeeks
How to align text in CSS - javatpoint