HTML Flashcards
What is the opening structure that is needed in html?
<!DOCTYPE html>
<head>
<title>Document
</title>
</head>
<body>
</body>
</html>
What does “header one” look like?
<h1></h1>
How may headers are there?
6
What is the paragraph symbol?
<p></p>
How do you comment
<!-- TODO -->
Where does main go and what does it do?
Makes your HTML easier to read and help with Search Engine Optimization (SEO) and accessibility. It goes with the main parts of the page that you want to identify.
How do you add images to the page?
<img></img>
What should all img elements have and where?
alt =”” at the end of the hyphens of the img src
What does the anchor attribute do?
Links to another page
What does the anchor attribute look like?
<a></a>
How do you set a set these words “Hello World!” into an anchor?
<a>Hello World!</a>
How do you add a target attribute and what does it do?
<a>Hello World!</a>
It opens a new tab.
What separates everything apart?
<section></section>
What types of lists are there and whats the difference?
<ul></ul>
<ol></or>
Numbered vs unnumbered
</ol>
How do you list items?
<li></li>
What does the figure element do?
Represents self-contained content and will allow you to associate an image with a caption.
This is used to add a caption to describe the image contained within the figure element.
<figcaption></figcaption>
Emphasis
<em></em>