How the Internet Works

Similar documents
Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

introduction to XHTML

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML. Hypertext Markup Language. Code used to create web pages

CSC Web Programming. Introduction to HTML

Web Programming Week 2 Semester Byron Fisher 2018

Web Publishing Basics I

11. HTML5 and Future Web Application

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Desire2Learn: HTML Basics

c122jan2714.notebook January 27, 2014

HTML and CSS: An Introduction

CS134 Web Site Design & Development. Quiz1

Creating A Web Page. Computer Concepts I and II. Sue Norris

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

HTML Tags <A></A> <A HREF=" CNN </A> HREF

What is XHTML? XHTML is the language used to create and organize a web page:

Hyper Text Markup Language

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

INTRODUCTION TO WEB USING HTML What is HTML?

What You Will Learn Today

Hyper Text Markup Language

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Creating Web Pages. Getting Started

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Programmazione Web a.a. 2017/2018 HTML5

HTML & CSS. Rupayan Neogy

Announcements. Paper due this Wednesday

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

CSC Web Technologies, Spring HTML Review

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

HTML Overview. With an emphasis on XHTML

HTML & XHTML Tag Quick Reference

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Fundamentals: Client/Server

HTML Hyper Text Markup Language

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

HTML and CSS Lecture 15 COMPSCI111/111G SS 2018

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Chapter 2. Self-test exercises

HTMLnotesS15.notebook. January 25, 2015

Web Development and Design Foundations with HTML5 8th Edition

Creating Web Pages Using HTML

This document provides a concise, introductory lesson in HTML formatting.

Implementing a chat button on TECHNICAL PAPER

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

UNIX and Operating System Topics

HTML, CSS, JavaScript

First, create a web page with a submit button on it (remember from creating forms in html?):

Lab 4 CSS CISC1600, Spring 2012

MP3 (W7,8,&9): HTML Validation (Debugging) Instruction

A Brief Introduction to HTML

TEST NAME: MMWD 4.01 TEST ID: GRADE:09 - Ninth Grade Twelfth Grade SUBJECT:Computer and Information Sciences TEST CATEGORY: My Classroom

I-5 Internet Applications

COMPSCI 111 / 111G An introduction to practical computing

HyperText Markup Language (HTML)

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

MPT Web Design. Week 1: Introduction to HTML and Web Design

Dreamweaver Basics Workshop

Inline Elements Karl Kasischke WCC INP 150 Winter

CMPT 165 Unit 2 Markup Part 2

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Introduction to Multimedia. MMP100 Spring 2017 thiserichagan.com/mmp100

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

HTML & CSS. Lesson 1: HTML Basics Lesson 2: Adding Tables Lesson 3: Intro to CSS Lesson 4: CSS in more detail Lesson 5: Review

CMT111-01/-M1: HTML & Dreamweaver. Creating an HTML Document (Continued)

4 HTML Basics YOU WILL LEARN TO WHY IT MATTERS... CHAPTER

Create a cool image gallery using CSS visibility and positioning property

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

Chapter 4. Introduction to XHTML: Part 1

Which is why we ll now be learning how to write in CSS (or cascading sheet style)

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

CISC 1400 Discrete Structures

HTML. Based mostly on

html & css basics class one intro to HTML, HTML page structure, text, images, & links

Introduction to HTML

HTML Images - The <img> Tag and the Src Attribute

HTML Tags (Tutorial, Part 2):

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

On a blog, code can mean many things. It can refer to the complicated

INTRODUCTION TO HTML5! HTML5 Page Structure!

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Wireframe :: tistory wireframe tistory.

Part 1: HTML Language HyperText Make-up Language

Beginning HTML. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Web Design and Development ACS Chapter 3. Document Setup

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

CSC 121 Computers and Scientific Thinking

What do we mean by layouts?

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009

CAS 111D: XHTML Tutorial

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Html basics Course Outline

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Introduction to using HTML to design webpages

HYPERTEXT MARKUP LANGUAGE ( HTML )

Transcription:

How the Internet Works The Internet is a network of millions of computers. Every computer on the Internet is connected to every other computer on the Internet through Internet Service Providers (ISPs).

How Web Pages Work Servers: machines that provide services to other machines Clients: machines that connect to servers Client asks for an html file at a certain address (the URL) using a browser Server returns html file Client parses the file by reading HTML tags and displays it This display is what most people consider a webpage

What is HTML? Hypertext Markup Language Instructions that tell the browser how to show the stuff on your web page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link href="layout/style_08.css" rel="stylesheet" type="text/css" /> <meta httpequiv="content-type" content="text/html; charset=iso-8859-1" /> <meta httpequiv="content-style-type" content="text/css" /> <title>artemis

Examples of web pages made with the help of HTML

Tags Instructions in HTML are called tags This is what tags look like: <tag> This is an opening tag. It tells the browser where a section begins. </tag> This tells a browser where a section ends. Usually some content goes between them.

What Every Page Should Look Like <html> <head> <title>(the title of your page goes here.)</title> </head> <body> (Your content goes here.) </body> </html>

What It Means <html> <head> <title>(the title of your page goes here.)</title> </head> <body> (Your content goes here.) </body> </html> <html></html> Tells the browser to interpret the text as html Everything on your web page goes between these tags <head></head> Tells your browser additional info about your page; we ll tell you more a little later <title></title> Marks the title of the page <body></body> Marks the main content of the page Most of your website will go between these tags

