EV.← Back to home

Egor Vychov / Project 00

Ideas of modern
web design.

From a first HTML page to a responsive layout.
A practical exploration of the building blocks of the web.

01

Structure

Start with HTML.

HTML describes a page using elements. This page includes a document type, a language attribute, a title, headings and an image.

Childhood photograph of Egor Vychov

Egor Vychov

My first web development project

Page structure

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Project 0 — Egor Vychov</title>
  </head>
  <body>
    <h1>Egor Vychov</h1>
    <img src="images/egor.jpg"
         alt="Egor Vychov">
  </body>
</html>

The browser represents these elements as a Document Object Model (DOM) tree.

02

Presentation

Give the page a style.

CSS controls colour, alignment, backgrounds, spacing, borders and typography. The main design uses the external file styles.css.

Inline CSS

This text is blue and centred.

style="color: blue;
text-align: center;"

Internal CSS

This style lives in the head.

<style>
.internal-example {
  color: #305e43;
  text-align: center;
}
</style>

External CSS

A reusable stylesheet.

<link rel="stylesheet"
      href="styles.css">

The box model

Margin
Border
Padding
Content

Margin separates elements. Padding adds space inside a border.

03

Interaction

Make something happen.

This example follows the lecture: pressing Go changes the first name from Ann to Alex through the DOM.

Press Go to change the name.

JavaScript

document.querySelector('#first-name')
  .value = 'Alex';

The input changes without reloading the page. Reset restores Ann.

04

Adaptability

One page. Every screen.

Resize your browser or open the page on a phone. Columns stack on narrow screens, images scale to their container, and the panel below changes colour at 600 pixels.

Live viewportResize your browser600px or wider · warm backgroundBelow 600px · white background
<meta name="viewport" content="width=device-width, initial-scale=1.0">

@media (min-width: 600px) {
  .viewport-demo { background-color: #fae5a6; }
}
@media (max-width: 599px) {
  .viewport-demo { background-color: white; }
}
05

Layout

Let the layout flow.

These six sample cards reproduce the Flexbox idea from the lecture. Toggle wrapping and resize the window to compare the layouts. They are layout samples, not links to completed projects.

Project 0
Project 1
Project 2
Project 3
Project 4
Project 5

Wrapping on: cards move to a new row when needed.

#container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#container > div {
  width: 200px;
  margin: 20px;
  padding: 20px;
  background-color: lightgray;
  text-align: center;
}

Project 0 / Complete

A foundation to build on.

← Back to my projects
Web hosting by Somee.com