While digital marketing encompasses all online marketing efforts, inbound marketing is a strategy that focuses on attracting customers by providing value.