1/18
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What does <!DOCTYPE html> do?
Tells the browser the page is using HTML5
What does <head>___</head> contain?
Metadata, title, CSS links, scripts——information not shown on the page.
What does the <body>___</body> contain?
All visible content displayed on the webpage.
What is the purpose of <h1> through <h6> tags?
Define headings; largest to smallest respectively.
What does the <p>___</p> tag represent?
A paragraph of text
What does the <a href=”__”> tag do?
Creates a clickable link to another page or location
What types of targets are used with <a href=”_”>? What does each do?
target = “_blank” —> Opens link in new tab/window
target = “_self” —> Default behavior; opens link in current tab/window
What do the <ul> and <ol> tags represent?
ul = unordered list
ol = ordered list
Both require <li>___</li> to write the list
What does the <img> tag do?
Displays an image
Use <img src=”___”>
What is the purpose of the alt=”__” attribute in <img>?
Provides alternate text for screen readers and when the image cannot load
What does <div> represent?
Block-level container used to group elements
What does <span> represent?
Inline container used to style small pieces of text
What’s the difference between class and id in HTML?
Class can be reused on many elements
Id must be unique on the page
What does “color:” control in CSS do?
Controls the text color of an element
What does “background-color:” control?
Background color of an element