diff --git a/2-ui/1-document/11-coordinates/document-window-coordinates-scroll.png b/2-ui/1-document/11-coordinates/document-window-coordinates-scroll.png
index b349ef6f..1c6bef20 100644
Binary files a/2-ui/1-document/11-coordinates/document-window-coordinates-scroll.png and b/2-ui/1-document/11-coordinates/document-window-coordinates-scroll.png differ
diff --git a/2-ui/1-document/11-coordinates/document-window-coordinates-scroll@2x.png b/2-ui/1-document/11-coordinates/document-window-coordinates-scroll@2x.png
index 5dbbc4cb..7003fcd9 100644
Binary files a/2-ui/1-document/11-coordinates/document-window-coordinates-scroll@2x.png and b/2-ui/1-document/11-coordinates/document-window-coordinates-scroll@2x.png differ
diff --git a/7-network/07-xmlhttprequest/article.md b/7-network/07-xmlhttprequest/article.md
index dde333fe..9432411e 100644
--- a/7-network/07-xmlhttprequest/article.md
+++ b/7-network/07-xmlhttprequest/article.md
@@ -181,11 +181,11 @@ They exist for historical reasons, to get either a string or XML document. Nowad
All states, as in [the specification](http://www.w3.org/TR/XMLHttpRequest/#states):
```js
-const unsigned short UNSENT = 0; // initial state
-const unsigned short OPENED = 1; // open called
-const unsigned short HEADERS_RECEIVED = 2; // response headers received
-const unsigned short LOADING = 3; // response is loading (a data packed is received)
-const unsigned short DONE = 4; // request complete
+UNSENT = 0; // initial state
+OPENED = 1; // open called
+HEADERS_RECEIVED = 2; // response headers received
+LOADING = 3; // response is loading (a data packed is received)
+DONE = 4; // request complete
```
An `XMLHttpRequest` object travels them in the order `0` -> `1` -> `2` -> `3` -> ... -> `3` -> `4`. State `3` repeats every time a data packet is received over the network.
diff --git a/8-web-components/1-webcomponents-intro/article.md b/8-web-components/1-webcomponents-intro/article.md
new file mode 100644
index 00000000..1cf029ba
--- /dev/null
+++ b/8-web-components/1-webcomponents-intro/article.md
@@ -0,0 +1,76 @@
+# From the orbital height
+
+This section describes a set of modern standards for "web components".
+
+As of now, these standards are under development. Some features are well-supported and integrated into the modern HTML/DOM standard, while others are yet in draft stage. You can try examples in any browser, Google Chrome is probably the most up to date with these features. Guess, that's because Google fellows are behind many of the related specifications.
+
+The whole component idea is nothing new. It's used in many frameworks and elsewhere.
+
+## What's common between...
+
+Before we move to implementation details, take a look at this great achievement of humanity:
+
+
+
+That's the International Space Station (ISS).
+
+And this is how it's made inside (approximately):
+
+
+
+The International Space Station:
+- Consists of many components.
+- Each component, in its turn, has many smaller details inside.
+- The components are very complex, much more complicated than most websites.
+- Components are developed internationally, by teams from different countries, speaking different languages.
+
+...And this thing is flying, keeping humans alive in space!
+
+How such complex devices are created?
+
+Which principles we could borrow, to make our development same-level reliable and scalable? Or, at least, close to it.
+
+## Component architecture
+
+The well known rule for developing complex software is: don't make complex software.
+
+If something becomes complex -- split it into simpler parts and connect in the most obvious way.
+
+**A good architect is the one who can make the complex simple.**
+
+We can split a user interface into components -- visual entities, each of them has own place on the page, can "do" a well-described task, and is separate from the others.
+
+Let's take a look at a website, for example Twitter.
+
+It naturally splits into components:
+
+
+
+1. Top navigation.
+2. User info.
+3. Follow suggestions.
+4. Submit form.
+5. And also 6, 7 - messages.
+
+Components may have subcomponents, e.g. messages may be parts of a higher-level "message list" component. A clickable user picture itself may be a component, and so on.
+
+How do we decide, what is a component? That comes from intuition, experience and common sense. In the case above, the page has blocks, each of them plays its own role.
+
+So, what comprises a component?
+
+- A component has its own JavaScript class.
+- DOM structure, managed solely by its class, outside code doesn't access it ("encapsulation" principle).
+- CSS styles, applied to the component.
+- API: events, class methods etc, to interact with other components.
+
+"Web components" provide built-in browser capabilities for components:
+
+- [Custom elements](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements) -- to define custom HTML elements.
+- [Shadow DOM](https://dom.spec.whatwg.org/#shadow-trees) -- to create an internal DOM for the component, hidden from the others.
+- [CSS Scoping](https://drafts.csswg.org/css-scoping/) -- to declare styles that only apply inside the component.
+
+There exist many frameworks and development methodologies that aim to do the similar thing, each one with its own bells and whistles. Usually, special CSS classes and conventions are used to provide "component feel" -- CSS scoping and DOM encapsulation.
+
+Web components provide built-in browser capabilities for that, so we don't have to emulate them any more.
+
+In the next chapter we'll go into details of "Custom Elements" -- the fundamental and well-supported feature of web components, good on its own.
diff --git a/8-web-components/1-webcomponents-intro/satellite-expanded.jpg b/8-web-components/1-webcomponents-intro/satellite-expanded.jpg
new file mode 100644
index 00000000..56c12711
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/satellite-expanded.jpg differ
diff --git a/8-web-components/1-webcomponents-intro/satellite-expanded@2x.jpg b/8-web-components/1-webcomponents-intro/satellite-expanded@2x.jpg
new file mode 100644
index 00000000..c65b1245
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/satellite-expanded@2x.jpg differ
diff --git a/8-web-components/1-webcomponents-intro/satellite.jpg b/8-web-components/1-webcomponents-intro/satellite.jpg
new file mode 100644
index 00000000..9a3793f3
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/satellite.jpg differ
diff --git a/8-web-components/1-webcomponents-intro/satellite@2x.jpg b/8-web-components/1-webcomponents-intro/satellite@2x.jpg
new file mode 100644
index 00000000..9624379d
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/satellite@2x.jpg differ
diff --git a/8-web-components/1-webcomponents-intro/web-components-twitter.png b/8-web-components/1-webcomponents-intro/web-components-twitter.png
new file mode 100644
index 00000000..8d58cfb7
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/web-components-twitter.png differ
diff --git a/8-web-components/1-webcomponents-intro/web-components-twitter@2x.png b/8-web-components/1-webcomponents-intro/web-components-twitter@2x.png
new file mode 100644
index 00000000..bb30b91c
Binary files /dev/null and b/8-web-components/1-webcomponents-intro/web-components-twitter@2x.png differ
diff --git a/8-web-components/2-custom-elements/1-custom-timer/live-timer.js b/8-web-components/2-custom-elements/1-custom-timer/live-timer.js
new file mode 100644
index 00000000..a53d72e0
--- /dev/null
+++ b/8-web-components/2-custom-elements/1-custom-timer/live-timer.js
@@ -0,0 +1,32 @@
+class LiveTimer extends HTMLElement {
+
+ render() {
+ this.innerHTML = `
+
+
+ `;
+
+ this.timerElem = this.firstElementChild;
+ }
+
+ connectedCallback() { // (2)
+ if (!this.rendered) {
+ this.render();
+ this.rendered = true;
+ }
+ this.timer = setInterval(() => this.update(), 1000);
+ }
+
+ update() {
+ this.date = new Date();
+ this.timerElem.setAttribute('datetime', this.date);
+ this.dispatchEvent(new CustomEvent('tick', { detail: this.date }));
+ }
+
+ disconnectedCallback() {
+ clearInterval(this.timer); // important to let the element be garbage-collected
+ }
+
+}
+
+customElements.define("live-timer", LiveTimer);
diff --git a/8-web-components/2-custom-elements/1-custom-timer/time-formatted.js b/8-web-components/2-custom-elements/1-custom-timer/time-formatted.js
new file mode 100644
index 00000000..f585c1f8
--- /dev/null
+++ b/8-web-components/2-custom-elements/1-custom-timer/time-formatted.js
@@ -0,0 +1,34 @@
+class TimeFormatted extends HTMLElement {
+
+ render() {
+ let date = new Date(this.getAttribute('datetime') || Date.now());
+
+ this.innerHTML = new Intl.DateTimeFormat("default", {
+ year: this.getAttribute('year') || undefined,
+ month: this.getAttribute('month') || undefined,
+ day: this.getAttribute('day') || undefined,
+ hour: this.getAttribute('hour') || undefined,
+ minute: this.getAttribute('minute') || undefined,
+ second: this.getAttribute('second') || undefined,
+ timeZoneName: this.getAttribute('time-zone-name') || undefined,
+ }).format(date);
+ }
+
+ connectedCallback() { // (2)
+ if (!this.rendered) {
+ this.render();
+ this.rendered = true;
+ }
+ }
+
+ static get observedAttributes() { // (3)
+ return ['datetime', 'year', 'month', 'day', 'hour', 'minute', 'second', 'time-zone-name'];
+ }
+
+ attributeChangedCallback(name, oldValue, newValue) { // (4)
+ this.render();
+ }
+
+}
+
+customElements.define("time-formatted", TimeFormatted);
diff --git a/8-custom-elements/1-custom-elements-intro/article.md b/8-web-components/2-custom-elements/article.md
similarity index 51%
rename from 8-custom-elements/1-custom-elements-intro/article.md
rename to 8-web-components/2-custom-elements/article.md
index 25855810..a1a6d58b 100644
--- a/8-custom-elements/1-custom-elements-intro/article.md
+++ b/8-web-components/2-custom-elements/article.md
@@ -1,8 +1,266 @@
-# Custom Elements
-"Custom Elements" is a way to create new HTML elements and describe their properties, methods and constructor with JavaScript.
+# Custom elements
-After we define a custom element, we can use it freely both in scripts or in generated HTML, on par with built-in HTML elements. The browser becomes responsible for calling proper methods when the element is created, added or removed from DOM, and that's very convenient.
+We can create our own class for a custom HTML element with its own methods and properties, events and so on.
+
+There are two kinds of custom elements:
+
+1. **Autonomous custom elements** -- "all-new" elements, extending the abstract `HTMLElement` class.
+2. **Customized built-in elements** -- extending built-in elements, like customized `HTMLButtonElement` etc.
+
+First we'll see how autonomous elements are made, and then the customized built-in ones.
+
+For a class to describe an element, it should support so-called "custom element reactions" -- methods that the browser calls when our element is created/added/removed from DOM.
+
+That's easy, as there are only few of them. Here's a sketch with the full list:
+
+```js
+class MyElement extends HTMLElement {
+ constructor() {
+ // element created
+ }
+
+ connectedCallback() {
+ // browser calls it when the element is added to the document
+ // (can be called many times if an element is repeatedly added/removed)
+ }
+
+ disconnectedCallback() {
+ // browser calls it when the element is removed from the document
+ // (can be called many times if an element is repeatedly added/removed)
+ }
+
+ static get observedAttributes() {
+ return [/* array of attribute names to monitor for changes */];
+ }
+
+ attributeChangedCallback(name, oldValue, newValue) {
+ // called when one of attributes listed above is modified
+ }
+
+ adoptedCallback() {
+ // called when the element is moved to a new document
+ // (document.adoptNode call, very rarely used)
+ }
+}
+```
+
+Then we need to register the element:
+
+```js
+// let the browser know that is served by our new class
+customElements.define("my-element", MyElement);
+```
+
+Now for any new elements with tag `my-element`, an instance of `MyElement` is created, and the aforementioned methods are called.
+
+```smart header="Custom element name must contain a hyphen `-`"
+Custom element name must have a hyphen `-`, e.g. `my-element` and `super-button` are valid names, but `myelement` is not.
+
+That's to ensure that there are no name conflicts between built-in and custom HTML elements.
+```
+
+## Example: "time-formatted"
+
+For example, there already exists `