Creating and Building Websites

Similar documents
Beginning Web Site Design

Using Dreamweaver, Photoshop, and Fireworks: CS38: Graphics Production for the Web. Stanford University Continuing Studies CS 38

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

c122jan2714.notebook January 27, 2014

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Dreamweaver Primer. Using Dreamweaver to Create and Publish Simple Web Pages. Mark Branom, Stanford University, Continuing Studies June 2011

Programmazione Web a.a. 2017/2018 HTML5

INTRODUCTION TO HTML5! HTML5 Page Structure!

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

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

Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS

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

Web Publishing Basics I

Introduction to web development and HTML MGMT 230 LAB

Tutorial 2 - HTML basics

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

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

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

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

LECTURE 08: INTRODUCTION TO HTML

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

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

INTRODUCTION TO WEB USING HTML What is HTML?

Chapter 1 Introduction to HTML, XHTML, and CSS

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

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

Using Dreamweaver CS3 to Create and Publish Simple Web Pages

It is possible to create webpages without knowing anything about the HTML source behind the page.

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

A network is a group of two or more computers that are connected to share resources and information.

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

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

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

CREATING WEBSITES. What you need to build a website Part One The Basics. Chas Large. Welcome one and all

Adobe Dreamweaver CS3 English 510 Fall 2007

The Structure of the Web. Jim and Matthew

MRK260. Week Two. Graphic and Web Design

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

11. HTML5 and Future Web Application

Beginning HTML. The Nuts and Bolts of building Web pages.

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

GRAPHIC WEB DESIGNER PROGRAM

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Ministry of Higher Education and Scientific Research

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Web Development IB PRECISION EXAMS

Web Design and Application Development

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

HTML, XHTML, and CSS. Sixth Edition. Chapter 1. Introduction to HTML, XHTML, and

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information.

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

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Santa Monica College. GRAPHIC DESIGN 65: Web Design I Course Syllabus

Seema Sirpal Delhi University Computer Centre

Figure 1 Properties panel, HTML mode

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

Introduction to Web Development

Week 8: HyperText Transfer Protocol - Clients - HTML. Johan Bollen Old Dominion University Department of Computer Science

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

HTML Hyper Text Markup Language

Midterm 1 Review Sheet CSS 305 Sp 06

Reading How the Web Works

Training Sister Hicks

Bridges To Computing

LING 408/508: Computational Techniques for Linguists. Lecture 14

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

By Ryan Stevenson. Guidebook #2 HTML

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

The three common HTML terms you should begin with are elements, tags, and attributes.

GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

ORB Education Quality Teaching Resources

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

205CDE: Developing the Modern Web. Assignment 1: Designing a Website. Scenario: D Bookshop

RICH ENTERPRISES. Small Business Series. Getting Started with HTML

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

Using Dreamweaver CS6

AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

Creating and Building Websites

Website Development (WEB) Lab Exercises

1.264 Lecture 12. HTML Introduction to FrontPage

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Hypertext Markup Language, or HTML, is a markup

Before you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Web Development and Design Foundations with HTML5 8th Edition

Web Designing HTML5 NOTES

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

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

introduction to XHTML

Authoring World Wide Web Pages with Dreamweaver

Introduction to Dreamweaver CS4:

Cascading style sheets

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

Web Programming Week 2 Semester Byron Fisher 2018

Web Engineering (Lecture 01)

Transcription:

Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21/ Week 1 Slide 1 of 28

Course Description In this class, we will explore the fundamentals of web site creation. We ll look at the software, on-line resources, and reading materials which will help you build outstanding web sites. The class will consist of a mixture of hands-on exercises, lectures, and demonstrations. Topics covered will include: Web design principles HTML5 basics Adding images to web pages Linking web pages Using CSS to apply style to web content By the end of the class, you will have built a website and be ready to strike out on your own. Students MUST have access to a computer, be familiar with computer basics, and have access to the Internet. Since the Web is cross-platform, you can apply the knowledge you gain from this class to any computer platform. CS21: Creating and Building Websites Week 1 Slide 2 of 28

Administrivia Grading You have the option of taking this course for a letter grade, CR/NC, or as an Audit. Letter Grade CR/NC NGR Attendance Required Required Recommended Homework Required Required Recommended Project Required Required Not required By request By Request Default choice CS21: Creating and Building Websites Week 1 Slide 3 of 28

More Administrivia Resources Each week you will receive supplemental handouts and inclass exercises. Copies of the handouts and links to resources will be posted to the CS21 website: http://web.stanford.edu/group/csp/cs21/ How to reach me: branom@alumni.stanford.edu markbranom@gmail.com mark.branom@sjcc.edu 650-224-1728 CS21: Creating and Building Websites Week 1 Slide 4 of 28

