To buy shares you open an account with a broker, move money in, and place an order. An order says what you want to trade, how much, and how.
At any moment there are two prices. The bid is the most a buyer is offering; the ask is the least a seller will accept. The small gap between them is the spread. You buy at the ask and sell at the bid, so the spread is a cost you pay on every trade.
A market order says 'buy now at the best available price'. It fills instantly, but in a fast market the price can be worse than you expected. A limit order says 'buy only at this price or better'. You control the price, but the order may never fill if the market does not come to you.
A stop-loss order sells automatically if the price falls to a level you choose, so a small loss cannot grow into a large one. Many brokers no longer charge commission on stocks, but spreads, currency fees and taxes on profits still apply. Check your own broker and your country's rules.