There are a lot of nuances with road and MTB hubs that you need to pay attention to depending on the cassette(s) you want to use. While the splines are the same for all HG cassettes, the freehub comes in a variety of lengths. Someone can correct me if I'm wrong on the specific cog size, but 11 speed cassettes with a big cog larger than (I believe) 32T (so 34T and up) can fit on a 8/9/10 speed road/MTB freehub because the largest cog in those cassettes overhangs the freehub and doesn't need the extended length of a road 11 speed freehub. This works because the cog is large enough to not interfere with the spokes of the wheel. Smaller 11 speed cassettes require a true 11 speed freehub and will not fit on a freehub marked for 8/9/10 speed.
The hub in the link above is an example of a Shimano-MTB-only 11 speed hub. It will NOT fit a Shimano 11 speed road cassette. It will, however, fit a Shimano 10 speed road cassette without issue, just be sure to use the appropriate spacer between the cassette and freehub if one is included with the cassette.