HTML Flashcards
What is part of a basic HTML skeleton?
!DOCTYPE, HTML, HEAD, TITLE, BODY, HEADER, PARAGRAPH
Where do the and tags go in a valid HTML document?
It tells the browser how to read the HTML
Where do you put non-visible content about the HTML document?
Non-visible content like the title or meta is put into the head element
Where do you put visible content about the HTML document?
Visible content is put into the body element
Where do the head and body tags go in a valid HTML document?
The head element typically go before the body element
Give five examples of HTML element tags.
Head, title, body, header, and anchor
What is the purpose of HTML attributes?
An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them.
Give an example of an HTML entity (escape character).
Ampersand
&
How do block-level elements affect the document flow?
Block-level elements takes up the entirety of the lines width
How do inline elements affect the document flow?
In-line elements only takes up as much space as necessary
What are the default width and height of a block-level element?
Default width is the width of the entire line or the entire line of the parent element that the block is in. Default height is the default size of the content that the block has
What are the default width and height of an inline element?
Default height and width is the minimum size that is needed to display the element
What is the difference between an ordered list and an unordered list in HTML?
Ordered is numbered while unordered are bullet points
Is an HTML list a block element or an inline element?
List elements are blocks
What HTML tag is used to link to another website?
An anchor is used
What is an absolute URL?
Absolute URL are complete URL’s take takes the user to where they need to go
What is a relative URL?
Relative URL are like shorthand directions to where the User wants to go
How do you indicate the relative link to a parent directory?
To go into the parent directory you use ../
How do you indicate the relative link to a child directory?
to get into the child directory you /child directory
How do you indicate the relative link to a grand parent directory?
To get into the grandparent directory you use ../../
How do you indicate the relative link to the same directory?
If its in the same directory you just use the file name
What is the purpose of an HTML form element?
Use to get user input and store it as usable data
Is an HTML element a block element or an inline element?
Inline element
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr, th, td
What purpose do the thead and tbody elements serve?
Separates the header of the columns and the body of the table