Practice: CATS! Open cats.txt in Notepad Put the tags we just learned where you think they should go Make the title of the page Cats of the World Test your webpage by saving it as an html file and opening it in a browser To save it as an html file, go to File>Save As. Type in cats.html and pick All Files from the drop down menu. When you double click the file, it should open in Internet Explorer or Firefox. <html> <head> </head> <body> </body> </html> <title></title>

More Elements You re gonna need a lot more stuff besides a title and body. Use other elements to make paragraphs, headings, lists, etc. <p></p> paragraph <h1></h1> heading <h2></h2> a smaller heading <blockquote> quote block </blockquote> <ol></ol> list <li></li> list item <a></a> link <img> picture <b></b> bold <br> line break (like the Enter key) And many more!

Block and In Line Elements Before we start learning different elements, there are 2 categories you need to know about Block elements are for big blocks of things. Browsers will usually put a line break before and after a block element. Paragraphs, headings, lists, etc. In Line elements are for things that don t change the flow of the page at all Links, images, etc.

The Paragraph Element <p></p> Use it to mark the beginning and end of a paragraph Block element Try separating out paragraphs in cats.html Open it in a browser and see what it looks like now It should look more organized

The Header Elements <h1></h1>, <h2></h2> <h6> </h6> Mark where the headings are Block element The browser will usually bold and enlarge these The higher the heading number, the smaller and less significant it ll look Make Welcome to CATS! of the World an h1 heading Make On this website, we interview the latest and greatest funny felines. an h2 heading

The Blockquote Element <blockquote></blockquote> Used when you have huge quotes that you want to separate from the rest of your text. Block element Mark the longer quotes from your kittens with blockquote elements and test it out.

Lists There are 3 types of lists: ordered, unordered and definition lists All three have their own start and end tags Ordered and Unordered lists share the same content tags: <li></li> So for every element of a Ordered and Unordered list do the following: <li>dog</li> <li>cat</li> <li>hamster</li> Definition Lists are a little different; we ll get to it in a sec

Ordered Lists <ol></ol> Used to mark lists that are numbered 1. dog 2. cat 3. hamster <ol> <li>dog</li> <li>cat</li> <li>hamster</li> </ol> Use <li></li> to mark each of the elements Turn the last section of the CATS! page into an ordered list

Unordered Lists Unordered Lists are when you want bullets not numbers <ul></ul> As with ordered lists, make sure the elements between <ul> and </ul> all have <li> and </li> surrounding them Replace your ordered list from the last exercise with an unordered list

Definition Lists Definition Lists aren t really lists They are a series of terms, followed by explanations. In html, they look like this <dl> <dt>popsicle </dt> <dd>a yummy thing to eat </dd> </dl> The above example will end up like this: Popsicle: a yummy thing to eat

Attributes Some tags are a little more complicated. They hold more information about the element than regular <p>, <li>, <q>, etc tags do. These pieces of information are called attributes <tag attribute= value > You will always have a name of the attribute followed by a value in quotation marks A tag can have many different attributes

Links Links are inline elements and have attributes <a href= http:// >link text</a> href is an attribute that determines where the link goes To link to Brown s website for example, do this: <a href= http://www.brown.edu >Brown website</a> When you click Brown website you ll be sent to the Brown website Try to link Go to I Can Has Cheezburger at the end of the page to http://www.icanhascheezburger.com <a href= http://www.icanhascheezburger.com >Go to I Can Has Cheezburger</a>

Adding Images To add a picture to a website use the img element <img src= http:// > img tag requires the attribute src There are 2 places that tell you to insert images. Insert pictures from: http://www.cs.brown.edu/orgs/arte mis/2008/resources.html The pictures are at the bottom Right click on the image, and select Copy Image Location then paste it into your code for the src

More on images <img> is an inline element This means you can insert an image in the middle of a paragraph and it will not change the flow You can link images the same way you link words <a href= http://www.brown.edu > <img src= brown.jpg > </a> I didn t say the URL of the image! You ll find out why when you make websites with more than one page. Link the images you just put into your file to http://www.icanhascheezburger.com

Even more on images More attributes: width height The width and height will be determined in pixels If you want an image 200 pixels by 200 pixels, then you type <img src= blah.jpeg width= 200px height= 200px > Tech Kitty s picture is a little large. Use the width and height attribute to change the size: width is 300 height is 200 One last attribute: alt= description of image

One last tidbit the breakline Breakline is used to add a line break (like when you hit enter or return in Word) <br> When you added an image to your kitty blog you noticed that it stuck the picture in the middle of the paragraph Now let s add 2 line breaks before and after each picture!

Empty Tags Why do some tags not need closing tags? They re empty tags! The paragraph tag <p> has text between <p> and </p> In the case of <br>, there s nothing you need to put there. It s just a line break. In the case of <img>, the tag has an attribute to tell it to get an img but there s also nothing else to go with it. It s just going to insert a picture.

Big Picture HTML is used to mark up the structure of your page Think of it in blocks: You mark out your paragraphs In the paragraphs you mark out your links and images But this page is boring; there s no color or anything! I heard about this <font> tag Don t use it! It s old and outdated and kind of lame. CSS is much cooler and will make your page pretty!

The End! Do the HTML mini project webdesign > projects > miniprojects.pdf Helpful stuff in the webdesign folder: html basics, advanced topics Look online for more tags and attributes if you need them http://www.htmldog.com/reference/htmltags/