McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML.

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

HTML Basics Customizing your site using the basics of HTML.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
HTML popo.
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 popo.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Web Page Development Identify elements of a Web Page Start Notepad
HTML Introduction HTML
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
Designing Web Pages Getting to know HTML... What is HTML? Hyper Text Markup Language HTML is the major language of the Internet’s World Wide Web. Web.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML.
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.
4 HTML Basics 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.
HTML (HyperText Markup Language)
HTML H yper T ext M arkup L anguage. HTML HTML is NOT case sensitive However, proper coding etiquette if for all to be in ALL CAPS and for text to be.
Understanding HTML Code
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
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.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
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.
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.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
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.
HTML: Hyptertext Markup Language Doman’s Sections.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
4 HTML Basics 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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
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.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 Foundation of HTML Web Page Design. 2 Safe Web Fonts: Used by most computers regardless of environment or platform  Times New Roman  Arial  Courier.
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.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Introduction to HTML (Web Design) IT Fundamentals.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Learning the Basics – Lesson 1
Plug-In T10: Creating Webpages Using HTML
Presentation transcript:

McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML

T10-2 LEARNING OUTCOMES 1.Explain what HTML is 2.Describe the purpose of HTML tags 3.Explain how browsers display tagged HTML documents 4.Describe how an HTML document is structured

T10-3 LEARNING OUTCOMES 5.Describe what an HTML attribute is. 6.Describe how to create, save, and view HTML documents 7.Explain what a structure tag is 8.Explain how to apply bold, italic, and underline formatting to an HTML document

T10-4 LEARNING OUTCOMES 9.Describe how to create ordered and unordered lists 10.Describe the different types of Web links and how to insert them in a HTML document 11.Explain how to insert images in a HTML document

T10-5 INTRODUCTION Hypertext Markup Language, or HTML, is a system of codes that you use to create Web pages HTML, though, is not what you see onscreen as a Web page HTML is the behind-the-scenes code that tells browsers what to display

T10-6 HTML HTML is made up of tags and attributes that work together to identify document parts and tell browsers how to display them

T10-7 Understanding Tags HTML tags serve two purposes: 1.They identify logical document parts —the major structural components in HTML documents 2.HTML tags reference other elements - tags can include pointers and links to other documents, images, sound files, video files, multimedia applications, animations, applets, and so on

T10-8 Understanding Tag Components All tags are composed of elements that are contained within angle brackets ( ) The angle brackets simply tell browsers that the text between them is an HTML command Some sample tags look like these: – (for heading level 2) – (for document body) – (for bold)

T10-9 Understanding Tag Components Most tags are paired, with an opening tag ( ) and a closing tag (</H1) –Both tags look alike, except the closing tag also starts with a forward slash (/) To apply tags to information, place the opening tag before the information, and place the closing tag after the information Example: – This is a heading

T10-10 Understanding Tag Components To apply more than one tag to a chunk of information, you nest the tags Nesting means placing one set of tags inside another set Example: – This is an italicized heading

T10-11 Improving Readability You will find it easier to read and use tags in your HTML code if you follow a few conventions 1.Type tags using all caps 2.Use hard returns to create shorter lines These conventions do not affect how browsers display code, they just make it easier for you to read the HTML

T10-12 Improving Readability The code below is identical (however, one of them is far easier to read): HTML Document Title HTML Document Body or HTML Document Title HTML Document Body

T10-13 Understanding Attributes Some tags work in conjunction with attributes Attributes provide additional information about an element, such as… –How elements should align –What other files should be accessed –The color of an element All attributes go in the opening tag and are separated from other attributes and the tag itself by a space

T10-14 Understanding Attributes If you want to center a heading in the browser window, start with your heading and tags: A heading goes here Add the ALIGN= attribute to the opening tag, like this: A centered heading goes here

T10-15 Understanding Attributes In HTML, the attributes can go in any order after the tag The tag must always go first You can include multiple attributes in a tag by using one space between each attribute: A wildly formatted heading goes here

T10-16 HTML Tools To create an HTML document, you need only two basic tools: 1.An HTML editor, to create and save your HTML documents 2.A Web browser, to view and test your HTML documents

