5.Html Attributes |Haripriya R |SNSInstitutions

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024
  • Key Points:
    Attributes are always defined in the opening tag of an HTML element.
    They consist of a name and a value, where the value is enclosed in quotes (e.g., class="button").
    Attributes provide extra details like identification, style, size, behavior, etc.
    Common Attributes:
    id: Uniquely identifies an element
    class: Assigns one or more class names to an element, usually for styling
    src: Specifies the source of an image, video, or script
    href: Provides a URL for anchor links
    alt: Specifies alternate text for images
    title: Adds a tooltip when hovering over an element
    Attributes help to control the behavior and interaction of HTML elements in a webpage.
    #snsinstitutions #snsdesignthinkers #designthinking

ความคิดเห็น •