W3 HTML STUDY SHEET Flashcards
(51 cards)
Basic HTML Document
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
All HTML elements can have _____
attributes
Attributes provide additional information about _____
elements
Attributes are specified in the _______ tag
start
Attributes usually come in name/value pairs like ______
name = “value”
<img></img>
The <img></img> tag is used to embed an image in an HTML page. The src attribute specifies the path to the image to be displayed:
The <img></img> tag should also contain the ____ and ____ attributes, which specify the width and height of the image (in pixels):
width, height
The _____ attribute is used to add styles to an element, such as color, font, size, and more.
style
<p>This is a red paragraph.</p>
The _____ attribute defines some extra information about an element.
title
The HTML ____ element defines a line break.
<br></br>
The HTML _____ element defines preformatted text.
<pre>
</pre>
Bold Text
<b></b>
Important Text
<strong></strong>
Italic Text
<i></i>
Emphasized Text
<em></em>
Marked Text
<mark></mark>
Deleted Text
<del></del>
Smaller text
<small></small>
Inserted Text
<ins></ins>
Subscript text
Superscript text
The HTML _______element defines a section that is quoted from another source.
<blockquote>
</blockquote>
The HTML ___ tag defines a short quotation.
<q></q>
The HTML_____ tag defines an abbreviation or an acronym, like “HTML”, “CSS”, “Mr.”, “Dr.”, “ASAP”, “ATM”.
abbr