Chapter 3 : Introduction to HTML Flashcards

1
Q

What is HTML used for?

A
  1. Structure
  • NOT appearance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Will browser tolerate invalid HTML code and parse errors

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

What must HTML documents start with?

A
  1. Document Type Definition ( DTD )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List out some code examples that shows XHTML is strict than HTML ( 3 )

A
  1. Tags and attribute names must be in lowercase
  2. All tags must be closed ( <be></be> ) and implies missing closing tags
  3. XHTML allows only one root <html> element ( HTML allows more than one )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the advantages of using XHTML instead of HTML?

A
  1. Load faster than HTML
  2. Valid code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is forbidden in XHTML?

A
  1. Attribute Minimization

<input></input>

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

What does <head> section shows?

A
  1. Contains information that doesn’t show directly on the viewable page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List out the elements used in <head> section ( 4 )

A
  1. <meta></meta>
  2. <script>
    
    </script>
  3. <style>
    </style>
  4. <!--Comments-->
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Who / What rely on the <title> element? ( 2 )</title>

A
  1. Search Engines
  2. People
  • Used to specify a title in the window title bar
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to use the <meta></meta> tag to show description in order to aid in Search Engine Optimization ( SEO )?

A

<meta name=”description” content=”HTML tutorial” / >

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

How to use the <meta></meta> tag to show keyword in order to aid in Search Engine Optimization ( SEO )?

A

<meta name=”keywords” content=”html, web design, styles />

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

How to use the <meta></meta> tag to show author name?

A

<meta name=”author” content=”Chris” / >

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

How to use the <meta></meta> tag to refresh content automatically?

A

<meta></meta>

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

What is the < script > tag used for?

A
  1. Embed scripts into an HTML document
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Where are < script > tag being executed?

A
  1. In the Client’s Web Browser
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the supported client-side scripting languages? ( 3 )

A
  1. JavaScript
  2. VBScript
  3. JScript
17
Q

What does the <style> tag used for?</style>

A
  1. Embeds formatting information ( CSS Styles ) into HTML pages
18
Q

What does the <body> tag describes?

A
  1. Viewable portion of the page
19
Q

What is HTML comprised of?

A
  1. Elements and Tags
  • Begins with <html> and ends with </html>
20
Q

When does formatting can be sacrificed?

A
  1. Performance Reasons
21
Q

How to increase readability and facilitate debugging for HTML?

A
  1. Every block element should start on a new line
  2. Every nested block element should be indented
  3. Browsers ignore multiple whitespaces in the pages source, so formatting is harmless
22
Q

What html tag is used to display text at the browser tag?

A
  1. <title>
    </title>
23
Q

How to create hyperlink tags

A

<a>Link to Youtube</a>

24
Q

What image parameter is used for getting the image and what parameter is used when the image can’t be loaded?

A
  1. src
  2. alt

<img></img>

25
What html tag to use for inserting a line break ? ( Actual Line )
1.
26
How to break the link of an element inside html?
1.
27
How to made the word italic?
1.
28
How to bold the text with just html elements?
1.
29
What tags is used for Headings?
1.

to

30
List out 2 html tags that define sections
1.
2.