Attributes Flashcards
(14 cards)
What do the name/value pairs in attributes look like in HTML?
name=”value”
What tag defines a hyperlink?
<a>…</a>
What attribute specifies the URL of the page the link goes to?
href=”…”
What tag is used to embed an image in an HTML page?
<img></img>
What attribute specifies the path to the image to be displayed?
src=”…”
What attributes should also be included in the <img></img> tag?
width=”…” height=”…”
What attribute specifies an alternate text for an image?
alt=”…”
What attribute should be added inside the <html> tag to declare the language of the Web page?
lang=”…”
What attribute is used to add styles to an element?
style=”…”
What attribute defines some extra information about an element?
title=”…”
What attribute can be assigned in an element in multiple values in the form of a space-separated list?
class=”first-value second-value…”
Which attribute can be assigned in an element with only one value and no spaces?
id=”value”
What is the special syntax that is put in the style attribute made of?
style=”property:value”
Where else can the <style> element be placed to style the elements in the <body>?</style>
the <head> element