HTML Flashcards
¿What does HTML stand for?
Hyper Text Markup Language
What does HTML do?
Describes the structure of a Web page
What is HTML composed of?
Consists of a series of elements
What is an HTML Element?
An HTML element is defined by a start tag, some content, and an end tag.
What is the difference between .htm and .html extensions?
Is one letter only, or we can say the spelling of the words (the letter ‘L’). Earlier operating systems were not so powerful and capable of taking a four-letter word as an extension, so HTM found its existence.
What is “!DOCTYPE” tag used for? and how many times can be used?
Represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
Which tags determine the beginning of the HTML document and which the visible part of the HTML document?
< html > < /html > and < body > < /body >
What are the “h” tags for and what number do they go up to?
They are HTML headings and go from “h1” to “h6”
What are the “p” tags for?
They are HTML paragraphs.
What are “a” tags for? What attributes do they have? and what are they for?
- They are HTML links
- They have “href” attribute
- This is where the destination link is specified.
What are “img” tags for? What attributes do they have? and what are they for?
- They are HTML images
- They have “src” , “alt” , “width” , “height” attributes
- “src” = source file, “alt” = alternative text , “width” and “height”.
What are attributes used for?
Attributes are used to provide additional information about HTML elements.
What are “br” tags for?
Defines a line break
What are “hr” tags for?
Defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
What are “pre” tags for?
Defines preformatted text.
The text inside a “pre” element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks
What are “b” tags for?
Defines bold text, without any extra importance.
What are “strong” tags for?
Defines text with strong importance. The content inside is typically displayed in bold.
What are “i” tags for?
Defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic.
Is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc.
What are “em” tags for?
Defines emphasized text. The content inside is typically displayed in italic.
A screen reader will pronounce the words in “em” with an emphasis, using verbal stress.
What are “small” tags for?
Defines smaller text
What are “mark” tags for?
Defines text that should be marked or highlighted
What are “del” tags for?
Defines text that has been deleted from a document. Browsers will usually strike a line through deleted text
What are “ins” tags for?
Defines a text that has been inserted into a document. Browsers will usually underline inserted text
What are “sub” tags for?
Defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas
What are “sup” tags for?
Defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes