PRE-MIDTERM Flashcards
What is HTML?
Hyper Text Markup Language.
It is used to structure the contents of a webpage.
What are HTML elements?
HTML uses tags to define elements.
< h > - tag is for heading
< p > - tag is for paragraph
< Img src= “image_url” >
What are container tags?
They’re the opening and closing tags.
< > and </ >, respectively.
What is the basic structure of an HTML file?
HTML, head and body tags.
< html >
< head >
< /head >
< body >
This is a line of text.
< /body >
< /html >
What are the main parts of HTML?
Head and body.
< head >
< /head >
< body >
< /body >
General HTML element tag consists of:
Opening tag, content, closing tag.
What is the role of an attribute in HTML?
It modifies the tag.
Such as measurements: “10px”, “10%”
Align = “right”, “left”, “centre”
How do you make a table?
< table > < tr > < td > < /td > < td > < /td > < /tr > < /table >
Which attribute is used to expand a cell for two or more cells?
Colspan.
What is the structure of the header tag?
< html >
< head > < /head >
< body >
< header >
< /header >
< /body >
< /html >
The header element is appropriate to use inside the ______?
The body tag.
< body >
< /body >
Where is the <footer> element and what does it include?
Located at the very bottom of the web page as the footer.
The following information is usually provided by the <footer> </footer> tags:
- Contact Information
- Privacy Policy
- Social Media Icons
- Terms of Service
- Copyright Information
- Sitemap and Related Documents
What is the <nav> tag?
The <nav> tag represents a section of a page that links to other pages or to certain sections within a page.
It is intended for only MAJOR blocks of navigation links.
What is this?
< nav >
< ul >
< li >< a href=”#” > Home < /a > < /li >
< li >< a href=”#” > Home < /a > < /li >
< li >< a href=”#” > Home < /a > < /li >
< /ul >
< /nav >
A major block of navigation.
What is this?
< nav >
< ul >
< li >< a href=”#” > Home < /a > < /li >
< li >< a href=”#” > Home < /a > < /li >
< li >< a href=”#” > Home < /a > < /li >
< /ul >
< /nav >
A major block of navigation.