HTML Flashcards
Where do you put non-visible content about the HTML document?
We put them in between the head element.
Where do you put visible content about the HTML document?
We put them inside the body element.
Where do the and tags go in a valid HTML document?
It goes inside the HTML element. Head is below the HTML element opening tag and body is below the head closing element tag.
What is the purpose of a declaration?
To determine which version of HTML is being used.
What are elements?
Elements are designators that define the structure and content of objects within a page. Identified by the use of less-than and greater than angle brackets <>, that is surrounded by the element name.
What are tags?
The use of < > surrounding an element creates what is known as a tag. Tags most commonly occur in pairs of opening and closing tags.
What are attributes?
Attributes are properties used to provide additional information about an element.
What is an id attribute?
id identifies an element.
What is a class attribute?
Which classifies an element.
Give five examples of HTML element types.
o <p></p> o <span></span> o <ol><ol> o </ol></ol><ul></ul> o
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: a name and a value, separated by the equal sign.
Give an example of an HTML entity (escape character).
- © for Copyright (this is how your write it ” © Pokemon “ )
- ® for Trademark
- See pg. 193-194 of HTML & CSS by Jon Duckett
How do block-level elements affect the document flow?
Takes the entire width of the website or whatever element inside of it.
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary. Wherever you put them in, they are there.
What are the default width and height of a block-level element?
o Width - Full width of the block element. (eg. h1 it will be the default size of the total width)
o Height - It will be determined of the content