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.

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
C HAPTER – 3 I NTRODUCTION TO H TML By :- Pinkesh H. Patel.
Chapter 2 HTML Basics Key Concepts
How Tags are used to form your Web Page
Tutorial 1 Getting Started with HTML5
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.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
CSCI 1101 Intro to Computers
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'
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.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
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.
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.
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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Tags Lesson 2. What are HTML Tags?  Markup tags  Coded instructions that accompany the plain text of an HTML document  Syntax –Left wicket< –Tag.
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. HTML Coding HTML Hypertext markup language The code used to create web pages.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
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.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
The Web Wizard’s Guide to HTML Chapter Two Basic Text Formatting.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CS 100 Introduction to Web Page Construction and HTML.
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.
INT222 – Internet Fundamentals
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Q.Nand1 HTML Creating an HTML Document Lesson 2. Q.Nand2 Overview Creating an HTML Document: –HTML syntax –Creating Basic Tags –Displaying Your HTML Files.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Introduction to HTML.
HTML Basics.
Elements of HTML Web Design – Sec 3-2
HTML5 – Heading, Paragraph
CS543: WEB APPLICATION PROGRAMMING
Elements of HTML Web Design – Sec 3-2
WEBSITE DESIGN Chp 1
Tutorial Working with Block-Level Elements
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Lecture 7 Introduction to Web Programming
Lesson 2: HTML5 Coding.
Presentation transcript:

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 o paragraphs o headings o block quote o lists  inline elements  empty elements 2

First HTML code Lastname, Firstname Welcome to My Homepage. We will start with this simple code. 3 Lecture 7

First HTML code Complete html document Body of the html document Title of the html document 4 Lecture 7

Tags  HTML document o Consists of tags  Tags - core building block of HTML o marks the presence of an element o marks the “start” and “end” of an element o Two-sided tags vs. single-sided tags  General syntax for two-sided tags content Opening tagClosing tag Lastname, Firstname Welcome to My Homepage. 5

Lecture 7 More about tags  special terms surrounded by angle brackets  can be upper, lower or mixed case Math 279 are all ok  most tags come in pairs, some don’t 6

Lecture 7 HTML tags  … o tells browser that file contains HTML-coded information o Anything between these two tags makes up the document content, including all other elements, text, and comments 7

The Structure of an HTML File  An HTML document is divided into two main elements: the head and the body  head element contains info about the document, for example, the document title or the keywords  … represents the head tags  The content of the head element is not displayed within the Web page Lecture 7 8

Title tags  … o used inside … o identify document title o displayed in the title bar at top of browser window o identifies your page for search engines 9

Body tags  … o start and end the actual contents (body)  The body element contains all of the content to appear on the Web page  HTML, HEAD, TITLE and BODY are four most basic tags in any html document Lecture 7 10

Adding Comments – special tag  The comment tag adds notes to your HTML code  Comments can be spread over several lines  Comments are useful in documenting your HTML code for yourself and others Lecture 7 11

(1) Do it yourself!  Add the texts as comments to the first html code o Author: Firstname Lastname o Last modified Date: Feb 22, 2010 Lecture 7 12 Lastname, Firstname Welcome to My Homepage.

Block-Level Elements  Block-level elements - distinct blocks within the body  Enhance o Readability o Presentation of the web page  Similar to a technical document o Document title, section title, section text, paragraphs etc.  Most generic and popular o Paragraphs o Headings Lecture 7 13

Lecture 7 Paragraphs and Headings  Paragraphs o …  Headings o …, …, …, … o six levels of headings o H1 is largest o H6 the smallest size 14

Recap the First HTML code Lastname, Firstname Welcome to My Homepage. 15 Lecture 7

(2) Do it yourself! o add another level of heading: … to the existing page o add two paragraphs and execute the html file using your web browser! 16

Lecture 7 How to insert texts in such indented manner? How to insert white spaces before and after the texts? 17

Block Quote  The syntax for making an extended quote is o …  A browser inserts white space before and after a blockquote element. Lecture 7 18

Block Quote Lecture 7 19 Computer Networking: A top down approach, 5th ed. Addison-Wesley by Kurose and Ross, ISBN-10: | ISBN-13: HTML A Beginner's Guide, 4th Edition, by Wendy Willard, ISBN-13: New Perspectives on HTML and XHTML: Comprehensive, 5th Edition, by Patrick M. Carey, ISBN-10: | ISBN-13:

Lecture 7 Blockquote indents the texts but what if we want a list of items? 20

Lecture 7 List tags  unordered list o Also known as bulleted list …  Try inserting an unordered list in your html code! 21

Adding a List  HTML supports three kinds of lists: o unordered o ordered, and o definition  Unordered list for items that do not need to occur in any special order  Ordered list for items that must appear in a numerical order  Definition list for definition items Lecture 7 22

Lecture 7 Adding lists  unordered list (bulleted list): o …  ordered list (enumerated list): o … : o … : specify each list item for both unordered and ordered lists  definition list: … o a list of definitions o … : definition term o … : definition description 23

Lecture 7 Example for list tags Example for list tags Three kinds of lists are unordered list ordered list definition list unordered list ordered list definition list unordered list: shows bullets ordered list: shows number definition list: lists definitions Creates bulleted list Creates numbered list Creates definition list 24

Lecture 7 Other block-level elements - address  HTML supports the address element to indicate contact info. …  Most browsers display an address element in an italicized font e.g. John Jay College of Criminal Justice, New York, NY

Block-Level Elements at a glance… Lecture 7 26

Lecture 7 inline elements  Inline element: marks a section of text within a block-level element  Often used to format characters and words o Also referred to as character formatting elements ,…, : boldface element ,…, : italicizes any text inside 27

Lecture 7 28 Make the text bold and italicized

Empty Elements  An empty element contains no content  Empty elements appear in code as one-sided tags  General syntax o  line break o  horizontal line o Lecture 7 29

Lecture 7 30 Insert a horizontal line in between two paragraphs Insert a line break here

More HTML text formatting tags… Lecture 7 31 TagDescription Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text