More Administrivia You will need: Access to a computer Familiarity with computer basics Access to the internet (many free ISPs exist) A Byet.Host account (we ll do it in class) Access to the following tools: A text editor (TextEdit for Macs; Notepad for Windows) Better choices: TextWrangler for Macs; Notepad++ for Windows Even better choice: Dreamweaver (both Mac & Windows) A web browser (Firefox / Internet Explorer / Chrome / Safari) CS21: Creating and Building Websites Week 1 Slide 5 of 28

Assignments & Final Project The weekly class assignments and homework will build toward the final project The final project will be to turn in a web site consisting of one home page and four linked subsequent pages with content, links, and graphics on all of them. The assignment will be "turned in" by being loaded onto your webspace. CS21: Creating and Building Websites Week 1 Slide 6 of 28

Course Syllabus Week 1: The Web & HTML basics Week 2: Adding Links, Fonts, and Colors Week 3: Cascading Style Sheets (CSS) The Basics Week 4: Adding Graphics The Basics Week 5: Dreamweaver, Imagemaps, Sound & Video (HTML5); Lists; Tables; E-mail Newsletters Week 6: Cascading Style Sheets (CSS) - more advanced usage Week 7: HTML5 Forms and Basic PHP Scripting Week 8: iframes; Internal links; meta tags; site promotion; Basics of Content Management Systems CS21: Creating and Building Websites Week 1 Slide 7 of 28

Week 1 Agenda Demystifying the internet ("How does it work?") Demystifying Web Pages HTML basics CS21: Creating and Building Websites Week 1 Slide 8 of 28

How the internet works... The Internet is a network of networks that allows for communication and sharing of information. The World Wide Web is just one of several applications which can be used on the Internet. CS21: Creating and Building Websites Week 1 Slide 9 of 28

Web Terminology Protocol - ground rules or "languages" that computers use to "talk" with each other HTML (HyperText Markup Language) - the "programming" language used to write web pages Source file - the set of tags and text which make up a web page. Browsers process the source file to make the web page look the way the designer wanted it to look. URL (Uniform Resource Locator) - a web address; indicates the location of a web resource as well as the protocol needed to access it HTTP (HyperText Transfer Protocol) - the internet protocol which allows web pages to work FTP (File Transfer Protocol) - allows computers to exchange files over a network Web page - a single page on the web (a "homepage" is the first web page on a web site) Web site - a collection of web pages, usually on a particular topic or business Web browser/navigator/client - the software application which displays web pages Web server - the computer or network of computers which stores web pages CS21: Creating and Building Websites Week 1 Slide 10 of 28

How web pages work 1) Client (user) tells the browser to request a web page using the http protocol 2) Request goes over the internet to the web server 3) Web page is found on the web server 4) Copy of the source code for the web page is sent back to the original computer 5) Browser processes ("translates") code into web page The Internet Client (user) Server CS21: Creating and Building Websites Week 1 Slide 11 of 28

What browsers actually GET... CS21: Creating and Building Websites Week 1 Slide 12 of 28

How does it work? Web pages are simply made up of plain ASCII text. Web browsers process the codes used on web pages to display a fully formatted web page. But the pictures, colors, and other non-text items on a web page aren't actually on the web page itself -- the web page itself is simply text,with the formatting and graphics encoded. You can look at the code for any web page by going to the "View" menu and choosing "Page Source". CS21: Creating and Building Websites Week 1 Slide 13 of 28

Introduction to HTML HTML stands for "HyperText Markup Language". There are several dialects of HTML; the most recent are XHTML 1.1 and HTML 5. HTML is a collection of text surrounded by tags which modify the text of the document. All tags are encoded in angle brackets (< >). In general, tags work in pairs -- one to turn on the modification, one to turn it off. Stop tags look just like start tags except they have a slash (/) in front. <tag>affected text</tag> Some tags work on their own. We refer to these tags as empty or singlet tags. Since they don t have a closing tag, in xhtml, we place a / at the end of the tag. In HTML5, there is no need for the trailing slash. The Horizontal Rule tag <hr /> is an example. Most tags have attributes which can modify how they function: <tag attribute="value">affected text</tag> CS21: Creating and Building Websites Week 1 Slide 14 of 28

Tag examples <em>i want this in italics</em> is processed by the browser to look like: I want this in italics <p style="text-align: center;">i want this new paragraph to be centered</p> is processed by the browser to look like: I want this new paragraph to be centered CS21: Creating and Building Websites Week 1 Slide 15 of 28

Structural tags (elements) These are the basic tags which must be a part of every web page. The DocType Declaration tells the browser which dialect of HTML the web page is using (<!doctype html> is the doctype for HTML5). The <html> element contains the entire web page. The <head> element provides information about the web page (and mostly contains the title of the web page, any JavaScripts, Meta tags, and Cascading Style Sheet references). The <body> element contains the visible part of the web page. <!doctype html> <html> <head> <title>title of Webpage</title> </head> <body> This is where the main part of the web page would go </body> </html> CS21: Creating and Building Websites Week 1 Slide 16 of 28

