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›
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
3
Q
What is the paragraph tag?
A
‹p› Some paragraph goes in here ‹/p›
4
Q
What is the line breake tag?
A
‹br /›
5
Q
What is the centering content tag?
A
‹center› Some text ‹/center›
6
Q
What is the horizontal lines tag?
A
‹hr /›
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›
8
Q
How to add spaces to your text?
A
Using the nonbreaking spaces:
 
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.