Web Technologies Flashcards

(66 cards)

1
Q

What does CSS stand for?

A

CSS stands for Cascading Style Sheets.

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

What is the purpose of CSS?

A

CSS is used to specify the styles of a markup document, describing how elements should be displayed.

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

How is a basic CSS rule structured?

A

A basic CSS rule is structured as follows: selector { property-name: value; }.

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

What are the three ways to apply CSS styles to a document?

A

Inline styles, where properties are specified directly in an element’s tag.

Document-level styles, where rules are embedded within the HTML head element.

External style sheets, which are linked to the document using a <link></link> element in the head.

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

What does a ‘#’ (hash) indicate in CSS?

A

A hash indicates an ID selector, used to select a single element with a specific id attribute value.

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

What does a ‘.’ (dot) indicate in CSS?

A

A dot indicates a class selector, used to select all elements with a specific class attribute value.

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

Define the term “cascading” in the context of CSS.

A

In CSS, “cascading” refers to the way styles are applied in layers from various sources, where rules from different style sheets might overlap, and the browser assigns them different priorities.

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

What is the order of priority for CSS styles?

A

Inline styles (highest priority).

Document-level styles.

External style sheets (lowest priority).

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

What is SASS and what does it add to CSS?

A

SASS (Syntactically Awesome Style Sheets) is a preprocessor that extends CSS with features like variables, nesting, mixins, and inheritance, making CSS more powerful and maintainable.

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

What is Bootstrap and how is it related to CSS?

A

Bootstrap is a comprehensive CSS framework that incorporates SASS, along with scripting and templates, to create responsive and dynamically styled web applications.

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

What does HTML stand for?

A

HTML stands for HyperText Markup Language.

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

What is the primary purpose of HTML?

A

HTML is used to describe the structure and presentation of web documents readable by humans on the Internet.

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

What is a hypertext document?

A

A hypertext document is text containing hyperlinks to other parts of documents or different documents, which can be activated by clicking.

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

What are the basic components of an HTML document’s structure?

A

An HTML document includes elements defined by tags, attributes within those tags, and the content enclosed by the tags.

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

Describe the basic structure of an HTML element.

A

An HTML element is defined by start and end tags (e.g., <p> and </p>), with the content in between. Attributes within the start tag provide additional settings or information.

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

What is the purpose of the DOCTYPE declaration in HTML?

A

The DOCTYPE declaration is used to specify the version of HTML that the document is using, helping the browser to render the content correctly.

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

What kind of metadata can be included in the <head> section of an HTML document?

A

The <head> section can include metadata like the document’s title, character encoding, styles, scripts, and other resources linked to the document.

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

What is the difference between block-level and inline-level elements in HTML?

A

Block-level elements, like paragraphs and divs, appear on new lines and structure the main content, while inline-level elements, like hyperlinks and spans, flow within text and do not break the line.

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

What is the function of the <a> element in HTML?</a>

A

The <a> element (anchor) defines a hyperlink that links to other documents or parts of documents. It uses the href attribute to specify the link’s destination.</a>

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

Explain the difference between absolute and relative URLs in HTML.

A

Absolute URLs provide a complete path including the protocol and domain, while relative URLs specify a path relative to the current document’s location.

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

How can images be included in an HTML document?

A

Images are included using the <img></img> element, which uses the src attribute to specify the URL of the image and the alt attribute to provide a text alternative for accessibility.

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

What are the two types of lists in HTML and how are they defined?

A

HTML supports ordered lists (<ol>) and unordered lists (<ul>). Items in these lists are marked using the <li> tag.

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

How is a table structured in HTML?

A

A table in HTML is structured using the <table> element, with rows defined by <tr> tags, header cells by <th> tags, and data cells by <td> tags. Sections like the header, body, and footer of the table are grouped using <thead>, <tbody>, and <tfoot>.

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

What are the purposes of the <form> element in HTML?

A

The <form> element groups input elements where users can enter data. It uses the action attribute to specify the server endpoint receiving the form data and the method attribute to define how data is submitted (get or post).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Describe how user input can be captured in HTML.
User input in HTML can be captured through various types, such as text, button, checkbox, and radio. Each input can have a name which is used when submitting the form.
25
Explain the use of character entities in HTML.
Character entities are used in HTML to display special characters that are reserved in HTML syntax, like < (<), > (>), and & (&).
26
What is JavaScript?
JavaScript is a lightweight, interpreted programming language that is dynamically typed. It's used primarily for interactive web applications and is supported by all modern web browsers.
27
What are the basic syntactical elements of JavaScript?
JavaScript syntax includes variable declarations and assignments, conditional statements (like if and else), loops (such as for and while), functions, and object-oriented features like prototype-based inheritance.
28
How can JavaScript be included in HTML documents?
JavaScript can be included directly within an HTML document using