HTML Flashcards
What does HTML stand for?
Hyper Text Markup Language
What are the four parts of HTML elements?
- Element Itself
- Opening Tag
- Content
- Closing Tag
What does the attribute ‘href’ mean?
Hyperlink Reference
How many heading elements are there in HTML?
Six. With 1 being the largest, and 6 being the smallest.
What is the ‘< div >’ tag used for?
The ‘< div >’ tag is used for grouping HTML elements together. It also allows for a neat, organized look.
What is an attribute?
Attributes are used to add information or modify the behavior of HTML elements.
What do attributes consist of?
A name and a value, expressed as: ‘ id=”example” ‘
Where are attributes located?
In the opening tag of an element.
What are two different ways you can display text in HTML?
With the ‘< span >’ and ‘< p >’ tags. (p for paragraph) The ‘< span >’ tag serves as a hook for CSS or JavaScript manipulation while the ‘< p >’ tag holds plain text.
What do you add to any tag that is the child of a different tag?
Two spaces of indentation for readability.
Typically, what does the ‘< em >’ and ‘< strong >’ tags do?
The ‘< em >’ (emphasize) tag adds italics. And the ‘< strong >’ tag makes the text bold.
How do you modify spacing in the browser?
Use the ‘ < br >’ (line break) tag.
How do you create an unordered list in HTML? (Bullet point list)
Use the ‘< ul >’ (unordered list) tag. Within the opening and closing unordered list tags you should have ‘< li >’ (list) tag to hold raw text.
How do you create an ordered list in HTML? (Numbered list)
Use the ‘< ol >’ (ordered) list tag. Within the opening and closing ordered list tags you should have ‘< li >’ (list) tags to hold raw text.
What is a self closing tag in HTML?
A tag that does not require a closing tag. They are formatted like so: ‘< img />’ (Self closing tags do not require the forward slash)
How do you add an image to your browser using HTML?
Use the ‘< img />’ tag. The image tag requires a src (source) attribute and the value is typically the images URL.
How do you add a description of an image to the ‘< img />’ tag? (Typically used for screen readers but can also be used in case the image doesn’t load and can also serve to increase your search engine optimization)
You add the alt attribute.
How do you add a video to your website using HTML?
Use the ‘< video (URL) (height=””)(width=””)(controls) >’ tag with the accompanying attributes. Be sure to include a closing tag.
What are some benefits of coherent structuring?
- Readability
- Accessibility
- Ease of Styling
How do you let a web browsers know that you are using HTML?
By starting with a Document Type Declaration. This is the declaration: ‘< !DOCTYPE html >’
How do you add HTML structure and content?
With the ‘< html >’ opening and closing tag.
How do you give the browser information about your website?
Use the ‘< head >’ tag you can add metadata to the website.
What displays on the webpages tab and is always in the ‘< head >’ tag?
The ‘< title >’ element and the content it holds.
How do you add a link to a webpage?
Using the ‘< a >’ (anchor) element with the ‘href’ attribute.