HTML Flashcards
What does HTML stand for?
Hyper Text Markup Language
What is a markup language?
A computer language that uses tags to define elements with a document.
What does HTML consist of?
HTML consists of a series of elements.
What is the declaration element of a HTML page which defines a document?
<!DOCTYPE html>
What is a element which we call the root element of a HTML page?
<html>
</html>
What is the element that contains information about the HTML header in the page?
<head>
</head>
What is the element that specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab)?
<title>
</title>
Wht is the element that defines a document’s body? It is the container for all visible content (headings images, tables, etc.)
<body>
</body>
What is the element that defines a large heading?
<h1>
</h1>
What is the element that defines a paragraph?
<p>
</p>
How is a HTML defined?
By a start tag and end tag <tagname> Content goes here...</tagname>
Are HTML elements case sensitive?
No
What must all HTML document start with?
A document type declaration <!DOCTYPE html>
What does the HTML begin with and end with?
The root element <html> </html>
What is the visible part of the HTML document?
It’s sandwiched between <body> and </body>
How many types of headings sizes are there?
6 (ex. <h1> </h1>, <h6></h6>)
How can you change the default size of a HTML heading?
Using a CSS font-size property (ex. <h1 style="font-size:60px;"> Heading 1</h1>
What is an HTML attribute?
All HTML elements have attributes which provide additional information about elements
What do HTML attributes come in?
name/value pairs like name=”value”
What is a HTML style attribute used for?
To add styles to an element, such as color, font, size, and more.
What syntax does the HTML style attribute have?
<tagname> (ex. <p> I am red</p>
</tagname>
What is the syntax for the image tag?
<img></img>
What is the src part of a image syntax?
Specifies the path (URL) to the image (required)
What is the alt part of the image syntax?
Specifies an alternate text for the image (if the browser cannot find the image)
How would you add a style attribute to specify the width and height of an image?
<image>
</image>
What is the HTML link syntax?
<a>link text</a>