LEXICON / Web Basics
HTML attribute
Attribute
Additional information on an element’s opening tag.
A closer look at the concept
Attributes can specify identity, link destination, language, or control rules. Boolean attributes depend on their presence.
SIMPLE EXAMPLE
<html lang="en"> uses the lang attribute for English.
Skip to content