Beginner HTML Flashcards
What does HTML stand for?
HyperText Markup Language
What is HTML used for?
To build web pages. To structure content. To provide meaning to that content.
What are HTML tags?
Tags help to structure an HTML document. They surround content and apply meaning to it.
What is a document type declaration?
It lets the browser know which flavor of HTML you’re using.
The main content of the document will appear between which tags?
The body tag
Why do you sometimes see self closing tags with an extra line?
This is a remnant of XHTML. HTML5 doesn’t care which format you use.
Tags can also include extra bits of information. What are they called?
Attributes appear inside the opening tag and their values sit inside quotation marks.
What are HTML elements?
Elements are the bits that make up web pages. The element includes the opening tag, the content, and the closing tag. E.g. The body element.
What element is used to give an HTML page a title?
The title element. Title is the most important element within the head element.
Which element appears before the body element and contains information about the page?
The head element. The information in the head element does not appear in the browser window.
What is the p tag used for?
To create paragraphs. Paragraphs should be used if two blocks of text are intended to be separate from one another.
What tag is used to give emphasis to text?
The emphasis tag: em
Browsers will display em in italics.
This HTML5 tag replaces the old i (talics) tag.
What tag should you use to give text strong importance?
The strong tag.
Browsers will display strong in bold.
This HTML5 tag replaces the old b (old) tag.
How would you create a line-break in HTML?
Using the line-break tag: br
Line-break is a self-closing tag. It has no closing tag because it does not contain content.
How do you create headings in an HTML document?
Using the h1, h2, h3, h4, h5 and h6 tags.
The h1 tag is only used once as the main heading
The h2 to h6 tags can be used often but only in order
What are the three types of lists in HTML?
- ) Unordered lists: ul
- ) Ordered lists: ol
- ) Definition lists: dl
What is the li tag used for?
List items.