HTML Elements and Attributes
HTML Elements and Attributes
•
• class: A class name or space-separated list of
class names that can be used to style multiple
elements.
b. Element-Specific Attributes
Certain attributes are specific to particular
elements.
• src (for <img>, <script>, <iframe>, etc.):
Specifies the source of an embedded
resource like an image or script.
•
• type (for <button>, <input>, <script>, etc.):
Specifies the type of element, such as the
type of button or input.