Basic Tags Flashcards

1
Q

What is the basic HTML template?

A
‹!DOCTYPE html›
‹html›
   ‹head›
      ‹title›Heading Example‹/title›
   ‹/head›	
   ‹body›
      ‹h1›This is heading 1‹/h1›
   ‹/body›	
‹/html›
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the heading tag and how many levels are there?

A

‹h1› Some head ‹/h1›

There are 6 levels h1 to h6

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

What is the paragraph tag?

A

‹p› Some paragraph goes in here ‹/p›

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

What is the line breake tag?

A

‹br /›

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

What is the centering content tag?

A

‹center› Some text ‹/center›

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

What is the horizontal lines tag?

A

‹hr /›

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

What is the preserve formating tag?

A
Is used to preserve the formating for some text, like the indentation of some code.
‹pre›
   function testFunction( strText ){
      alert (strText)
   }
‹/pre›
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to add spaces to your text?

A

Using the nonbreaking spaces:

&nbsp

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

What is the difference between a tag and an element?

A

The element consists of a starting tag a content and an ending tag if one is required.

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