T10-17 HTML Editors In general, HTML editors fall into two categories: 1.Text- or code-based, which allow you to see the HTML code as you are creating documents 2.WYSIWYG (What You See Is What You Get), which show the results of code, similar to the way it will appear in a browser, as you are formatting your document

T10-18 Web Browsers The most common browsers are Mozilla Firefox and Microsoft Internet Explorer Although a variety of browsers are available for virtually all computer platforms and online services Browsers tend to display things a bit differently

T10-19 CREATING, SAVING, AND VIEWING HTML DOCUMENTS How you start a new HTML document depends on which operating system and editor you are using You will find that starting a new HTML document is similar to starting other documents you have created

T10-20 CREATING, SAVING, AND VIEWING HTML DOCUMENTS Here is the general process of creating an HTML document: –Open a text editor (such as Notepad or SimpleText) –Start a new document by choosing File, then select New –Enter the HTML code and text you want to include –Save your document with the extension.htm or.html by choosing File Save or File Save As

T10-21 Applying Structure Tags After you create a new document, your first task is to include structure tags Structure tags provide browsers with information about document characteristics Structure tags identify the document as HTML, provide introductory information about the document, and include the title

T10-22 Applying Structure Tags All HTML documents should include four structure tags, nested and ordered

T10-23 The Tags The tags identify the document as an HTML document To use the tags, enter them in your document like this:

T10-24 The Tags The tags contain information about the document, including its title, scripts used, style definitions, and document descriptions To use the tags, enter them between the tags, for example:

T10-25 The Tags The tags are contained in the document title The title does not appear within the browser window, although it is usually visible in the browser's title bar A HTML Tutorial

T10-26 The Tags The tags enclose all the tags, attributes, and information that you want a visitor's browser to display To use the tags, enter them below the closing tag and above the closing tag: A HTML Tutorial All the tags, attributes, and information in the document body go here. This is what the browser displays on the screen.

T10-27 Applying Style Tags And Attributes Style tags tell the browser exactly how to present the labeled text These elements constitute the basic HTML document components and, unlike the structure tags, do appear in the browser window

T10-28 Paragraphs One of the most common tags you will use is the paragraph tag,, which is appropriate for regular body text HTML automatically adds an extra blank line before and after a paragraph To use the paragraph tags, put them around the text you want to format as a paragraph, for example: A whole paragraph goes right here.

T10-29 Creating Headings Headings break up large areas of text, announce topics to follow, and arrange information according to a logical hierarchy HTML provides six levels of headings: … The largest … … The smallest

T10-30 Creating Headings

T10-31 Creating Headings By default, all browsers align headings on the left To use the alignment attributes, include them in the initial heading tag, such as: Left-aligned Heading Centered Heading Right-aligned Heading

T10-32 Creating Lists Lists are a great way to provide information in a structured, easy-to-read format Lists come in two varieties: 1.Numbered (ordered) 2.Bulleted (unordered)

T10-33 Creating Lists 1.Start with text you want to format as a list: Lions Tigers Bears Oh, My! 2.Insert the tags around the list text: Lions Tigers Bears Oh, My! 3.Type the tag for each list item: Lions Tigers Bears Oh, My!

T10-34 Creating Lists

T10-35 Creating Lists

T10-36 Applying Bold, Italic, and Other Emphases You can apply formatting to individual letters and words For example, you can make a word appear italic, bold, underlined, or superscript (as in e 2 ) Example: This is the end of a paragraph that also uses boldface. This is the beginning of the following paragraph.

T10-37 Applying Bold, Italic, and Other Emphases

T10-38 Using Horizontal Rules Horizontal rules are lines that break up long sections of text, indicate a shift in information, or help improve the overall document design The tag is a nonpaired tag; it has no ending tag To use a horizontal rule, put the tag where you want the rule to appear: Long passages of text should often be broken into sections with headings and, optionally, horizontal rules. A Heading Also Breaks Up Text A new long passage can continue here.

T10-39 Using Horizontal Rules

T10-40 Inserting Line Breaks You can easily break paragraph lines by inserting the tag where you want the lines to break: There once was an HTML writer, Who tried to make paragraphs wider. She found with a shock All the tags did mock The attempt to move that text outside.

T10-41 Inserting Line Breaks

T10-42 USING FANCIER FORMATTING Most newer browsers support effects, not all browsers do; your fancier effects might not reach all visitors The HTML specification discourages many of these effects in favor of Style Sheets You might consider using Style Sheets instead of the tags and attributes

