HTML Basics.

Slides:



Advertisements
Similar presentations
3.02D HTML Overview 3.02 Develop webpages.
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
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.
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
Marking Up With Html: A Hypertext Markup Language Primer
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.
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.
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.
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.
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 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.
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.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
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.
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.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
HTML Structure & syntax
Introduction to HTML.
Extended Learning Module F
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
Computer Fundamentals 2
3.00cs HTML Overview 3.00cs Develop webpages.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
HTML (HyperText Markup Language)
WEBSITE DESIGN Chp 1
Computers and Scientific Thinking David Reed, Creighton University
Creating a Web Page Using HTML
3.02D HTML Overview 3.02 Develop webpages.
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- Basics
Introduction to HTML.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Marking Up with XHTML Tags describe how a web page should look
HTML Basics Mr. Fazzalari.
Marking Up with XHTML Tags describe how a web page should look
3.02D HTML Overview 3.02 Develop webpages.
AN INTRODUCTION BY FAITH BRENNER
Lesson 2: HTML5 Coding.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML Basics

HTML Coding

HTML Hypertext markup language The code used to create web pages

HTML Tags Text that appears between two angle brackets < > Text that tells the web browser how to display a web page’s content Do not see HTML tags in the browser window

Tag Sets Pairs of HTML tags Tells a browser where formatting should start and end

Starting tag Also called opening tag Defines the beginning of a particular tag Example: <strong> definitely red </strong>

Ending tag Also called closing tag Tells the browser where a starting tag ends Forward slash in the brackets indicates an ending tag Example: <strong> definitely red </strong>

Nested Tag A tag enclosed inside another set of tags Example <p> He <em> almost </em> won an award. </p>

Empty Tag A tag that only requires an opening tag Examples: <br> - line break <hr> - horizontal rule <img> - image

Source Code The text and HTML elements used to create a web page

Using a Text Editor

3 Main Parts of an HTML Document DTD (Document Type Definition) Header Body

DTD Specifies what version of HTML is used in your page

Header Provides info to the browser about your page Such as title and author Does NOT appear in the browser The TITLE is displayed in the browser’s title bar <head>, </head>

Body The tag set that encloses the code for the content you see displayed in the browser’s window <body>, </body>

Naming Files Keep file names descriptive but somewhat short Use the underscore (_) to indicate a blank space between words

File Name Extension Tells the computer what type of file it is reading Notepad automatically saves all files with a .txt extension Web browsers can’t read .txt Must change it to .htm

Attribute An instruction that further specifies a tag’s characteristics Allows you to assign colors, styles and alignment to a page Placed in opening tags Have a name, an equal sign (=) and a descriptor that MUST appear in quotes Must be in lowercase to meet specifications

Font Color Attribute Used to change the text color The descriptor specifies which color to use Example: <font color=“green”> grass </font> 16 named colors 216 hexadecimal colors

Background Color Attribute Used to specify a page’s background color by adding attributes to the <body> tag Example: <body bgcolor=“33cc33”>

Alignment Attributes Used to specify text alignment All text is automatically aligned to the left margin To change the alignment add an align attribute Example: <font align=“right”>

Heading Tags Used to break text into short, readable sections 6 different sizes: H1 – largest H6 - smallest

Lists Make text easier to read Adds visual interest to a page Helps readers identify key points on a page more quickly

2 Types of Lists Ordered List Unordered List Items that must appear in a certain sequence (numbered or lettered) Uses the <ol>, </ol> tag set Unordered List Items can appear in any order (bulleted) Uses the <ul>, </ul> tag set

Viewing an HTML Page It is important to view the web pages that you create in a text editor in a browser because Notepad does not show you how your web page will look

Enhancing and Testing Your HTML Page

Adding Images Using HTML Use the <img> tag to insert an image into a web page The <img> tag locates the image and displays it in a browser Consists of five (5) common attributes

src: specifies the source location of the image alt: gives the browser an alternative text message to display if the image is missing align: wraps text around an image border: places a border around an image width: specifies the image’s width height: specifies the image’s height src and alt should always be used when creating an image tag

Example <img src=”images/book.gif” alt=“books” align=“center” border=“0” width=“40” height=“30”>

Anchor Tag Creates a hyperlink around selected text <a>, </a> is the tag set used to create all links href is the attribute used to tell the web browser where it needs to go

Link Types Text Link: text a user clicks to activate a hyperlink Graphic Link: an image a user clicks to activate a link

Relative Link Example: <a href=“happy.html”> click here if you are happy </a> Code contains the name of the file being linked to Only works if the document being linked to is in the same web site folder as the document containing the link Links pages within the SAME web site

Absolute Link Example: <a href=“http://www.reallyhappy.com”> click here if you are really happy </a> Code contains the complete URL or path of the file being linked to Usually external links

Debugging Locating and correcting any obvious errors in your code as you are building the page

Testing Checking the page to make sure it displays as designed Allows you to double check the links are working properly The formal process of checking web pages for completeness and full functionality in a browser before launching it