HTML fundamentals Flashcards

Learn the essential tags (31 cards)

1
Q

What is the root element in English?

A

The root element is:

html lang=”en” within tag symbols

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

What element contains meta information and with what attribute?

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

How do you specify the title of the document?

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

What is the element for a paragraph?

A

<p> </p>

(Will automatically word wrap)

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

What are the elements for paragraphs and how many types?

A

<h1> etc to <h6></h6></h1>

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

How can you preserve spaces and line breaks in text?

A

<pre> </pre>

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

How can you add emphasis or italicise text?

A

<em> for emphasis <b> for bold <i> for italic</i></b></em>

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

How do you add a line break?

A

<br></br>

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

What is the root element in English?

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

What element contains meta information and with what attribute?

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

How might you use the class attribute with span?

A

.tab {margin-left: 50px;} (in header)

<p><span>Text here</span></p> (body)

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

What is the element for a paragraph?

A

<p> </p>

(Will automatically word wrap)

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

What are the elements for paragraphs and how many types?

A

<h1> etc to <h6></h6></h1>

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

Give an example of stylesheet contents?

A
body {background-colour: powder blue;}
h1 {color: blue;}
p {color: red;}
p.tab1 - p elements with class tab1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does an html page link to a stylesheet?

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

How do you add a line break?

17
Q

What elements will define blocks of text, which can take style attributes?

A

or <div></div>

18
Q

How do you insert a single space?

19
Q

In a table, how to you get multiple rows or columns?

A

Use attributes colspan and rowspan.

20
Q

How might you use the class attribute with span?

A

.tab {margin-left: 50px;} (in header)

<p><span>Text here</span></p> (body)

21
Q

What file extension defines html files?

A

.html or .htm

22
Q

What file extension defines css files?

23
Q

Give an example of stylesheet contents?

A

body {background-colour: powder blue;}
h1 {color: blue;}
p {color: red;}

24
Q

How does an html page link to a stylesheet?

25
How do you define the target of styling?
Use one of four selectors: element, class, ID or pseudo (hover, visited)
26
How do you define a table with a border?
27
How do you define the elements within a table?
defines each header element defines each header row defines each table cell
28
How do you define unordered lists?
  • Item
  • Another item
29
How do you define ordered lists?
  1. Item
  2. Another item
30
How do you define definition lists?
Definition term
Definition data
(can be multiple)
31
How do you define a document as HTML5?
Use | !DOCTYPE html