How do you align inputs in HTML? code example

Example 1: how do i print text in java

System.out.println("your text" );
/* this will print your message and then move your cursor to the next line */
/* or */
System.out.print("your text");
/* this will print your message and keep it on the same line */
/* to print multiple items in one statement us a + between them */
System.out.println("age: " + age);

Example 2: how do you center buttons in css

<div style="text-align:center;">
    <button>button1</button>
    <button>button2</button>
</div>