CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Table, List, Blocks, Inline Style
Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
HTML popo.
Web Development & Design Foundations with XHTML
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
HTML: HyperText Markup Language Hello World Welcome to the world!
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
HTML and XHTML Controlling the Display Of Web Content.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
Using HTML Tables.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
ETT 429 Spring 2007 Web Design I.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
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
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
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.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
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.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML Introduction to HTML Tags. HTML Document My first HTML document Hello world!
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Website Development with Dreamweaver
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
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.
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 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
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.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Assistant Professor,UCER Naini,Allahabad
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
HTML Tags BTT1O. HTML  Documents written in hypertext markup language can be interpreted by all web browsers.  This language lets the web page developer.
INT222 – Internet Fundamentals
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Programming the Web using XHTML and JavaScript
Web Design & Development
Site Development Foundations Lesson 6
Presentation transcript:

CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz

Block-Level vs. Inline Elements This works – Bold and italic How about this – Bold and italic Block-level element/tag –define a complete section or block of text –Can contain inline element and block-level element Inline elements –Define the structure of a sequence of characters within a line –may not contain a block-level element –may be used within a block

Attribute An attribute is a special code that can enhance or modify a tag. They are generally located in the starting tag after the tag name. Basic syntax for xhtml tags and attributes – –All tags must be lower case –all values of attributes need to surrounded by quotes

Common Attributes id –unique identifier for elements class –the class of the element, used to specify similar attributes for dissimilar elements by putting them in the same class style –an inline style definition title –a text to display in a tool tip

Common Attributes Examples 1 – –Assuming style sheet contains –.indent { margin-right: 5%; margin-left: 5%;} Example 2 –

Common Attributes lang –sets the language code; “en”: English, “fr”: French, “es”: Spanish, “de”: German etc. dir –sets the text direction, left to right or right to left bonjour! accesskey –assigns an access key to an element. An access key is a single character from the document character set. Tabindex –Sets the tab order of an element

Deprecated Attributes In order to separate structure from presentation –many HTML attributes/tags used for presentation were deprecated, starting from HTML version 4 Some deprecated attributes –font, Text –align, Centered text –bgcolor, width, height, etc.

Lists Ordered lists & Unordered lists – for ordered – for unordered – for each item inside the list Browser inserts a blank line before & after the list (block-level element) Example – Item 1 Item 2 Item3

Lists Nested lists – Top Level, Item 1 Top Level, Item 2 Sublevel 1, Item 1 Sublevel 2, Item 1 Sublevel 2, Item 2 Sublevel 1, Item 2 Top Level, Item 3

Customizing List Display List numbers or marks can be customized Use “type” attribute Example – “type” attribute is deprecated, we don’t recommend using it; use style sheets

Definition Lists for list element; for “definition terms”; for “definition data” Example – CPU Central Processing Unit ALU Arithmetic Logic Unit GHz Gigahertz

Tables Tables used not only for displaying data in tabular format, but also used for web page layout control A table ( ) in HTML –Consists of rows ( ) –Each row consists of rectangular boxes or cells ( ) – R1,Cell1 R1,Cell2 R2,Cell1 R2,Cell2

Tables By default –Text in each cell is automatically aligned to the left –All the cells in a column have the same width –Width of the column is determined by the cell in it with the most text for “table header” Header1 Header2

Tables Other attributes of –align –cellpadding –cellspacing –colspan Other tags – –,,

Links The true power of WWW comes with hyperlinks Surfer click on a specially marked word or image on a web page and automatically be jumped to another web page or another place in the same web page. –Another web page – External link –Another place – Internal link Use (anchor) tag to create a link

Links External Links – Text/Image Create a link to CS web page – CS Department at Pitt – Be careful about the quotation mark Internal Links Create a place/anchor – or Link to the anchor Go to some place

Links Combining External and Internal Links – Link Text

Images Insert an image using tag – Image can an image on a remote machine on the Internet, or an image in your local machine. Examples, –

Images Alternative Text for images – Example – width & height attributes – Use style sheet instead of attributes