1 Today File Paths and File Extensions Files and Folders Defining Absolute and Relative Addresses Most Known File Extensions Your First Web Page Elements.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Learning the Basics – Lesson 1
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Teppo Räisänen LIIKE/OAMK 2010
XHTML Basics.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
HTML Computing Concepts HTML - An Introduction 1.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
CIS101 Introduction to Computing
Internet Publishing / Dreamweaver Luke E. Reese ANR Educ. and Communication Systems
MA10126 Introduction to HTML Gavin Shaddick
HTML Introduction HTML
Internet Publishing / Dreamweaver Luke E. Reese CARRS
HTML BASIC
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Creating a Simple Page: HTML Overview
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
CS117 Introduction to Computer Science II Lecture 2 Creating an HTML Document Instructor: Li Ma Office: NBC 126 Phone: (713)
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Course Content - Chapter 2 Introduction to HTML Introduction to a Text Editor as a web authoring tool Instructional Activity: Creating a webpage using.
Web Page Creation Part I ST: Introduction to Web Interface Design Prof. Angela Guercio.
Just Enough HTML How to Create Basic HTML Documents.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
Introduction to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
HTML BASICS Web Design I. Web Design  WWW created in the late 1980’s  Used in academics for the next 5 years  Mosaic (1994) allowed both pictures &
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
C H 07: M ORE A BOUT HTML Tharith Sriv. O UTLINE You have already learnt almost everything in HTML. In this chapter, you will learn more about:  An HTML.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Internet Publishing / Dreamweaver Luke E. Reese Biosystems & Ag. Engr. / CARRS
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
Lesson 2 – Unit B. Quick review 1. What is the name of the eGCC host that you ftp your files? 2. What type of software do you use to create and edit web.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
LBSC 690 Session 4 Programming. Languages How do we learn a language? Learn by listening Then reading Then writing How do we teach programming? Learn.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Introduction lab1. Suzanne J. Sultan 2 What is HTML? The definition of HTML is Hyper Text Markup Language. HTML is a computer language devised to allow.
HTML Overview.  Students will learn: How HTML tagging works How browsers display tagged documents How an HTML document is structured.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML Basics.
Introduction to HTML.
Learning the Basics – Lesson 1
XHTML Basics.
XHTML Basics.
XHTML Basics.
Unit A.
XHTML Basics.
XHTML Basics.
Presentation transcript:

1 Today File Paths and File Extensions Files and Folders Defining Absolute and Relative Addresses Most Known File Extensions Your First Web Page Elements of a Web Page Creating an HTML Template Common Coding Errors Editing an HTML document Empty Tags Body Tag Attributes A Few Considerations Review Questions Exercise

2 Objectives Understand an “absolute path” and it’s usage Use an HTML template to create a new web page Integrate into HTML documents meaningful titles and comments Use a browser to view Web pages saved on a local drive Employ heading and paragraph elements within a well-written HTML document Appropriately use line and paragraph breaks within a Web Page Use colors in a Web page

3 File Paths and File Extensions CLASSSIFICATION The crucial term is : CLASSSIFICATION... Think about your File Organization by Windows Explorer My Computer c:/ HDD_ Level Level Level 1 d:/ HDD_ Level Level Level Level 1 e:/ CdRom

4 File Paths and File Extensions c:/ HDD_1 c:/ Level Level 2c:/Level1/Level Level 1 d:/ HDD_ Level 1d:/Level Level Level 3d:/Level1/Level2/Level Level 1 e:/ CdRom FILE is be a related description, so IT MUST HAVE AN EXTENSION means name.ext FOLDER is a containing description, so IT CONTAINS something else Tree ViewPath

5 File Paths and File Extensions bim staff arzuikinci... index.htm Terms we generally use;. Root Folder: top level folder, use “/” (forward slash). Current Folder: folder you are working in. Pathname: from top level through lower level folder names, Don’t USE above for Folder and File names;. space (blank character). \ / : * ? “ |. turkish characters. capital letters

