2.1 html Flashcards
What is the principle of markup language in HTML?
Tags are commands to display styles (color, format, location). Elements become objects in the browser
What is the minimal structure of an HTML5 file?
<!DOCTYPE html>\
<html>\
<head> <title> Our first document </title>\
<meta></meta>\
</head>\
<body>\
</body>\
</html>
What does the <p>
element do?
Places text in a paragraph, inserts a blank line
What does the <br>
tag do?
Breaks the current line, no blank line, no closing tag
What does the <pre>
tag do?
Displays text exactly as entered
What is the difference between <h1>
and <h6>
?
<h1>
is the largest heading, <h6>
is the smallest
What does the <b>
tag do?
Bold text
What does the <strong>
tag do?
Important text, usually bold
What does the <i>
tag do?
Italic text
What does the <em>
tag do?
Emphasized text, usually italic
What does the <mark>
tag do?
Marked text
What does the <small>
tag do?
Smaller text
What does the <del>
tag do?
Deleted text
What does the <ins>
tag do?
Inserted text
What does the <sub>
tag do?
Subscript text
What does the <sup>
tag do?
Superscript text
What does the <code>
tag do?
Program code, often in Courier font
What is the purpose of <meta charset="UTF-8">
?
Character encoding for many characters
What are character entities used for?
Use to display reserved characters or symbols
What does
represent?
Non-breaking space
What does <
represent?
Less than sign (<)
What does >
represent?
Greater than sign (>)
What does &
represent?
Ampersand (&)
What does "
represent?
Double quotation mark (“)”
“What does '
represent?”,”Single quotation mark (‘)”
` tag do?