Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring 2016 1.

Slides:



Advertisements
Similar presentations
Farhan Nisar University of Peshawar
Advertisements

Table, List, Blocks, Inline Style
HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
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: HyperText Markup Language Hello World Welcome to the world!
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
MR.Mohammed Sharaf al Shareef
HTML and XHTML Controlling the Display Of Web Content.
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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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 Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
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.
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. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
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)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
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.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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
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.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with 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.
REEM ALMOTIRI Information Technology Department Majmaah University.
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.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
INT222 – Internet Fundamentals
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.
CITE303 - Internet Based Programming Lecture notes: Week 1 Instructor:Dr. Tolgay KARANFİLLER.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
CGS 3066: Lecture 2 Web Development and HTML5
HTML: HyperText Markup Language
CGS 3066: Web Programming and Design Spring 2016
Introduction to XHTML.
Computers and Scientific Thinking David Reed, Creighton University
CGS 3066: Lecture 2 Web Development and HTML5
Introduction to HTML.
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring

Introduction to HTML Acronym for HyperText Markup Language Primary language of the World Wide Web since its inception Tells the web browser what content to display, how to display Allows separation of content and presentation

History of HTML First introduced in 1991 by Tim Berners-Lee same person invented the world wide web(WWW) in 1989, built the first web browser, and the first web server running HTTP protocol Currently maintained by World Wide Web Consortium (W3C) Major revisions: HTML 3.2(1997), HTML 4.01(1999) The latest standard is HTML5(2014) All major browsers support most of the HTML5 elements Full specification:

HTML Example Hello World Our first paragraph!

HTML Page Structure Hello World Our first paragraph!

Tree structure of HTML html ptitle body head

Declaration Tells browser which HTML standard to expect. Must appear first in the HTML document. HTML5 has a very simple element. – HTML4 element – <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>

Basics of HTML5 Every HTML document (web page) consists of tags and character data. – Tags are elements enclosed in angle brackets. –,,,, – Opening and ending tags must be used together. Character data is the content between an opening and closing tag. – Hello World

HTML Element An element is a combination of a tag and its character data. – Hello World – Welcome to the world> – Google –

HTML Element(contd.) It is possible to nest elements inside other elements – No Overlapping of tags! It is possible to have empty element (no content/character data). HTML tags are not case sensitive. – and are the same.

Attributes Attributes provide information about HTML elements. An element can have one or more attributes. – id – class – style – href Attributes come in name/value pairs. – Go to Google’s website

Some attributes can be used on any HTML element : – class: specifies one or more class names for an element (refers to a class in a style sheet). – id: specifies a unique id for an element. – style: specifies an inline CSS style for an element. – title: specifies extra information about an element. Attributes(Contd.)

Heading are used to show the document structure. –,,,,, defines the most important heading and defines the least important heading. Browsers automatically add some empty space before and after each heading. Headings

Comments can be added into the HTML code to make it readable and understandable. Browsers will not display any comments. Syntax: – E.g., Comments cannot be nested! E.g., way to write comment --> Comment

Paragraphs are defined with the tag. Browsers automatically add an empty line before and after a paragraph May not contain block-level elements such as tables, headings,lists, pre-formatted text, another paragraph etc. Paragraph

You cannot change the output by adding extra spaces or lines in HTML code. Browsers treat multiple consecutive whitespaces/line breaks as a single space To go to a new line within a paragraph, use Line-break element To add whitespace: type Formatting

HTML Entity Some characters (i.e.,&) have special meaning in HTML and therefore, cannot be typed in as web content “as is” Need to use alternate string representations, called entities Also required to print non-keyboard characters An entity starts with an ampersand, ends with a semicolon

HTML Entity examples For a complete list of character entities: Entity NameResult Non-breaking space character && << >> &quote;" ©©

Certain text usually has a conventional formatting, HTML has a few special formatting tags, useful to embed computer code. - for preformatted text. Forces the browser to render white space as-is. - for specifying keyboard input. - for specifying computer code. Monotype font. Ignores whitespace. 19 Special formatting tags

Text Formatting in HTML A list of formatting tags: – : print bold-faced text – : print italicized text – : underline text (discouraged for styling!) – : subscripted text – : superscripted text – : defines marked/highlighted text – : draws a horizontal line (empty element)

Hyperlinks Defined by the (anchor) element – A hyperlink is a clickable character string or image that, once clicked, navigates to another context. – E.g., Go To Google The href attribute indicates the link’s destination: – A different website: “ – Another file within the same website: “page2.html” – Jump to an element with a specified id within the page: “#section4” – “#” jumps to the top of the same page

The target attribute specifies where to open the linked document. – _ blank : in a new window or tab – _self : in the same frame as it was clicked (default) Hyperlinks(contd.)

Images tag is always an empty tag. It contains attributes and has no closing tag. src attribute is the URL of the image. – Syntax: alt defines the text for an image when the image cannot be displayed. The width and height attributes define the size of the image.

HTML Element A table consists of rows. Each row is divided into data cells (td stands for table data) A tag can contain text, links, images, lists, forms, and other tables.

Table Example row 1, cell 1 row 2, cell 2 row 2, cell 1 row 2, cell 2

Table Border Attribute By default, the table will be displayed without borders. If you want borders, specify the border attribute: – … – Not recommended, CSS should be used instead

Table Headers header 1 header 2

HTML Lists Lists can be ordered and unordered. An unordered list starts with the tag. An ordered list starts with the tag. Each item starts with the tag. Example: Red Yellow

Description List A description list is a list of items with a description of each term/name.(i.e. a Glossary/dictionary) tag defines a description list. used to write a Definition Term. Must be within a element used to write Term Description. Must follow a Coffee - a hot beverage

HTML List Tags : defines an ordered list. : defines an unordered list. : defines a list item. : defines a description list. : defines an item in a description list. : defines a description of an item in a description list.

Block and Inline Elements HTML elements are defined as block level element or as inline element. Block level Elements start with a new line. – E.g.,,, Inline elements are displayed without a new line. – E.g.,,,,

element element is an inline element that can be used as a container for text. element usually is used to set style to parts of the text. My mother has blue eyes.

element The tag defines a division or a section in an HTML document. The tag is used to group block-elements to format them with CSS. This is a heading in a div element This is some text in a div element.