Google Docs Rehearsal Flashcards
What do JSON.stringify() and JSON.parse() do?
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.
What is Semantic HTML?
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>
What are Data attributes?
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.