There are many different ways to build an ecommerce website. You can use an “all in one” hosting/shopping cart company such as Shopify or Big Commerce. If you build your own, there are also many different ways to do it using a variety of shopping carts that you can link to an html or wordpress website.
The video below demonstrates just one way. It uses wordpress with the woocommerce plugin.