Dr. Nuha El-KhaliliInternet Programming (102 340) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C

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

Common Tags Always include the … tags Comments placed inside tags HTML documents –HEAD section Info about the document Info in header not generally rendered.
Tables Tables provide a means of organising the layout of data
Chapter 3 – Web Design Tables & Page Layout
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.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
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
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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
CS105 Introduction to Computer Concepts HTML
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.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
Understanding HTML Code
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
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.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
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.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
HTML(Hyper Text Markup Language) ByNaveen. Introduction HTML or Hyper Text Markup Language is the standard markup language Its used to create the web.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
Basic HTML. So, what exactly is HTML? HTML stands for: HTML stands for: Hypertext Markup Language. It is a purpose built markup language for the delivery.
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 CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
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 Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
Working with Tables: Module A: Table Basics
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
COMPUTING FUNDAMENTALS
If You Know Nothing About HTML, This is Where You Start.
1 Introduction to XHTML.
Html.
Introduction to HTML.
Presentation transcript:

Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C Text file with the suffix.html or.htm Parsed and interpreted by the browser to display the web page content Separate presentation from content Use any text editor (e.g. notepad) or special SW to edit HTML (e.g. front page)

Dr. Nuha El-KhaliliInternet Programming ( ) HTML HTML defines “Elements” that can be used to mark-up the web page content. An element is indicated using a “Tag” (start tag, content, end tag) This text will appear underlined “Attributes” gives you more control over elements Attributes specify some characteristics of the element

Dr. Nuha El-KhaliliInternet Programming ( ) HTML Page Structure HTML web page consists of two parts: Head & Title tell the browser this is an HTML file information that is not displayed, but helps the browser. tag is part of the head tag the content of the page that will be displayed

Dr. Nuha El-KhaliliInternet Programming ( ) First Example My First HTML page This is the body of my page. This part will be underlined

Dr. Nuha El-KhaliliInternet Programming ( ) Headings & Alignment Six size headings: – Biggest size Heading – Size 2 Heading – Size 3 Heading – Size 4 Heading – Size 5 Heading – Smallest size Heading Text alignment can be: center, left or right Heading OR Heading

Dr. Nuha El-KhaliliInternet Programming ( ) FONT Font element controls font format and color Attributes: –Color=red –Size=5 –Face= “Arial” Color can be specified in Hexadecimal, e.g. red=“#ff0000” Font size 1..7 (default 3) YOUR TEXT

Dr. Nuha El-KhaliliInternet Programming ( ) Images element inserts an image in your page (Stand alone tag) Attributes: –SRC=“url” location of the image file –ALIGN=top dictates how text will be displayed in relation to your image (right, middle, left, top, bottom) –WIDTH=100 HEIGHT=70 image size –ALT=“text” alternate text if image is not downloaded

Dr. Nuha El-KhaliliInternet Programming ( ) Links Hyperlink: a navigational tool to link documents –Decide which words to use a link –Get the URL of the linked document –The hyperlink element: link word –HREF attribute specifies the address to link to: HREF="URL" –Target=“_parent” destination of the loaded document (_top, _blank, _self or frame name) Leeds Computer School Send me

Dr. Nuha El-KhaliliInternet Programming ( ) Internal Links Assign a specific location in the HTML file a name (bookmark it) Now you can link to this specific location using a hyperlink tag internal link

Dr. Nuha El-KhaliliInternet Programming ( ) Other tags begin a new paragraph (leave a blank line) force text to start on the next line put a thin black line across your page underline text emphasis text make text bold and for superscript and subscript &#code; Special characters (e.g. "Γ" gamma ) put comments in your code

Dr. Nuha El-KhaliliInternet Programming ( ) Other tags Unordered list (UL) Item 1. Item 2. Ordered list (OL) <!- type can be “I”, “A”,”a”,”i”  Item 1 Item 2

Dr. Nuha El-KhaliliInternet Programming ( ) More on Header Use the Meta tag to describe your webpage and to help the search engine categorize your page Attributes: –Name=“keywords”: identifies a property name –Content=“”: specifies a property's value

Dr. Nuha El-KhaliliInternet Programming ( ) Body Attributes BGCOLOR=white background color for the entire page TEXT=black color of the page's text LINK=White color of your hyperlink ALINK=green color when clicking the hyperlink VLINK=red color of visited links BACKGROUND=“logo.jpg” image as a page background

Dr. Nuha El-KhaliliInternet Programming ( ) Tables TABLE CELL, is the basic unit of a cell TABLE ROW, horizontal row of cells Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6 Cell 1Cell2 Cell4cell5 Cell3 Cell6

Dr. Nuha El-KhaliliInternet Programming ( ) Tables Table attributes: –Border= 4 thickness of table border –Width= 400 or 30% –Align=“left” or “center” or “right” –BGCOLOR= Red table background color –CELLSPACING amount of space between table cells. –CELLPADDING pixels of space inside the cell between text and the border TD tag attributes to align text in the cell: –ALIGN: left, center or right –VALIGN: top, middle or bottom or baseline

Dr. Nuha El-KhaliliInternet Programming ( ) Tables table header tag Header row definition Header cell definition table caption on the top : format a group of columns – – number of columns affected

Dr. Nuha El-KhaliliInternet Programming ( ) More on Tables To extend a data cell to more than one column, use attribute Colspan To extend a cell over a number of rows, use the attribute Rowspan Table Example

Dr. Nuha El-KhaliliInternet Programming ( ) Frames Displaying more than one web page on the same screen (no body tag) tells the browser how to divide the window into columns and rows, and how big is the size of each tells the browser what to put into the columns and rows specified

Dr. Nuha El-KhaliliInternet Programming ( ) Frames You can nest frames to get a combination of horizontal and vertical windows provide an alternative for browsers that does not display frames attributes: –Scrolling=no, yes, auto: place scroll bar on the frame –Noresize: stop the user from changing the frame size –Frameborder =0 or 1: Do not draw borders between frames

Dr. Nuha El-KhaliliInternet Programming ( ) Frames The target attribute in a hyperlink takes values: –_blank : load in a new browser window –_parent: load into immediate FRAMESET parent of the current frame –_self: load in the same window as the hyperlink –_top: load in the full original window –Frame name: variable specified in “Name” attribute of a frame

Dr. Nuha El-KhaliliInternet Programming ( ) Image Map Divide the image into different hotspots that link to different places : defines an image map : defines a hotspot in the image Add “USEMAP” attribute to your image tag

Dr. Nuha El-KhaliliInternet Programming ( ) Forms Get user input (textbox, buttons, pull down Box) declare a form in your page Attributes: –Name: identification of the form –Action: The file name that will process the data –Method: How the data will be sent to the server GET: (URL?dataname=datavalue&dataname=datavalue) Post: environment variable as part of the HTTP request Do not nest forms

Dr. Nuha El-KhaliliInternet Programming ( ) Forms Text Box: one line input box More attributes: readonly / disabled You can add label for each text box First Text Password: one line input box, but data appear as *’s Hidden: value not displayed but submitted with the form

Dr. Nuha El-KhaliliInternet Programming ( ) Forms Radio buttons: select one choice from a group Checkbox: select more than one choice from a group Choices that belong to one group should have the same name Text Area: multi-line text input box This text will appear inside

Dr. Nuha El-KhaliliInternet Programming ( ) Forms Pull Down Box: option 1 option2 Buttons:

Dr. Nuha El-KhaliliInternet Programming ( ) More on Forms Image submit button: Field set: place a frame around some of the form elements and write a caption for that part Caption to identify this part