protocol
hostname
path
protocol
hostname
path
{how to handle the information}
protocol
hostname
path
{who has the information}
Web server
protocol
hostname
path
{where is the information}
Web server
protocol
path
hostname?
spotlight search: command + space, then type "terminal"
python -m SimpleHTTPServer 8080
cd Desktop
<div>: Division of a page
<text>: A piece of text
<ul>: An unordered list
<li>: A list element
<svg>: Scalable Vector Graphic
<circle>: A circle...
<rect>: A rectangle...
<!DOCTYPE html>
<!-- Start HTML, in english -->
<html lang="en">
<!-- Head section: set meta content, read in files -->
<head>
<!-- Declare UTF-8 encoding -->
<meta charset="UTF-8">
<!-- Set title -->
<title>My Title</title>
<!-- Link to a style file -->
<link rel="stylesheet" href="css/main.css"/>
</head>
<!-- Body of page: where content goes -->
<body>
</body>
</html>
<text id="title-text" class="big">My Title</text>
<form>....</form>
<input id="input1">....</input>
<label for="input1">My Label Text</input>
Style
<div id="container">
<div id="sub-div">
<p id="block">
<text>Text1</text>
<text>Text2</text>
<text>Text3</text>
</p>
</div>
</div>
<div id="container">
<div id="sub-div"> // Has own styles + #container styles
<p id="block"> // Own styles + #sub-div + #container
<text>Text1</text> // styles + #block + #sub-div + #container
<text>Text2</text>
<text>Text3</text>
</p>
</div>
</div>
<div style="font-size:30px">Text goes here</div>
<html>
<style>
**** CSS syntax goes here ****
</style>
</html>
<html>
<link rel="stylesheet" href="css/my-css.css"/>
</html>