What is a website?
A website is a collection of files, hosted on a server.
1990, First web server. A server is a computer that is always connected to the internet.
This machine is a Server!
DO NOT POWER DOWN!!
These days, typically, servers are large networks of computers that you pay some money to rent storage on. �That's called hosting.
HTTP Request
https://en.wikipedia.org/
HTTP Request
https://en.wikipedia.org/
HTTP Response
Demo
HTML
HyperText
Markup
Language
HTML
CSS
JavaScript
Structure
Style
Behavior
HTML
CSS
JavaScript
structure
style
behavior
HTML elements
Element
Opening tag
Closing tag
Content
Let's write some HTML...
<!DOCTYPE html>
<html>
<head>
<title>Website title</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
Let's build on this... try:
<h1>My first heading</h1>
<ol>
<li>Ice cream</li>
<li>Watching basketball</li>
<li>Folk music</li>
</ol>
<p>Technology is <b>truly</b> amazing</p>
Some things to try...
Use characters to create additional spaces between words or letters.
Use <br> elements to add line breaks.
Make some text bold with a <b> tag!
As you see in the browser:
Add an image with an <img> tag
In HTML, images are linked. In the quotes, add the filename of your image. NOTE: the image has to be in the same folder as your html file in order for it to appear.
<img src="penny.png">
Add a link! Hyperlinks are made with <a> tags, which stand for anchor. An <a> tag has a href attribute, which stands for HyperText reference. This specifies the destination for the link.
where the link goes
Inside the <a> tags is the linked content. This appears on the page.
Remember... elements are often nested.
Here, a <b> tag (bold) is inside a <p> tag (paragraph).
The <b> tag makes the text bold.
As you see in the browser:
The header tags (<h1>, <h2>,…,<h6>) are used for headings.
The number is based on hierarchy of importance, and by default headings help to create typographic hierarchy.
Use a <p> tag to enclose a paragraph of text.
Styling tags let you do basic text styling with HTML. This page shows a few examples. Here's the full list.
<ol> and <ul> stand for ordered list and unordered list.
Use these tags in combination with <li>, or list items, to make bulleted or numbered lists.
<ol> and <ul> stand for ordered list and unordered list.
Use these tags in combination with <li>, or list items, to make bulleted or numbered lists.