Quiz Flashcards
HTML
HyperText Markup Language
CSS
Cascading Style Sheets
HTML & CSS are
the two major technological components for building a website.
HTML is used to create the structure and the content for a website,
addressing things like text, links, and images. T or F
True
CSS is used to create the look and formatting of the content created in HTML,
addressing things like typeface, color and layout. T or F
T
What is a tag and the
content between the opening and closing tags?
HTML element
What is an HTML tag?
the element name, surrounded by an opening (<) and closing (>)
What is an opening tag?
the first HTML tag used to start an HTML element. The tag
type is surrounded by opening and closing angle brackets
What is an closing tag?
the second HTML tag used to end an HTML element. Closing
tags have a forward slash (/) inside of them, directly after the left angle bracket.
What is Body?
Body is the key HTML element used to build a webpage. Only content inside the opening and closing
body tags can be displayed to the screen.
What Are Attributes?
Attributes are modifiers that provide more information about an element in HTML and are usually seen in name/value pairs; the name is the attribute name
and the value is what the attribute is set to. Values are enclosed in double or single quotation marks
What is a variable?
A variable allows you to change a value throughout code. They help in using an important programming tool: repetition instead of writing out a piece of data every time it is needed, write it out once and the computer remembers it and can repeat that information back as many times as it is needed.
What is a value?
A value is assigned to a variable to save time
What are CSS Elements
CSS elements are html elements that have been configured using Cascading Style Sheets. CSS elements can be used to set font sizes, color, background images, borders, margins, and other design elements. They enable customization of the look and feel of a website without having to write code
What components are CSS divided into?
Selector: used to identify the HTML element you want to change the look of.
* Declaration: the set of properties and values used to describe the styling of the
element.
* Rule Set: is the code that the browser will use to render the element on the page
External Stylesheet in CSS-Best practice is to separate the HTML and the CSS
codes. This practice improves readability and maintainability. T or F
T
To create an external stylesheet use the file extension .css Example: style.css. T or F
T
When separating the HTML code from the CSS code (creating two files), the two
files need to be linked. T or F
T
CSS has a number of properties that can be used to change the look of an
element. T or F
T
CSS has several different units of measurement such as pixel, ems, and rems
which are used to specify the size and spacing of elements. T or F
T
HTML elements must have an opening and a closing tag T or F
T
What is CSS Inheritance?
any style applied to a parent element will be inherited by its
children
What is Responsive Design?
a technique of creating a web design that responds to the size of the screen that the page is viewed on. This is usually done with
media queries
What is a Head section?
starts with a <head> tag and ends with a </head> tag and contains several tags with information about the website including: title of the page, meta tags, and stylesheets
What is a body section?
starts with a <body> tag and ends with a </body> tag and contains several tags that provide the content of the website including: headings, paragraphs, and lists