In XML Schema Definition (XSD), attributes are defined using the element with both name and type attributes. The type attribute specifies the data type of the attribute value. Option B is correct with proper namespace prefix (xs:) and quoted attribute values.