Chapter 2 Introduction to HTML. Learning Outcomes Describe Hypertext Markup Language (HTML). Introduce HTML syntax. Recognize basic structure of HTML:

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with XHTML
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
C HAPTER – 3 I NTRODUCTION TO H TML By :- Pinkesh H. Patel.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
How Tags are used to form your Web Page
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML Computing Concepts HTML - An Introduction 1.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
Web Page Development Identify elements of a Web Page Start Notepad
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 1: Developing a Basic Web Page.
Marking Up With Html: A Hypertext Markup Language Primer
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Creating a Simple Page: HTML Overview
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.
Introduction to HTML. Topics HTML –What is HTML –Parts of an HTML Document –HTML Tags.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 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.
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.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
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.
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.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
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,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
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,
1 Labels and Tags October 14, Grammar A set of components and rules that define a method/means of communication among objects. Components are.
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.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
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.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
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.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
COMP303 - Internet Based Programming
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, 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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
CITE303 - Internet Based Programming Lecture notes: Week 1 Instructor:Dr. Tolgay KARANFİLLER.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Chapter 1: Introduction to XHTML (part 1)
Lesson 2: HTML5 Coding.
Presentation transcript:

Chapter 2 Introduction to HTML

Learning Outcomes Describe Hypertext Markup Language (HTML). Introduce HTML syntax. Recognize basic structure of HTML: Head, Title and Body. Explain basic text formatting, headings, line breaks, paragraphs and lists.

Hypertext Markup Language (HTML) A markup language. Not case-sensitive. (recommended in small case) An organization called the World Wide Web Consortium (W3C) was created to develop common standard, maintain compatibility and promote WWW.

HTML syntax All HTML commands or keyword (tag) must be enclosed in angle brackets ( ) Most HTML tags come in pairs – starting tag and ending tag. E.g. Does not recognize line breaks or paragraph breaks or more than one blank space. HTML tags may have attributes such as width, height and color that affect the appearance of the content.

… continued HTML files is actually a text file. File must be saved as.htm or.html Make sure all file names are in small-case and in one word (no spacing in file name). Browser will open the file as web page only if the first and last tag are... tags. You can create HTML file using any text editor such as notepad. (do not use Microsoft Word)

Basic structure My first page Insert content here … Hmm… there is something missing..

… continued and HTML document is divided into two; head and body. section contains all of the document’s header information. tags is placed in the head section which define the title of the document. Title can be seen at the top of the browser’s title bar and also appears in the history list/bookmark.

… continued comes after the structure. Make sure you close with before you start. Contents you want to display in the browser must be inserted between the … tags This includes text, graphics, links, etc.

Basic structure My first page Insert content here …

Comment tag If you wish to leave notes in a HTML document but do not want them to appear when you open a browser window, you would need to use the COMMENT Tag. Example:

Heading tags … Heading structures are the most commonly used to set apart documents or section titles. There are 6 levels of headings From Heading 1( ) through Heading 6 ( )

Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6

A heading always begins at the margin of a line and always forces a line break at the end of the heading. You cannot have two heading levels on the same line. You should not highlight the text in the middle of a paragraph by marking it as a heading. It would produce unwanted effects. … continued

Example (Heading) VISION To be a leader in offering quality diploma programmes to the public.

Output

If you wish to end a line after a certain word you can invoke the line break tag. Otherwise, the browser will display as many words as it can in one line, then continue the remaining words in the next line. Denoted by No corresponding Tag Forces a line break wherever you place it in the content. (add multiple to get more empty lines) Line Breaks

Example (no linebreak) The Centre for Diploma Programme (CDP) is an academic centre which is located at the second floor, Block B, Melaka Campus. It offers diploma programmes and collaborates with local colleges and international institutions of higher learning on academic matters.

Output

Example (with linebreak) The Centre for Diploma Programme (CDP) is an academic centre which is located at the second floor, Block B, Melaka Campus. It offers diploma Programmes and collaborates with local colleges and international institutions of higher learning on academic matters.

Output