T10-43 Adding Colors You can add a background color and change the text colors to coordinate with the background You can highlight a word or two with color to make the words leap off the page If you are developing a corporate site, adhere to the company's color scheme to ensure a consistent look

T10-44 Adding Colors You specify colors using hexadecimal numbers, which combine pro­portions of Red, Green, and Blue — called RGB numbers RGB numbers use six digits, two for each proportion of red, green, and blue Not all RGB numbers display well in browsers; some colors dither, meaning that they appear spotty or splotchy

T10-45 Setting Background Colors To specify a background color for your documents, include the BGCOLOR= “#...” attribute in the opening tag, like this: <BODY BGCOLOR=”#FF0000”›

T10-46 Specifying Text Colors You can specify the color of the following: –Body text, which appears throughout the document body –Unvisited links, which are links not yet followed –Active links, which are links as they are being selected –Visited links, which are links previously followed

T10-47 Specifying Text Colors To change text and link colors, follow these steps: –Within the tag, add the TEXT= attribute to set the color of text within the document –The example presented here makes the text white –Unless you change the background color you will not see the text, as the background default color is also white!

T10-48 Specifying Text Colors Add the LINK= attribute to set the link color: Add the VLINK= attribute to set the color for visited links Set the ALINK= to specify the active link color

T10-49 Specifying Text Colors

T10-50 Specifying Fonts and Font Sizes Specify fonts and increase font sizes to improve readability with dark back­grounds and light colored text Use the tag to specify font characteristics for your document, including color, size, and typeface

T10-51 Specifying Fonts and Font Sizes Select a specific font using the FACE= attribute This text is displayed using Verdana font face and the default browser’s font size. Change the font size using the SIZE= attribute You set the size of text on a relative scale - from 1 to 7, with the default size being 3 Either set the size absolutely (with a number from 1 to 7) or relatively (with + or-to change the size)

T10-52 Specifying Fonts and Font Sizes Add a COLOR= attribute to set the color, using a color name or a #RRGGBB value This text is displayed using Technical font face, a font size of +2, and a font color of green.

T10-53 Specifying Fonts and Font Sizes

T10-54 CREATING HYPERLINKS A hyperlink is a bit of text or a graphic that you can click to… –Move to a different location on the page –Open a different Web page –Start an message –Download a file –View a movie –Listen to a sound clip –Activate a Web-based program

T10-55 Hyperlinking to a Web Page No matter what type of hyperlink you want to create, the basic syntax is the same It starts with the tag, and then uses an HREF= argument that provides the URL or the path to the destination Example: University of Denver

T10-56 Hyperlinking to a Web Page

T10-57 Hyperlinking to an Address To create a hyperlink to an address, use the same HREF= argument as before, but instead of a Web address, type MAILTO: followed by the address, like this: Contact Me Or… Contact Me

T10-58 Hyperlinking

T10-59 Hyperlinking to Other Content A hyperlink can reference any file, not just a Web document You can take advantage of this to link to other content such as… –Microsoft Office documents –Compressed archive files such as.zip files –Executable program files such as setup utilities

T10-60 Hyperlinking to Other Content

T10-61 DISPLAYING GRAPHICS Web pages are more interesting and attractive when they include graphics In a word-processing program such as Microsoft Word, graphics are embedded in the document In HTML each graphic displayed on a Web page is stored in a separate file, which must be stored on a Web server

T10-62 Inserting Graphics Inserting a graphic on a Web page is as simple as placing an tag where you want the graphic to appear, like this: When a file is stored in the same folder as the HTML document in which it is referenced, you can refer to the file name only, without any location information

T10-63 Inserting Graphics If you want to store your graphics in a subfolder of the folder containing the text files (to organize your files more tidily), you must refer to the graphic with the subfolder name, such as:

T10-64 Inserting Graphics By default, unless you place the image within a block-level tag such as a paragraph or heading, the image blocks off all the space horizontally To force the image to the left or right side of the screen and wrap surrounding text around the image, apply an ALIGN attribute rule that uses a left, right, or center argument:

T10-65 Inserting Graphics

T10-66 SUMMARY Summary of the tags used is the plug-in:

T10-67 SUMMARY