In web design, the layout refers to how the elements of a webpage are arranged, while composition refers to the overall design and aesthetics of a webpage.