Paragraph break is similar to line break but it will add one empty line. The beginning of a paragraph is denoted by The ending tag is optional. However, if you put multiple you will not get extra lines. Paragraph break

Example (with paragraph break) The Centre for Diploma Programme (CDP) is an academic centre which is located at the second floor, Block B, Melaka Campus. It offers diploma programmes and collaborates with Local colleges and international institutions of Higher learning on academic matters.

Output

Blockquotes are handy for those long pieces of text, which are quoted material and therefore need to be set apart and indented. Blockquotes are set up as follows content Blockquotes

Example (with blockquote) Diploma in Business Information Technology (DBIS) Pass SPM or equivalent with at least 4Cs or Pass STPM or equivalent with at least 2 Principals.

Output

Simple in concept, powerful in execution Three main types unordered lists ordered lists definition lists Lists

Unordered lists are basically bullet lists List of items each one preceded by a “bullet” Begins and ends with and Each item in the list is denoted by with an optional closing tag Unordered lists

Monday Tuesday Wednesday Thursday Friday Example (Unordered lists) Monday Tuesday Wednesday Thursday Friday

Example 2 (Unordered lists) MISSION To uphold the mission of Multimedia University. To produce professionals, flexible, well-trained and competent individual to meet the demands of the nation's industry. To extend educational opportunities to a wider cross-section of Malaysian

Output

Also called as Numbered list Denoted by and When ordered list is displayed in Web Browser, it uses an automatically generated sequence as if item markers Ordered lists

Monday Tuesday Wednesday Thursday Friday Example (Ordered lists) 1. Monday 2. Tuesday 3. Wednesday 4. Thursday 5. Friday

Almost anything can be put into a list item line breaks, entire paragraphs, images, links and even other lists (nested lists). Unordered lists can be nested in ordered lists and vice-versa Nested lists

Monday Tuesday Wednesday 6am - 9am 10am-12pm Thursday Friday Nested lists 1. Monday 2. Tuesday 3. Wednesday 6am – 9am 10am – 12pm 4. Thursday 5. Friday

Begins and ends with and Definition lists are not based on list items like ordered and unordered lists (unmarked list) Definition lists are based on term-definition pairs denoted by and stands for Definition-List Term stands for Definition-List Definition Definition list

Do a deer, a female deer Re a drop of golden sun Mi a name, I call myself Example (Definition lists)

Output

Basic text formatting You can apply styles such as bold, italics or underline to your text. (underline is not recommended so that user won’t confuse it with hyperlink. To create a bold text, you can use a pair of … or … To create an italicize text, put it between … or …

Basic Formatting Look I am bold and strong I have been italicized and emphasized Example

Output

Horizontal rules This tag creates a horizontal rule across the document Can be achieved using No corresponding Not allowed within headings Can act as a section divider

Example (Horizontal rules) VISION To be a leader in offering quality diploma programmes to the public.

Output

Special characters Some characters such and = have special meaning in HTML. There are also special character that can not be type such as © and ™ or even a blank space. There is a special way to insert these characters in HTML document. We can use either number entities or named entities.

Special characters Commonly-Used Special Characters NameSymbolHTML Equivalent ampersand& & cent sign¢ ¢ copyright symbol© © or © degree sign° ° greater than> > less than< < Quote“ " non-breaking space registered trademark® ® trademark™ ™

Example Basic Formatting <br> for line break Multimedia University©

Output

Summary HTML was designed specifically for use on the World Wide Web. Most of the HTML commands have an opening and closing tag. HTML documents are divided into two segments: the head and the body. The head segment is where you would place JavaScript, style sheets, Meta commands, etc.

Summary A Web page's title identifies the subject or purpose of the page. The body of the Web page contains the information that displays in the browser window. Normal text also can be formatted to display as bold ( ), italic ( ) or underlined ( ) text and must end with the ending tag.

Summary Headings are used as a title for a paragraph. Line break tag ( ) ends a line whether following text or graphics. The paragraph tags ( ) tells the browser the text is in one separate paragraph. There are three primary types of list : ordered lists, unordered lists and definition lists.