HTML Flashcards
(170 cards)
What does HTML stand for?
HyperText Markup Language
What is a markup language?
a computer language that defines the structure and presentation of raw text
What is HyperText?
text displayed on a computer or device that provides access to other text through links, also known as hyperlinks
What is HTML composed of?
Elements
What is the HTML element for paragraph?
<p> (opening tag)
| </p>
(closing tag)
What is an HTML element made of?
a tag and content
How is HTML organised in relationships?
as a collection of family tree relationships
What is an element called when it is contained within another element?
The child of that element, and the child element is nested inside the parent element
The child element is ____ inside the parent element?
Nested
What is the relationship between elements and their ancestor and descendent elements known as?
Hierarchy
What are elements at the same level called?
Siblings
How many headings / heading elements are there in HTML?
6
What are the 6 headings in HTML?
< h1 > — used for main headings. All other smaller headings are used for subheadings
< h2 > < h3 > < h4 >< h5 > < h6 >
What are the 6 headings in HTML?
<h1> — used for main headings. All other smaller headings are used for subheadings
</h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
Why is <div> useful?</div>
It it useful for grouping elements together
What is the < div > element short for, and what does it do?
<div> is short for division and a <div> contains or divides the page into sections</div></div>
Do <div>s have a visual representation?</div>
No
How do <div>s help with style?</div>
<div>s allow you to group HTML elements to apply the same styles for all HTML elements inside</div>
How do you ensure readability with <div>s?</div>
Add two spaces of indentation
What is an attribute?
Attributes are content added to the opening tag of an element
What two parts are attributes made up of?
the name of the attribute
the value of the attribute
What does the id attribute do?
specify different content
come back to add more
What do attributes do?
Attributes can be added to the opening tag of an HTML element to change its default behavior or provide additional data about it
What do attributes consist of?
Attributes consist of a name and a value in the format name=”value”:
- compared to unordered lists
- ?