INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.

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.
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.
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Common Tags Always include the … tags Comments placed inside tags HTML documents –HEAD section Info about the document Info in header not generally rendered.
HTML popo.
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
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.
Internet Applications Development Lecture 3 L. Obead Alhadreti.
Creating Pages in XHTML
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.
HTML Programming last updated 9/12/05 at 1:30pm HyperText Markup Language Reference: – HTML BasicsHTML Basics An HTML program is a set of paired tags that.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
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
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
1 Essential HTML coding By Fadi Safieddine (Week 2)
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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
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.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 HTML – HyperText Markup Language Representation and Management of Data on the Internet.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CPT 499 Internet Skills for Educators Session Ten Class Notes.
L. Anne Spencer (c) 2001 Basic Web Design Document, text, & layout formatting tags & attributes.
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.
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.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
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.
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.
HTML Basics.
Chapter 3 – Introduction to HyperText Markup Language 4 (HTML 4)
Chapter 9 – Introduction to HyperText Markup Language 4 (HTML 4)
Chapter 1: Introduction to XHTML (part 1)
Chapter 4 - Introduction to XHTML: Part 1
Tag Basics.
Computers and Scientific Thinking David Reed, Creighton University
Introduction to HyperText Markup Language (HTML)
Introduction to HTML- Basics
Presentation transcript:

INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1

Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking  Images  Formatting Text With  Special Characters, Horizontal Rules and More Line Breaks 2

Introduction HTML HyperText Markup Language Not a procedural programming language like C, Fortran, Cobol or Pascal Markup language Identify elements of a page so that a browser can render that Identify elements of a page so that a browser can render that page on your computer screen Presentation of a document vs. structure 3

Markup Languages Markup language Used to format text and information HTML Marked up with elements, delineated by tags Tags: keywords contained in pairs of angle brackets HTML tags Not case sensitive Good practice to keep all the letters in one case Forgetting to close tags is a syntax error 4

Editing HTML HTML files or documents Written in source-code form using text editor Notepad: Start-Programs-Accessories HTML-Kit: HTML files.htm or.html extensions Name your files to describe their functionality File name of your home page should be index.html Errors in HTML Usually not fatal 5

Common Tags Always include the … tags Comments placed inside tags HTML documents HEAD section Info about the document Info in header not generally rendered in display window TITLE element names your Web page BODY section Page content Includes text, images, links, forms, etc. Elements include backgrounds, link colors and font faces P element forms a paragraph, blank line before and after 6

A Simple Web Page 7

Headers Simple form of text formatting Vary text size based on the header’s “level” Actual size of text of header element is selected by browser Can vary significantly between browsers CENTER element Centers material horizontally Most elements are left adjusted by default 8

Header elements H1 through H6 9

10

Text Styling Underline style … Align elements with ALIGN attribute – right, left or center Close nested tags in the reverse order from which they were opened Emphasis (italics) style … Strong (bold) style … and tags deprecated Overstep boundary between content and presentation 11

Text Styling… 12

Text Styling… 13

Linking Links inserted using the A (anchor) element Requires HREF attribute HREF specifies the URL you would like to link to … Can link to addresses, using … Note quotation mark placement 14

Linking… 15

Linking to other web pages 16

Hyperlinks to s 17

Images Images as anchors Background color Preset colors (white, black, blue, red, etc.) Hexadecimal code First two characters for amount of red Second two characters for amount of green Last two characters for amount of blue 00 is the weakest a color can get FF is the strongest a color can get Ex. black = #

19

Images… Image background Image does not need to be large as browser tiles image across and down the screen Pixel Stands for “picture element” Each pixel represents one addressable dot of color on the screen Insert image into page Use tag Attributes: SRC = “location” HEIGHT (in pixels) WIDTH (in pixels) BORDER (black by default) ALT (text description for browsers that have images turned off or cannot view images) 20

Images… 21

Using Images as Anchors 22

Using Images as Anchors 23

Formatting Text With FONT element Add color and formatting to text FONT attributes: COLOR Preset or hex color code Value in quotation marks Note: you can set font color for whole document using TEXT attribute in BODY element 24

Formatting Text With... SIZE To make text larger, set SIZE = “+x” To make text smaller, set SIZE = “-x” x is the number of font point sizes FACE Font of the text you are formatting Be careful to use common fonts like Times, Arial, Courier and Helvetica Browser will display default if unable to display specified font Example … 25

Formatting Text With... 26

Formatting Text With... 27

Special Characters, Horizontal Rules and More Line Breaks Special characters Inserted in code form Format always &code; Ex. & Insert an ampersand Codes often abbreviated forms of the character Codes can be in hex form Ex. & to insert an ampersand Strikethrough with DEL element Superscript: SUP element Subscript: SUB element 28

Inserting Special Characters into HTML 29

Inserting Special Characters into HTML 30

Special Characters, Horizontal Rules and More Line Breaks Horizontal rule tag Inserts a line break directly below it HR attributes: WIDTH Adjusts the width of the rule Either a number (in pixels) or a percentage SIZE Determines the height of the horizontal rule In pixels ALIGN Either left, right or center NOSHADE Eliminates default shading effect and displays horizontal rule as a solid-color bar 31

Horizontal Rule… 32

Horizontal Rule… 33