6 File Paths and File Extensions ADDRESSING STRUCTURE is same as DIRECTORY LISTING you use in Dos. Our aim : TO REACH a definite FILE Our method: 1. find the FILE’s destination 2. define your addressing method (absolute/relative) 3. set the pathname... ABSOLUTE ADDRESS... is the full pathname of your file. begins with the top level directory listing through the lowest level.. find the File’s destination. and then, type this destination from the highest level.... RELATIVE ADDRESS... is the directory naming according to your working folder.. set your working folder in mind,. and target yourself to the file you want to reach,. the path you follow is the relative address of your file. use “../” to go up one folder use “/” to go forward

7 File Paths and File Extensions... ABSOLUTE ADDRESS... RELATIVE ADDRESS... assume that; current folder : html current file : index.htm target file: family.jpg Absolute Address: homedirectory/public_html/jpegs/family.jpg Relative Address:../jpegs/family.jpg

8 File Paths and File Extensions... ABSOLUTE ADDRESS... always you will write the full pathname ( so it is not efficient. you have to change all pathnames when you update somewhere in your site. leads to typing errors Think that someone saves your web site in his machine. Since the html source has the full pathname, it will go to your web site and get the files.... RELATIVE ADDRESS... important to set the path name from your current file’s folder to the target file’s folder. Examples from Front Page. 1. open a blank page. 2. do not save the page. 3.import an image to this page from a folder, and view the HTML Code part.

9 File Paths and File Extensions instructor’s home directory classes stamp public_html _notes index.htm mail1mail2 web_design assignments grades hw1 hw2 quiz1.htm fidelio edp_mis jpegs html family.jpg index.htm 1.htm Exercise for 5 min

10 File Paths and File Extensions extension defines the type of file.... Why do we need?.... set the program we will open, edit, execute the file.... What about Internet Files?.... HTML files.htm.html. Programming files.asp.jsp.php... Most Known File Extensions....htm.html.asp.jsp.php.doc.xls.txt.ppt.jpg.gif.pdf.zip

11 HTML HyperText Markup Language : open source coding + scripting. HTML is the way of interpreting most kind of files through a web browser..doc is a Word Document file; where it means you will create, edit, with the same tool : Ms Word. However,.html or.htm is non-platform based. Different platforms having common attributes defined by W3C. Not a word Processing tool and a desktop publishing solution. More complex and more general. Also contains programming codes, that all platforms understand.

12 HTML... Elements of a Web Page... Empty elements (used for page formatting, no closing tags) Contatiners (used to manipulate, or control the contents placing within them) TAGS : the way you differentiate the text from coding. Can, this doesn't look so hard. Now I really want to learn HTML. The and are called as HTML tags

13 HTML... Do I Need to Learn?.... If you want to understand background of the Web,. If you want to have control of unsatisfactory results of an authoring tool,. If you want to examine other’s HTML sources -especially to copy its code to your web page-,. If you want to make server side programming.

14 HTML... How do We use TAGS... think TAG as a command which means. you want to implement something to a phrase,. you have only the TEXT tools,. so, you need to differentiate the phrase from the command. how can we differentiate the TAG from the phrase?. using “ ” for tags. using “<>” and “ ” for opening and closing a tag tags can be nested which means....

15 HTML... Basic Web Page Structure (.htm or.html)... Document Hello World

16 HTML HTML template of commonly used codes between doen’t seen from the browser only the descriptive information place of page between the code executed and viewed by the browser Type them in to a file and save as html_tmp.htm

17 HTML header data Description:provides descriptive information about a document as part of the header Type:container Identifies the other tags that make up the header html document Description:first and last line in every HTML document Type:container Document Type Beginning and Ending of a Web page

18 HTML header data Description:Identifies the content of the Web page Type:container Attributes: alink, background, bgcolor, class, dir, id, lang, link, onclick, on dblclick,onkeydown, onkeypress, onkeyup, on mousedown, onmousemove, onmouseout, onmouseover, onmouseup, onunload, style, text, title, vlink descriptive title Description:provides descriptive information about the document for display at the top of the screen, not in the body of the document Type:container It’s important:- Visitors may use in a bookmark, Favorite, or Hot List - Searching with “Title” - idea of the contents as soon as they arrive Good and Bad  Examples: Basic HTML commands stuff Pictures of Green Sea Turtles Really Cool Pictures of Turtles I have taken While On Vacation My Home Page TNT’s Ten Terrific Test İts appearence in a browser. Plain Text!

19 HTML... Important notes for Coding.... White Space Does not Matter! This is Code:the first paragraph Returns:This is the first paragraph. Next Line; “Enter” does not work!. Break Code I don’t want new paragraph I want to continue from the next line ReturnsI don’t want new paragraph I want to continue from the next line

20 HTML... Important notes for Coding.... Interpretation of Spaces, Tabs, and New Lines HTML document ignores extra spaces, tabs, and blank lines, and treats as a single space.  makes a space  makes a new line  makes a paragraph indent

21 HTML... Style Tags (physical and logical)... A style is a set of formatting rules; alignment, size,color,font..... Fancy Heading 1 Heading Tag (H1-H6) Demonstration heading 1 heading 2 heading 3 heading 4 heading 5 heading 6

22 HTML... Common Coding Errors... A missing tag results in the title not appearing in the title bar. Missing beginning tag results in having title in wrong place Missing ending tag, rest of the text will be in heading 1 format. forgetting the ending tag Reversing the order of ending tag Placing the slash in the ending tag in the wrong place Forgetting to place attribute values within quotes Forgetting one of the quotes around an attribute value Forgetting to include an octothorp (#) in front of an RGB hexadecimal number Using less than or more than six digits in an RGB hexadecimal number.

23 HTML... More Web Page Elements... Description:Used to annotate an HTML document (browsers ignore any text enclosed within this tag) Type:empty Attributes: none Special Note: used to identify the author and original creation date of the document or to take some notes. What? Why? Why?

24 HTML... More Web Page Elements... heading, heading,...., heading Description:Identifies one of six levels of heading Type:container Attributes:align, class, dir, id, lang, onclick, on dblclick, onkeydown, onkeypress, onkeyup, on mousedown, onmousemove, onmouseout, onmouseover, onmouseup, style, title. paragraph Description:Identifies a continuous string of text within the page Type:container Attributes:align, class, dir, id, lang, onclick, on dblclick, onkeydown, onkeypress, onkeyup, on mousedown, onmousemove, onmouseout, onmouseover, onmouseup, style, title.

25 HTML... Editing an HTML Document... Use ASCII editor to create and save your document: File / Save (As) *.htm or *. html To Preview your document: Browser  File / Open *.htm or *. html To display saved changes in your document: Browser  Refresh or Reload Just a note on safety: save backup(s) of your document: File / Save (As) *.001, *. 002,.....

26 HTML... Body Tag Attributes background color: background image: text color: link colors: <body link=“#ff0000” vlink=“#ff0000” alink = “#ff00ff”>

27 HTML... Key Terms... Attributes Comments Container Element Empty Element Horizontal Rule Line Break Paragraph Style... New Tags...

28 HTML... Review Questions... 1.Define each of the key terms. 2.How are each of the tags introduced in this lecture used? (provide examples) 3.Which HTML tags should be included in a minimal HTML template? 4.What tag must be included in every cotainer element. 5.Give three resons why the element should be used. 6.Name 5 common HTML coding errors. 7.How do you update a browser’s screen after changing the content or tags in the related HTML document? 8.How are comments used within an HTML document? 9.When using a graphical browser, how do you save background images like?