SkillSeevaSkillSeeva
HomeResourcesScheduleRoadmapTeam
Back to Categories
Current Path
HTML5
Introduction & BasicsHTML ElementsAttributesHeadings & ParagraphsStyles & ColorsLinks (Anchors)Images & ResponsiveTablesListsBlock vs InlineClasses & IDsForms & Input TypesSemantic HTMLMeta Tags & SEOVideo & AudioPerformance OptimizationAccessibility (ARIA)Web APIs (Geo, D&D)
Jump to topic:
Introduction & BasicsHTML ElementsAttributesHeadings & ParagraphsStyles & ColorsLinks (Anchors)Images & ResponsiveTablesListsBlock vs InlineClasses & IDsForms & Input TypesSemantic HTMLMeta Tags & SEOVideo & AudioPerformance OptimizationAccessibility (ARIA)Web APIs (Geo, D&D)

Attributes

Attributes provide additional information about elements. They are always specified in the start tag.
html
<a href="https://www.google.com">This is a link</a>
<img src="img_girl.jpg" width="500" height="600">
  • href: URL for links
  • src: Path for images
  • width/height: Size of images
  • alt: Alternative text
  • style: Inline CSS
  • lang: Language of the document
  • title: Tooltip text
3 / 18