Google Docs Rehearsal Flashcards

1
Q

What do JSON.stringify() and JSON.parse() do?

A

JSON.stringify transforms the javascript variable to a JSON strings. This can work with objects, arrays, numbers, etc.
JSON (javascript object notation), is mostly used as a format for lightweight data interchange.

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

What is Semantic HTML?

A

Semantic HTML is about choosing HTML tags that carry meaning about the structure of the document, rather than just using tags for formatting or presentation purposes.

<header>, site title logo and navigation
<section>, stand alone sections of contect
<footer> copyright, etc
<main> unique content of page → consists for example out of several sections, header and footer shouldn’t be included as they are not unique
</main></footer></section></header>

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

What are Data attributes?

A

Data attributes (commonly known as data-* attributes) are a feature in HTML that allows you to embed custom data private to the page or application. These attributes are designed to store information that is not intended for styling or scripting but rather for associating extra data with HTML elements. They provide a way to store additional information about an element without using non-standard attributes or extending the DOM with custom properties.

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