1 Lect 4 HTML-Intro. 2 HTML & Web Pages A Web page is a text document that contains additional formatting information in the HyperText Markup Language.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Introduction to HTML. A Web Page is.. An ASCII (text) file.. Whose filename ends with.htm or.html –index.html or cookie-recipe.htm Contains HTML tags.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
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.
CS105 Introduction to Computer Concepts HTML
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
WELCOME EF 105 Spring EF 105 Computer Methods in Engineering Problem Solving Week 2: FrontPage Introduction to Software Use to create Web Pages.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
C1999 Kathleen Schrock 1 Basic HTML By Kathy Schrock.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Getting Started with HTML Please use speaker notes for additional information!
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Just Enough HTML How to Create Basic HTML Documents.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
Revised June 2008 Online PD Basic HTML1 Let’s Try It!  Open Notepad oStart > All Programs > Accessories > Notepad oDon’t get WordPad by mistake – won’t.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Marking Up with XHTML Tags describe how a web page should look
Introduction to XHTML.
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

1 Lect 4 HTML-Intro

2 HTML & Web Pages A Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML) HTML specifies formatting within a page using tags In its simplest form, a tag is a word or symbol surrounded by angle brackets (<>) or chevron. Most come in pairs. Since the Web is designed to work with all types of computers and operating systems, regardless of the specific hardware and/or software installed on a particular system, the input files for Web pages are created as plain ASCII text files (Lecture 5).

3 HTML & Web Pages With a word processor, the user has very tight control over the exact layout of the document. With HTML, the user has control over the logical layout (structure), but not over the physical layout. two browsers may display a page differently. Browser rearranges page when it is resized. Look at examples.

4 HTML Page and enclose the entire HTML document The page consists of two sections: HEAD and BODY. the HEAD section (enclosed between and ) contains information about the page  the HEAD can contain a title for the browser window, enclosed between and  It’s "good style" to include a title. It is used to refer to the page, for example in a list of bookmarks (favorites) or in the results of a search engine

5 HTML Page The BODY section (enclosed between and ) contains the text that will appear in the page (inside the browser window). Advice: Create the tags in pairs so you don’t forget the close tag. If we’re in lab, do it (maybe after next two slides). Save as, Desktop,.html, All files, Save, Double click

6 HTML Elements tags and the text they enclose form an HTML element Title of the Page is a TITLE element Title of the Page is a HEAD element (which contains a nested TITLE element) most HTML elements have opening and closing tags, but not all is a COMMENT element a comment is ignored by the browser (it does not appear in the rendered page) comments are used by the page developer to record info for the human reading the HTML file.

7 HTML Tags

8 Text Layout white space (extra spaces, tabs and blank lines) are ignored by the browser this allows the browser to adjust the text to the window size you can control some of the text layout using HTML elements a PARAGRAPH element … specifies text surrounded by blank lines a BREAK element causes text to be displayed on a new line. No closing tag so it ends with a space and slash. the symbol forces a space to appear in the text

9 Headings and horizontal rule  in a large document, it is useful to divide the text into sections and then provide each with a heading describing the content that follows … enclose a top-level heading (large and bold) … enclose a sub-heading (slightly smaller and bold)... … enclose the smallest sub- heading  the HORIZONTAL-RULE element draws a dividing line in the page. It is self-closing.

Alignment (SKIP) 10 Skip any “style= “ by default, headings and other elements are left-justified in the page can change the alignment of an element by adding a style attribute that qualifies the appearance of the element Centered Heading This paragraph is right justified. Each line will be shifted to line up at the right margin.

11 Headings & Alignment (SKIP no div)

12 Font Formatting text can be formatted in a variety of ways: bold … italics … underlined … (poor style because looks like link) Bold text Italic text Underlined text Bold text Italic text Underlined text

13 Font Formatting

14 Color-do it the way the lab does it. Will see in later slide colored text is enclosed in … common colors can be used (e.g., red, green, orange, lightblue, darkblue) Not responsible for “span” We may do color the old way later

15 Lists HTML lists organize items in sequence … enclose an unordered list; … enclose an ordered list … enclose a list item

16 Nested Lists-skip  Copy entire unordered list and paste it instead of the third list item.  Notice how the bullets are changed.  WE can choose the bullets and “numbers”…..

17 List Styles-SKIP a style attribute can be used to format the list elements

Lab 3 at this point? 18

19 Hyperlinks a hyperlink, or just link, is a connection to another Web page. by default, a link appears as underlined text in the page. links whose pages have not yet been visited are blue. links whose pages have previously been visited are purple. when the user clicks on the link, the corresponding page is retrieved and displayed a link is specified using ANCHOR tags and text that appears within the tags is displayed as the link in the page.

20 Hyperlinks Google Search What will be displayed? What will it do when user clicks? To where will it link? Need an HREF attribute that specifies the associated Web address: C. U. Common errors  leaving out or misspelling the URL  leaving out the text for the anchor  is necessary.

21 Hyperlinks can also link to another page stored in the same directory on the same machine. Specify just the file name. Local Page

22 Hyperlinks

23 Images Web pages can contain other types of media besides text and links images are embedded in a page using an IMG tag similar to and, there is no closing tag so it ends with a slash IMG attributes SRC specifies the location of the image file ALT specifies alternate text that is displayed if the image fails to load

24 Images  The above is called an inline image.  Can have a background image. The picture will be tiled, like tiles on a floor. Works best with patterns rather than well-defined pictures. Use  In order to include a picture on a Web page, you first have to have a file containing a picture. The file should be in.GIF,.JPG (or.JPEG) or the new.PNG format only. Other formats will not work with all browsers. (AOL supports.BMP and.ART formats, but they will NOT work with all other browsers.).JPG may not work  Image must be in same folder. Not just shortcut.

25 Color (deprecated?) There are 5 color elements to a Web page: - the background color - the text color - the unvisited link color - the visited link color - the active link color (visible when you press the mouse button before you release.) <body bgcolor = “yellow” text = “red” link = “green” vlink = “pink” alink = “white”> (These don’t always work)

26 Background When setting a background image, authors should also specify a background color that will be used when the image is unavailable. When the image is available, it is rendered on top of the background color. (Thus, the color is visible in the transparent parts of the image).

27 Tables text can be aligned into rows and columns using a TABLE element and encapsulate the table data and encapsulate a row within the table and encapsulate table data within a row (i.e., a column entry)

28 Tables with Borders borders can be added to tables using the border attribute the numeric value assigned to the attribute specifies thickness

29 Tables for Alignment tables are commonly used to align elements in the page here, an image is aligned to the left of some text

Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web.  The input tag is a one sided tag, so it is self-closing  There are several types of inputs. We will use button and the textbox.  Won’t react till later

Button  a button provides a simple mechanism for user interaction in a Web page by clicking the button, the user initiates some action  general form of a button element: the TYPE attribute identifies the element to be a button the ID attribute gives the element an identity so that it can be referenced the VALUE attribute specifies the text label that appears on the button No closing tag, so we end with /

Button NOTE: At this point, the button will not actually do anything. To get something to happen when a button is pressed requires some programming, not just HTML. JavaScript is later in the term.

Text Box  a text box is box that can display text. it is used for receiving user input.  general form of a text box element: the TYPE attribute identifies the element to be a text box the ID attribute gives the element a name so that it can be referenced the VALUE attribute specifies the default text that initially appears in the box. If omitted, the box is empty.

Pizza What type of pizza? <input type=“text” id=“pizza” value=“vegetable”> please enter your name: please enter your room: See pizza_noForm.html