HTML5 structural tags With the advent of HTML5, there are several new structural elements: <header>used to indicate header information</header> <footer>used to indicate footer information</footer> <main>used to indicate the main content</main> <nav>used for site or in-page navigational items</nav> <article>used if content could be on its own page (e.g., individual comment, post, sidebar widget)</article> <aside>sidebars, comments section, ads, etc.</aside> <section>section within a page or chapter within an article, etc.</section> <div>other non-semantic division of text</div> For details, read Dive into HTML5 or look at the HTML5 Element Flowchart: http://html5doctor.com/downloads/h5d-sectioning-flowchart.png CS21: Creating and Building Websites Week 1 Slide 17 of 28

Breaking Lines and Paragraphs <p> text text text </p> Paragraph tag Most browsers render (process) this with blank lines between each paragraph <br /> Line break tag. Used when the webmaster wants a carriage return but doesn't want a blank line to follow <hr /> Horizontal Rule. Used to place a straight line across the page. CS21: Creating and Building Websites Week 1 Slide 18 of 28

Examples of Breaking Lines <p>this is an example of how</p> <p>paragraph tags work.</p> <hr /> <br />This is an example of how <br />line breaking tags work. CS21: Creating and Building Websites Week 1 Slide 19 of 28

Header Tags Header Tags Used for marking sections and subsections in a document. Using Cascading Style Sheets (CSS), you can change the default meaning for the tags (more on this next week). <h1> Header 1 Main section; Giant-sized and bold </h1> <h2> Header 2 Subsection; Large and bold </h2> <h3> Header 3 Sub-subsection; Normal-sized and bold </h3> <h4> Header 4 Sub-subsection; Small and bold </h4> <h5> Header 5 Sub-subsection; Very Small and bold </h5> <h6> Header 6 Sub-subsection; Tiny and bold </h6> CS21: Creating and Building Websites Week 1 Slide 20 of 28

Formatting text Bolding and Italicizing: <strong>text you want bold (strongly emphasized) </strong> <b> The bold tag should not be used. </b> <em>text you want in italics (emphasized) </em> <i> The italics tag should not be used. </i> <cite> The cite tag is used for citations (books, journal articles, etc.) </cite> <address> The address tag is used to indicate the main contact for the web site. </address> Aligning text or graphics left/center/right: The CSS style text-align has a value of left, center, right, or justify. We ll cover CSS starting in week 3. Stay tuned! CS21: Creating and Building Websites Week 1 Slide 21 of 28

Planning for your site BEFORE you start creating pages and coding tags -- before you begin to write content, even -- you need to do some planning AUDIENCE -- who do you think will visit your site? GOALS -- what do you want to accomplish with this site? FLOWCHART -- map out a logical layout of pages to guide visitors through your site CS21: Creating and Building Websites Week 1 Slide 22 of 28

Planning -- types of webpages Types of pages Personal Home Pages -- http://web.stanford.edu/people/markb/ Audience: family, friends, future employers, people who want to get to know you better Goals: To share personal information Business pages -- http://www.fedex.com/ Audience: clients, associates, workers Goals: Bring in new business, sell products, provide information about products Informational pages -- http://dizpins.com/ Audience: general public, specifically those with an interest in the topic Goals: to provide information CS21: Creating and Building Websites Week 1 Slide 23 of 28

Basic Web Site Organization Once you know your audience and the goals of your site, it's time to think about how you're going to present your information. Create a flowchart of the webpages you plan to design. Group web pages together by topic -- putting all your family web pages in one directory and web pages related to a hobby in another directory. However you decide to organize your site, it should make sense to YOU. Put some thought into the process before you start -- and map it out well -- so that you only have to do it once. work.html resume.html index.html family.html fun.html pets.html CS21: Creating and Building Websites Week 1 Slide 24 of 28

Organization chart After you figure out what pages you want on your website, you need to think about creating logical directories (folders) to store them. Again, it's a good idea to group pages by themes in different directories. You should also think about creating a separate directory for all graphics/photos. CS21: Creating and Building Websites Week 1 Slide 25 of 28

Organizing for your visitors In addition to thinking about the organization of your web site from the creator's perspective, you must also put some thought into presenting your web pages so that visitors to your site will be able to easily move from page to page. One helpful way to do this is through the use of a navigation bar. These can take several forms, from simple text to more complicated graphical forms. Text bars can be something like this: Home Job Family Pets Hobbies Fun Links Graphics navigation bars could be a graphical version of the same thing. It is important to not abandon your visitors deep within your site. Having a navigation bar also gives a sense of continuity throughout the site. Home Work Family Pets Hobbies Fun Links CS21: Creating and Building Websites Week 1 Slide 26 of 28

In-class assignments In-class HTML assignments Byet Host account creation (if time permits - otherwise, it s homework for next class!): https://byet.host/free-hosting/news CS21: Creating and Building Websites Week 1 Slide 27 of 28

Preview of next week Adding links Adding style (color, font, size) CS21: Creating and Building Websites Week 1 Slide 28 of 28