HTML Attributes Flashcards
what is an html attribute
properties that provide additional information about the element
what do html attributes do
say something about the elements that carries them
what do html attributes consist of
a name and a value
what is the name part of an html attribute
the property of the element that you want to set
what is the value part of an html attribute
what you want the value of the property to be
how are html attributes usually written
in the form “name=value”
how should the value of an html attribute be written
in double qoutation marks following the equals sign
give all the core html attributes
id
class
title
style
what is a boolean html attribute
attributes that consist of just a name
give all html internationalisation attributes
dir
lang
html attribute: src
html element: img
specifies the url of the image that’s displayed
html attribute: href
html element: a
specifies the url of a webpage to link to
html attribute: title
html element: a
gives a plain language description of the target of the link
html attribute: lang
html element: html
sets the language of the document
html attribute: lang
sets the language of an element
html attribute: id
uniquely identifies any element within a page
html attribute: class
specifies that an element belongs to a class of elements
html attribute: title
gives a suggested title for the element
html attribute: style
enables you to specify css styles for the element
html attribute: dir
enables you to indicate to the browser the direction in which the text should flow
html attribute: href
html element: link
specifies the url of the linked document
html attribute: rel
html element: link
indicates the type of the linked document
html attribute: src
html element: script
specifies the url of a javascript file
html attribute: cite
html element: blockquote
indicates the source of the qoute