Examples
/index.html
/map/21.3088569,-157.8084575
URI is how a server identifies a resource to be delivered to the client
Examples
https://www.google.com
http://www.devleague.com/apply
https:// www.google.com
http:// www.devleague.com: 80 /apply
http:// 162.243.46.54: 80 /parting-thoughts-from-a-student/
Protocol
Host address
port
path
A URL IS A URI THAT ALSO SPECIFIES HOW TO GET THAT RESOURCE (WHAT PROTOCOL TO USE)
In the late 1980s, Tim Berners-Lee was working as a physicist at CERN (the European Organization for Nuclear Research). He devised a way for scientists to share documents over the internet.
Specification Maturation
The main international standards organization for the World Wide Web (abbreviated WWW or W3)
HTML 4.01 Strict
This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitional
This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset
This DTD is equal to HTML 4.01 Transitional, but allows the use of frameset content.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Strict
This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Transitional
Frameset
This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This DTD is equal to XHTML 1.0 Transitional, but allows the use of frameset content.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
HTML 5
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<title>My first page</title>
</head>
<body>
<p>Hello <b>world!</b></p>
</body>
</html>
<!doctype html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Heading</h1>
<p>This is a paragraph</p>
</body>
</html>
<!DOCTYPE>
Defines information about the document
<head>
<title>
<link>
<meta>
Defines meta information
Defines a resource reference
Defines the document title. You can see it in browser's tab
Defines the document type. This tag goes before the <html> start tag.
Tags gotchas
HTML attaches special meaning to anything that starts with the less-than sign ("<") and ends with the greater-than sign (">"). Such markup is called a tag.
Wrong
Correct
<p>This <b>is</p> incorrect</b>
<p>This <b>is</b> correct</p>
Attributes usually consist of 2 parts:
The start tag may contain additional information. Such information is called an attribute
<p class="example">Tag with attributes</p>
<span id="identificator">Tag with id</span>
<div title="This is a DIV.">A sentence.</div>
<input required>
HTML comments are enclosed in symbols as follows:
<!doctype html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<!-- The page content -->
<h1>Heading</h1>
<p>This is a paragraph</p>
</body>
</html>
Some elements have very precise meaning, as in "this is an image", or "this is a heading". Others are less specific, such as "this is a section on the page" or "this is part of the text."
<!doctype html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<p>You are in your beginning stage of</p>
<p>HTML</p>
</body>
</html>
This structure is often thought of as a tree with branches growing from the trunk (<html>). This hierarchical structure is called the DOM : the Document Object Model
<!doctype html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<p>You are in your beginning stage of</p>
<p>HTML</p>
</body>
</html>
CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts
It is a style sheet language used for describing the look and formatting of a document written in a markup language.
body {
background: red;
color: blue;
font-size: 12px;
}
This'll select all the <h1> tags in your document:
h1 {
*put your declarations here*
}
Each declaration has the format:
property: value;
To change font, use the "font-family" property:
Another common task is changing the appearance of your text. Once again, CSS has plenty of ways to do this
h1 {
font-family: "Times New Roman";
}
To change text size, use "font-size":
To change alignment, use "text-align":
h1 {
text-align: center;
}
h1 {
font-size: 22pt;
}
To change text color, use "color":
Another common task is changing the color of a text or background
To change background color, use "background-color":
h1 {
color: blue;
}
body {
background-color: grey;
}
Internal
External
Inline
<!DOCTYPE html>
<html>
<head>
<title>Inline</title>
</head>
<body>
<p style="color: red;">Supporting paragraph. Very informative.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Internal</title>
<style>
h1 {
font-size:50px;
text-align: center;
}
</style>
</head>
<body>
<h1>This is my huge headline</h1>
<p>Supporting paragraph. Very informative.</p>
</body>
</html>
index.html
<!DOCTYPE html>
<html>
<head>
<title>External</title>
<link rel="stylesheet" href="mystyles.css">
</head>
<body>
<p>This is my snazzy red paragraph!</p>
</body>
</html>
mystyles.css
body {
background-color: green;
width: 1000px;
margin: 20px;
}
p {
color: red;
text-align: center;
font-size: 14px;
}
It is a high-level, dynamic, untyped, and interpreted programming language
JavaScript is a misunderstood language
But in JavaScript there are great ideas too
Single-line comments
Block (multiline)
Example
/*
My first program:
Hello World!
*/
var a = "Hello World!"; //Declare new variable with initial value
alert(a); //Show message window with the content of the "a" variable
code goes here /* comment goes here,
still comment, and here */
code goes here //comment goes here
Declare variable without initial value:
Declare variable with initial value:
var a;
var oneMore;
var anotherVar;
var awesomeVariable;
var b = 10;
var name = "Leonardo";
var price = 10.4;
//Declaration of a new variable with initial value below
var greeting = "Say hello to the new world of programming!"
var a;
a = 10; //You can set the value after the variable declaration
var name = "Raphael";
name = "Donatello"; //It will overwrites the content of the "name" variable
var age = 10;
age = "Teenager"; //No type checking
Operator | Description | Example |
---|---|---|
+ | Addition | var x = 10 + 2; |
- | Subtraction | var x = 5 - 3; |
* | Multiplication | var x = 2 * 2; |
/ | Division | var x = 20 / 5; |
% | Modulus | var x = 10 % 4; |
++ | Increment | x++; |
-- | Decrement | x--; |
var a = 10;
a++;
var b = a * 2;
b = b - 1;
b--;
var c = b / 2;
c = c - a;
var x = b & 8;
//a == 10;
//a == 11;
//b == 22; a == 11;
//b == 21;
//b == 20;
//c == 10;
//c == -1;
//x = 4;
Inner
External
Inline
<!DOCTYPE html>
<html>
<head>
<title>My first page</title>
</head>
<body>
<h1>Example</h1>
<p onclick="alert('Hello World!')">Say hello</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>My first page</title>
</head>
<body>
<h1>Example</h1>
<script language="javascript" type="text/javascript">
var a = "Hello World!";
alert(a);
</script>
</body>
</html>
index.html
<!DOCTYPE html>
<html>
<head>
<title>My first page</title>
</head>
<body>
<h1>Example</h1>
<script language="javascript" type="text/javascript" src="script.js">
</script>
</body>
</html>
script.js
var a = "Hello World!";
alert(a);
WebStorm
Sublime Text
Atom
Brackets
Notepad
Notepad++
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
Git is a free and open source version control system designed to handle everything from small to very large projects with speed and efficiency.
A branch represents an independent line of development. You can think of them as a way to request a brand new working directory, staging area, and project history.
A commit is a snapshot of your current changes to the project history.
A local repository is a repository on your local machine. It keeps your local working copy.
A remote repository contains versions of your project that are hosted on the Internet or network somewhere.
To clone a remote repository into a newly created directory use clone command:
git clone
The "index" holds a snapshot of the content of the working tree. It is used for tracking your files.
To start tracking files use add command:
git add
It is a multipurpose command – you use it to begin tracking new files, to stage files, and to do other things like marking merge-conflicted files as resolved.
To download changes from a remote branch you should use pull command:
git pull
To apply changes to a remote branch you should use push command:
git push
<!DOCTYPE html>
<html>
<head>
<title>My first page</title>
</head>
<body>
<p>Hello <b>world!</b></p>
</body>
</html>
Open the saved HTML file in your favorite browser
Об истории браузеров
https://events.yandex.ru/lib/talks/532/
Механизм работы браузера
https://events.yandex.ru/lib/talks/1329/
Языки программирования (первые 30 минут)
https://events.yandex.ru/lib/talks/542/
What is Front End Web Development?
GIT documentation
https://git-scm.com/doc
GIT tutorial
https://githowto.com/ru