HTML Tags and Their Functions Flashcards
What should the <body> NOT include?
<h1>
</h1>
Which is smaller? <h2> or <h4>?
<h4>
</h4>
What does the <em> tag do to the text is surrounds?</em>
Makes it Italic
What does the <strong> do for the text it surrounds?</strong>
Makes it bold
What tag do you use for metadata elements and your webpage title for the browser?
<head></head>
What should all website codes start with?
<!DOCTYPE html>
What attribute do you add to an <a> to turn it into a useable link?</a>
href
What attribute and value can be used for the <img></img> to make it load only when the user scrolls to that part of the page?
loading=”lazy”
What syntax do you use for adding notes to your code?
<!-- and -->
What attribute and value do you use when you want your link to open in a new tab?
target=”_blank”
What self-closing tag allows you to add a line that shows up on the page to divide up sections?
<hr></hr>
What attribute pairs with an input tag to put replaceable text in a typed field to give a hint to viewers what to input?
placeholder
What attribute and value can be paired with an <input></input> to make circular buttons that you can only select one of?
type=”radio”
What attribute can be paired with a checkbox or radio input to select one or more options automatically? (hint, it doesn’t require a value)
checked
What tag(s) do you use for list items?
<li></li>
The semantic tag <address></address> will to what to the text inside it?
Make it italic
What semantic tag groups an image and its caption together?
<figure></figure>