def find_attr(name, attrs):
    """Find an attribute in an HTML tag by name.

      name - The attribute name to search for.
      attrs - The list of attributes to search.
      Returns the matching attribute or None.
    """
    for attr, values in attrs:
        if attr == name:
            return values
    return None