Lecture 7 Flashcards

1
Q

What does HTML stand for?

A

HyperText Markup Language.

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

What is HTML?

A

A set of markup symbols or codes used to display content on the internet.

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

What is the purpose of HTML?

A

To tell web browsers how to display a webpage’s words, images, and other elements.

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

What is HyperText in HTML?

A

A feature that allows users to click a link and navigate to a new page.

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

What is a markup in HTML?

A

The text that appears between pointed brackets < and >.

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

What are HTML tags?

A

Markup codes enclosed between < and > characters.

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

How does HTML use tags?

A

Tags are used to indicate when display effects begin and end.

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

What are paired HTML tags?

A

Tags that come in pairs, such as <p> and </p>.

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

How has HTML evolved over time?

A

Early versions were static (Web 1.0), while newer versions (Web 2.0, 3.0) support dynamic and interactive content.

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

What is the purpose of <!DOCTYPE> in HTML?

A

It specifies the version of HTML and ensures consistent parsing across browsers.

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

What does <!DOCTYPE> mean in HTML 4.01?

A

It refers to a Document Type Definition (DTD).

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

What is the basic structure of an HTML document?

A

It includes <html>, <head>, and <body> tags.

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

What is the function of the <html> tag?

A

Wraps the entire HTML document.

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

What is the function of the <head> tag?

A

Contains metadata like the title, character set, and styles.

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

What is the function of the <title> tag?

A

Sets the document title displayed in the browser tab.

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

What is the function of the <body> tag?

A

Contains the main content of the HTML document.

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

What are HTML headings?

A

Tags <h1> to <h6> define headings, where <h1> is the largest and <h6> is the smallest.

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

What is the function of the <p> tag?

A

Defines paragraphs in HTML.

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

What is the function of the <a> tag?

A

Creates hyperlinks to other documents or resources.

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

What attributes are used with the <a> tag?

A

href for the link address and target for opening in a new tab or window.

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

What is the function of the <img> tag?

A

Embeds images in an HTML document.

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

What attributes are used with the <img> tag?

A

src for the image source and alt for alternative text.

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

What are <ul> and <ol> tags used for?

A

Define unordered (<ul>) and ordered (<ol>) lists.

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

What is the <li> tag used for?

A

Represents list items in unordered or ordered lists.

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

What is the <div> tag used for?

A

Groups content for styling or layout purposes.

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

What is the <span> tag used for?

A

Applies styles to inline elements.

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

What is the purpose of the <br> tag?

A

Inserts a line break within text.

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

What is the purpose of the <hr> tag?

A

Adds a horizontal rule or line.

29
Q

What is the function of the <form> tag?

A

Wraps form elements for user input.

30
Q

What is the function of the <input> tag?

A

Creates input fields for forms.

31
Q

What are some common attributes for <input> tags?

A

type for input type, name for the field name, and value for default values.

32
Q

What is the purpose of <table>, <tr>, and <td> tags?

A

Construct tables (<table>), rows (<tr>), and cells (<td>).

33
Q

What is the <iframe> tag used for?

A

Embeds external content like web pages or videos.

34
Q

What attributes are used with the <iframe> tag?

A

src for the URL and width/height for dimensions.

35
Q

What is HTML5 used for in web applications?

A

Enables dynamic forms, multimedia handling, and interactive user experiences.

36
Q

What are the applications of HTML in email templates?

A

Creates visually appealing and responsive email designs.

37
Q

What is the role of HTML in game development?

A

Paired with JavaScript, it allows lightweight browser-based games.

38
Q

How is HTML used in online learning?

A

Structures educational resources for easy navigation and readability.

39
Q

What is the <article> tag used for?

A

Represents a self-contained piece of content, such as an article.

40
Q

What is the <aside> tag used for?

A

Defines content aside from the main content, such as sidebars.

41
Q

What is the <footer> tag used for?

A

Represents the footer of a section or page.

42
Q

What is the <header> tag used for?

A

Represents the header of a section or page.

43
Q

What is the <nav> tag used for?

A

Defines navigation menus.

44
Q

What is the <section> tag used for?

A

Represents a generic section of content.

45
Q

What is the <main> tag used for?

A

Wraps the main content of a document, excluding headers and footers.

46
Q

What is the <figure> tag used for?

A

Represents referenced content, such as images or diagrams.

47
Q

What is the <figcaption> tag used for?

A

Provides a caption for <figure> content.

48
Q

What is the <mark> tag used for?

A

Highlights text for reference or emphasis.

49
Q

What is the <abbr> tag used for?

A

Represents abbreviations or acronyms, with optional expansions.

50
Q

What is the <time> tag used for?

A

Represents a specific period or range of time.

51
Q

What is the <progress> tag used for?

A

Shows task completion progress.

52
Q

What is the <meter> tag used for?

A

Displays a scalar measurement within a range.

53
Q

What is the <code> tag used for?

A

Represents a piece of computer code.

54
Q

What is the <pre> tag used for?

A

Preserves spaces and line breaks in preformatted text.

55
Q

What is the <blockquote> tag used for?

A

Defines block quotations from another source.

56
Q

What is the <q> tag used for?

A

Defines short inline quotations.

57
Q

What is the <cite> tag used for?

A

Represents the title of a creative work or a cited person.

58
Q

What is the <address> tag used for?

A

Represents contact information for an article or page.

59
Q

What is the purpose of embedding content in HTML?

A

Simplifies the inclusion of videos, maps, and social media feeds.

60
Q

What are some uses of HTML in web development?

A

Website development, web applications, email templates, game development, and online learning.

61
Q

What are HTML attributes?

A

Additional information provided within a tag to define its behavior or appearance.

62
Q

What are examples of commonly used HTML attributes?

A

id, class, style, src, href, alt, and target.

63
Q

How does HTML interact with CSS?

A

HTML structures content, while CSS styles it for visual presentation.

64
Q

How does HTML interact with JavaScript?

A

HTML provides the structure, and JavaScript adds interactivity and dynamic behavior.

65
Q

What are semantic tags in HTML?

A

Tags that provide meaning to the structure, such as <article>, <section>, and <header>.

66
Q

What is the difference between semantic and non-semantic tags?

A

Semantic tags describe their purpose (e.g., <header>), while non-semantic tags do not (e.g., <div>).

67
Q

What is HTML5?

A

The latest version of HTML that supports multimedia, semantic tags, and responsive design.

68
Q

What are best practices for writing HTML?

A

Use semantic tags, clean indentation, proper nesting, and include alt text for images.