This paper presents the gravitational-wave measurement of the Hubble constant (H0) using the detections from the first and second observing runs of the Advanced LIGO and Virgo detector network. The presence of the transient electromagnetic counterpart of the binary neutron star GW170817 led to the first standard-siren measurement of H0. Here we additionally use binary black hole detections in conjunction with galaxy catalogs and report a joint measurement.