HTML Flashcards
What is HTML?
Markup language for creating and displaying webpages.
Not a programming language.
Building blocks of the web.
Details on creating an HTML file
Does not need a server
Files must end with .html
What is the root / home page of a website?
Index.html
What are HTML Tags?
The basic building block of any web page.
Different tags format the way information is displayed.
What are element names surrounded by?
Angle brackets <tag>content</tagname></tag>
They usually come in pairs, start tag and end tag
What is a different between the start and end tag?
The end tag has a forward slash
What is a self closing tag?
Tags that don’t contain any content
<br></br>
What is in the head area?
Page title, links to CSS files, and JV files, metadata (description and keywords)
What tags are contained in the body?
Headings <h1>
paragraphs <p>
What should be the first thing on a web page?
The declaration which tells the browser what type of HTML the page is written in, which is HTML5
<!DOCTYPE html>
How do you make comments in HTML?
<!- -
Left arrow, bang, hyphen, hyphen
What is the default style sheet?
User agent stylesheet
List two characteristics of Inline Elements
Do not start on a new line
Take only the necessary width
List two characteristics of Block Elements
Start on a new line
Take full width available
What are some Inline Level tags?
<span>, <img></img>, <a></a></span>
What are some Block Level tags?
<div>, <h1> - <h6>, <p>, <form>
</form></p></h6></h1></div>
What does the strong tag do?
Says the text is surrounds should be strong in some way, such as bold.
Also note that strong can be customized using CSS
What does the <‘em> tag do?
It emphases the text it surround, e,g. Italics
What is the <a> tag used for?</a>
Puts a link in the text
What is the attribute href used for?
The location where you want a link for an <a> tag to open</a>
Hypertext reference
What is the target attribute used for?
Opens a new tab when clicking on a link so the user is not sent away from the active webpage
How to you write the attribute for target?
Target=“_blank”
What is main purpose of tags?
To provide information about elements
What are key value pairs?
The key is the constant the defines the data set, e.g. href
And a value which is a variable that belongs to the set “http://google.com”
What are values in key value pairs always in?
Quotes
What is a List?
A bullet point item
What type of tag does a list item have?
<li>
</li>
What is the tag for an ordered list?
<ol>
</ol>
What is a basic difference between an UL and OL?
a UL is bulleted and an OL is numbered
When are UL’s usually used?
Web site navigation, e.g. navigation bar at the top of a page
What is the thead tag used for?
The area for the table heading
What is the tag <tr> used for?
To create a row for the table
What is the tag <td> used for?
Table data that goes into a row
What does the attribute action, within a form do?
Submit the form to a certain page, e.g. php
Action=“process.php”