HTML 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 a website?

A

A website is a collection of individual but related web pages often stored together and hosted by a web server. Web pages are usually held together and hosted by a web server.

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

What are the three layers of web pages?

A

The content layer
The presentation layer
The behaviour layer

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

What is a content layer?

A

This layer is where the content of the webpage, such as text and images, are placed. It is also where the page structure, such as frames, tables and hyperlinks are placed.

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

What is a presentation layer?

A

This layer is where the visual impact of the web page is created and contains the styles that are created and added to be used, such as colour themes fonts etc. You will develop the presentation layer of your web page.

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

What does CSS stand for?

A

cascading stylesheet

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

What is the behaviour layer?

A

The layer is where all actions, such as controlling elements (except hyperlinks) on a webpage are created. These are usually created using scripting languages like JavaScript.

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

What is the head layer?

A

The head section starts with <head> and closes with </head>. The web browser does not usually display objects between these tags. Only a few titles are universally accepted within the head section of a web page.

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

How do you write a comment in HTML?

A

To leave a comment in HTML place a <!-- to start the comment. To end the comment you should place a --> after the comment.

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

What are the basic building blocks of an HTML document?

A

The basic building blocks of an HTML document are elements, which are represented by tags.

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

What is the purpose of a DOCTYPE declaration in HTML?

A

The DOCTYPE declaration specifies the version of HTML used in the document and helps the web browser to display the document correctly.

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

What is the difference between an HTML element and an HTML attribute?

A

An HTML element is a piece of content that is surrounded by opening and closing tags, while an HTML attribute is a characteristic of an element that is specified within the opening tag.

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

What is semantic HTML?

A

Semantic HTML is a way of writing HTML that gives meaning to the content on a web page, rather than just describing how it should look.

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

What is the purpose of the alt attribute in the IMG tag?

A

The alt attribute provides alternative text for an image, which is displayed in place of the image if it cannot be loaded or read by assistive technologies for accessibility purposes.

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

What is the difference between an inline element and a block-level element in HTML?

A

Inline elements are displayed inline with the surrounding text, while block-level elements take up the full width of the container and create a new line after the element.

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