1 Programming the Web: HTML Basics Computing Capilano College.

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
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.
HTML 4 Hypertext Markup Language Tables, Lists & Links Science & Art Multimedia.
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!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
HTML Code. What we will cover Basic HTML Body Font Images Hyperlinks Tables Frames.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Identifies the Structure Table Row Column 1 Table Heading Column 2.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
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.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Understanding HTML Code
 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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
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: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
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.
Going Live with a Basic Web Page Bill Hart-Davidson AIM: billhd30 pfworkshop.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
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.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML Tags BTT1O. HTML  Documents written in hypertext markup language can be interpreted by all web browsers.  This language lets the web page developer.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
INT222 – Internet Fundamentals
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Building a Web Page. A Brief History In 1989, Tim Berners-Lee invented the Web. To enable particle physics from around the world to organize and share.
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 Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Introduction to Web Authoring Bill Hart-Davidson AIM: billhd30 Session 2
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Survey of Computer Science CSCI 110, Spring 2011 Lecture 23 HTML
COMPUTING FUNDAMENTALS
Computers and Scientific Thinking David Reed, Creighton University
Web Design and Development
Introduction to HTML.
HTML Basics Mr. Fazzalari.
Presentation transcript:

1 Programming the Web: HTML Basics Computing Capilano College

2 HTML Short for HyperText Markup Language, the language used to create documents on the World Wide Web. HTML was invented by Tim Berners- Lee while at CERN, the European Laboratory for Particle Physics in Geneva.

3 HTML HTML is a collection of styles (indicated by markup tags) that define the various elements of a World Wide Web document. HTML document can be read and displayed by many different browsers running on different types of computers – platform independent!

4 HTML: What do you need? Editor (Notepad) Browser to view results Place to put your web sit (store the files that contain the HTML code, images, music, etc.), preferably on the internet URL for your page (domain name, or folder within a domain)  if your page is on the Internet (Links to your page!)

5 HTML An Web page is best thought of as a set of visual elements (words, paragraphs, lists, tables, images, etc.) HTML defines the structure and layout of the elements on a Web page with a variety of tags. Each tag may have a set of attributes that modify the appearance or layout of the visual element contained by the tag.

6 HTML Tags Container Tags some text For example: some bold text some heading Empty Element Tags For example Comment Tag Use them document complicated layouts!

7 HTML tags Case insensitive Unrecognised tags are simply ignored by browser!! Container tags must be nested!!

8 Structure of HTML document Basic structure:

9 BODY tag and attributes E.g., the BGCOLOUR attribute of BODY tag specifies the colour of the whole document. E.g., the TEXT attribute of BODY tag specifies the default colour of the text in the whole document.

10 Headings and Paragraphs Supplies default formatting information: A Top-Level Heading 1 A paragraph of text A 6 th -level Heading Alignment Attribute: ALIGN = position (LEFT, CENTER, or RIGHT) A centred paragraph,, Special paragraph formatting tags

11 Text Formatting tags Always container tags!! Always use closing tag! Logical Styles:,  add emphasis to text,  increase or decrease text size,  subscript or superscript Physical styles:,,  Bold, Italics, and Underline text E.g.,

12 HTML Lists Ordered List list item A list item B Unordered List bulleted list item another list item

13 Hyperlinks … is an anchor container tag HREF is an attribute of the anchor tag AE Home Absolute (off-site) vs. Relative (within site) URL’s Naming locations within a document: Text to link to Linking to a named location within a document: Click here to go to Top. Go to Top of Home page

14 Multi-media: Images < IMG SRC = “cclogo.jpg” WIDTH = 300 HEIGHT=100 ALT=“Cap College logo” > Creating an image link: <IMG SRC = “cclogo.jpg WIDTH=150 HEIGHT=50 ALT = “Click here to go to Cap College” > Other IMG tag attributes: ALIGN, BORDER, HSPACE, VSPACE USEMAP = “map url”  creates a “hyperlink map” for image To including other Multi-media elements: just link to.wav,.mpeg,.mp3 files with an anchor tag.

15 HTML Tables In HTML, tables are described by a set of rows. Each row has a set of data, which form columns. Heading for first column Heading for second column Data for first column, row 1 Data for second column, row 1 …

16 More on Tables Common attributes: BORDER, CELLSPACING, CELLPADING, WIDTH e.g., Use BORDER = 0 for no border (e.g., fancy layouts) Common attributes (most apply to also): BGCOLOR  set the colour of the cell ALIGN, CHAR, VALIGN  alignment within cell COLSPAN, ROWSPAN  to create “merged cells” e.g.,

17 Using table to do complex layouts Since a element may contain text, images, lists, links, etc., tables are often used to create complex page layouts! E.g. look at source for Joseph’s home page. Need to get good at using COLSPAN and ROWSPAN attributes. Best to layout table on paper or using Word first, then jot down COLSPAN and ROWSPAN values for any “merged cells” – write down sequence of & tags required. Warning: if you don’t design complex tables first, you will get confused and frustrated – guaranteed!

18 More Info HTML guide in your text Web terms: HTML intro and tutorials: Official HTML tags: ary.html ary.html