Web Technologies: HTML & CSS Flashcards

1
Q

What does HTML stand for?

A

Hyper Text Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is HTML?

A

standard language for creating the structure of webpages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some common HTML tags?

A

<html> </html>

<head> </head>

<title> </title>

<body> </body>

<h1> </h1>

<p> </p>

<img></img> </img>

<div> </div>

<form> </form>

<footer> </footer>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To to create a form input text field with HTML?

A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to create a form label in HTML?

A

<label> Last Name:</label>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does CSS stand for?

A

Cascading Style Sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is CSS?

A

language used to style a HTML document, describing how the elements should be displayed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to Implement CSS?

A

Inline
Internal
External

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Inline CSS meaning?

A

using the style attribute inside HTML elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Internal CSS meaning?

A

using a <style> element in the <head> section.</style>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

External CSS meaning?

A

by using a <link></link> element to link to an external CSS file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Example of how to select an element in CSS?

A

h2 {

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Example of how to select an ID in CSS?

A

idexample {

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Example of how to select a Class in CSS?

A

.class {

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What CSS properties are used to change font colour and background colour?

A

h1 {
background-color: lightgrey;
color: blue;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What CSS property is used to add fonts?

A

the font-family property is used. e.g.

.p1 {
font-family: “Times New Roman”, Times, serif;
}

17
Q

What CSS property is used to add a border?

A

border-style

18
Q

What CSS property is used to add a header layout?

A

.header {
}

19
Q

What CSS property is used to add a nav bar layout?

20
Q

What CSS property is used to add a nav bar link?

A

.topnav a {
}

21
Q

What CSS property is used to change colour of nav bar link when hovered?

A

.topnav a:hover {
}

22
Q

What CSS property is used to add a footer layout?

A

.footer {
}

23
Q

What is a HTML class?

A

Selects elements with a specific class attribute

24
Q

What is a HTML ID?

A

Can only be used by the one HTML element its assigned to within that page e.g. a logo for the header bar, this id name can be called in CSS to be specifically edited

25
How to comment in CSS?
/* This is a single-line comment */
26
What programming language writes comments like this?
HTML
27
What is responsive Design?
Responsive web design makes your web page look good on all devices.
28
Responsive Design Example?
@media only screen and (max-width: 600px)
29
What does the Viewport do?
The viewport will give the browser instructions on how to control the page’s dimensions and scaling
30
Usability Needs for websites?
- Effective Navigation - Consistent Design - Logical Structure - Ensure colour has strong value so it works in black in white - Use a typeface that is readable e.g. Sans Serif font for body text especially!
31
What should you do when you run code through a validator?
When testing code through a HTML and CSS checker, it is important to fix all the errors on your site