HTML Basics Flashcards
What is an attribute?
Attributes provide additional information about the contents of an element. They appear on the opening tag of an element and are made up of two parts: a name and a value, suggested by an equals sign.
Can attributes be used on any element?
The majority of attributes can be used on certain elements only, but a few attributes liked the LANG attribute can appear on any element.
What will appear in the browser window from the body element?
Everything inside the body element is shown inside the main browser window.
What is the head element?
The head element usually contains information ABOUT the page, but doesn’t appear in the main browser window. The head element usually contains the title element.
How are tags and elements different?
Tags and elements are the same thing! Two names for the same thing… a tag or element will come in pairs, an opening tag and a closing tag.
What is structural markup?
Structural markup: The elements that you can use to describe both headings, subheadings, and paragraphs.
What is semantic markup?
Semantic markup: Provides extra information such as where emphasis is placed within a sentence.
How many headings are there in HTML5?
There are 6 headings: h1, h2, h3, h4, h5, h6
Do paragraphs show on their own line?
Yes, by default, a browser will show each paragraph on a new line with some space between it and any subsequent paragraphs. Same with headings - they each get their own line.
How do you make text appear bold?
You make text appear bold by using the < b > opening tag and < /b > closing tag.
What tags would you use for superscript?
The < sup > and < /sup > tags.
What characters would you use for subscript ?
The < sub > and < /sub > tags.
What is white space collapsing?
When browsers see two or more white spaces side by side in the code, it only displays one space.
How do you add a line break inside the middle of a paragraph?
You make a line break using the < br > tag.
What is one way to create a break between themes?
You can create a horizontal line using the < hr > tag.