HTML fundamentals Flashcards

Learn the essential tags

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?

A

<br></br>

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?

A

&nbsp

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?

A

.css

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?

A
25
Q

How do you define the target of styling?

A

Use one of four selectors: element, class, ID or pseudo (hover, visited)

26
Q

How do you define a table with a border?

A
27
Q

How do you define the elements within a table?

A

defines each header element
defines each header row
defines each table cell

28
Q

How do you define unordered lists?

A

<ul>
<li>Item</li>
<li>Another item</li>
</ul>

29
Q

How do you define ordered lists?

A

<ol>
<li>Item</li>
<li>Another item</li>
</ol>

30
Q

How do you define definition lists?

A

<dl>
<dt>Definition term</dt>
<dd>Definition data</dd> (can be multiple)
</dl>

31
Q

How do you define a document as HTML5?

A

Use

!DOCTYPE html