Anatomy of an HTML element

Estimated reading: 1 minute 80 views

Container Element

– An element that can contain other elements or content

– A paragraph (content) contains text Stand Alone Element – An element that cannot contain anything else –

 <br/>, <img/>

Attribute

  • Provides additional information about the HTML element
  • Class, ID, language, style, identity, source
  • Placed inside an opening tag, before the right angle bracket.
    Value
  • Value is the value assigned to a given attribute.
  • Values must be contained inside quotation marks.
<img src="my_picture.jpg"/>
Share this Doc

Anatomy of an HTML element

Or copy link