Web Design and Application Development

Similar documents
Web Design and Application Development

Web Design and Application Development

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

This document provides a concise, introductory lesson in HTML formatting.

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Management Information Systems

CSC 121 Computers and Scientific Thinking

5-Sep-16 Copyright 2016 by GemTalk Systems LLC 1

Certified HTML Designer VS-1027

A Balanced Introduction to Computer Science, 3/E

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Certified HTML5 Developer VS-1029

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Programmazione Web a.a. 2017/2018 HTML5

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

Introduction to using HTML to design webpages

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

INTRODUCTION TO HTML5! HTML5 Page Structure!

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Developing a Basic Web Page

HTML and CSS COURSE SYLLABUS

First Name Last Name CS-081 March 23, 2010 Midterm Exam

HTML Hyper Text Markup Language

c122jan2714.notebook January 27, 2014

HTML Syllabus Instructor: TBD

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

By Ryan Stevenson. Guidebook #2 HTML

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Chapter 4. Introduction to XHTML: Part 1

Structuring Documents for the Web

Announcements. Paper due this Wednesday

JSF - H:INPUTSECRET. Class name of a validator that s created and attached to a component

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Html basics Course Outline

It is possible to create webpages without knowing anything about the HTML source behind the page.

Advanced Web Programming C2. Basic Web Technologies

Creating and Editing a Web Page Using Inline Styles

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Web Design and HTML. Web Page vs Web Site. Navigation. Links. A web page is a single page viewable using web browser. A web site is a set of web pages

HTML. Based mostly on

INTRODUCTION TO WEB USING HTML What is HTML?

Multimedia for the Web: Creating Digital Excitement. Multimedia Element Text

Objectives. Introduction to HTML. Objectives. Objectives

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Web Design and Development Tutorial 03

Deccansoft Software Services

Title: Sep 12 10:58 AM (1 of 38)

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Introduction to WEB PROGRAMMING

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Canvas & Brush Reference. Source: stock.xchng, Maarten Uilenbroek

Desire2Learn: HTML Basics

Chapter 2 Creating and Editing a Web Page

HTML TUTORIAL ONE. Understanding What XHTML is Not

Index. CSS directive, # (octothorpe), intrapage links, 26

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

A Brief Introduction to HTML

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

Web Publishing Basics I

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Final Exam Study Guide

Name Related Elements Type Default Depr. DTD Comment

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Web Designing HTML5 NOTES

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

ACSC 231 Internet Technologies

GRAPHIC WEB DESIGNER PROGRAM

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Fundamentals of Web Technologies. Agenda: HTML Links 5/22/2017. HTML Links - Hyperlinks HTML Lists

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

ITL Public School Mid Term examination ( )

Discuss web browsers. Define HTML terms

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Introduction to Web Technologies

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

On a blog, code can mean many things. It can refer to the complicated

LING 408/508: Computational Techniques for Linguists. Lecture 14

COMS 359: Interactive Media

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Tilak Maharashtra University

Part 1: HTML Language HyperText Make-up Language

Transcription:

Yarmouk University Providing Fundamental ICT Skills for Syrian Refugees (PFISR) Web Design and Application Development Dr. Abdel-Karim Al-Tamimi altamimi@yu.edu.jo Lecture 02 A. Al-Tamimi 1

Lecture Overview HTML Page Structure Basic Document Structure Attribute Groups Basic Text Formatting Presentational Elements Lists Comments <font> element Block and inline elements <div> and <span> elements Lecture 02 A. Al-Tamimi 2

The Basic Structure of HTML All elements are enclosed inside <html> element All information about the document and resources needed to be loaded before the actual contents are present inside the <head> element The actual contents of the document are inside the <body> element Lecture 02 A. Al-Tamimi 3

The <html> Element The <html> element can carry the following attributes: id, dir, lang, xml:lang Will be discussed later (Attribute Groups) Sometimes you will come across the following: <html xmlns= http://www.w3.org/1999/xhtml ></html> xmlns is the name space identifier that indicates the version of the XHTML used Lecture 02 A. Al-Tamimi 4

The <head> Element The <head> element should contain <title> element at least. It may also contain any number of the following elements: <object>, include objects like images, JavaScript objects, Flash animation, MP3 files etc <link>, links to external files, such as style sheets or JavaScript files <style>, to include CSS rules inside the document <script>, for including script in the document <meta>, which includes information about the document such as keywords and a description, which are helpful for identifying your site for search engines Lecture 02 A. Al-Tamimi 5

The <title> Element When writing your web pages, choose the title of the page wisely. Do not just type: web page 1 etc The default name for a bookmark in browser is the title of the page Search engines uses the contents of the title to index your page, so better title gives better viewing share Can you readers tell what they will find on the page by just reading the title? Lecture 02 A. Al-Tamimi 6

The <body> Element The <body> element contains the body contents It also may carry all the attributes from the attribute groups (similar to <title> and <head>) There are several attributes that are specific to a certain browser Be careful when designing your HTML website to make sure that it works well across different web browsers and their different versions Lecture 02 A. Al-Tamimi 7

Attribute Groups There are three groups of attributes that many of the XHTML elements can carry Core Attributes: class, id, and title attributes Internationalization Attributes: dir, lang, and xml:lang attributes UI Events: onclick, ondoubleclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, and onkeyup Lecture 02 A. Al-Tamimi 8

The id Attribute The id attribute is used to uniquely identify an element within a page or a style sheet Name attribute used before, but became obsolete It must begin with a letter (A-Z or a-z) No two attributes may have the same value within that XHTML document Lecture 02 A. Al-Tamimi 9

The title Attribute The title gives a suggested title for the element It is often displayed as a tooltip or while the element is loading Lecture 02 A. Al-Tamimi 10

The class Attribute Used to associate an element with a style sheet and specifies the class of the element The unique class name allows all elements that associated with this certain style class to have the same style One element can be associated to multiple classes Lecture 02 A. Al-Tamimi 11

The style Attribute The style attribute allows you to specify CSS rules within the element It is not recommended to use this attribute as it is considered a hack instead of a valid solution Instead use class attribute when you want to grant a specific element special CSS rules Lecture 02 A. Al-Tamimi 12

In Class Assignment 1- Change your html file and use style attribute instead of using CSS classes Lecture 02 A. Al-Tamimi 13

Internationalization We will be discussing two internationalization attributes: The dir attribute The lang attribute Lecture 02 A. Al-Tamimi 14

The dir Attribute The dir attribute allows you to indicate to the browser the direction in which the text should flow Latin languages flow from left-to-right (ltr) Arabic language flow from right-to-left (rtl) If you want to apply the dir to the entire document use it with <html> element Lecture 02 A. Al-Tamimi 15

The lang Attribute Used to indicate the main language used in a document Has been replaced with xml:lang attribute in the new XHTML document It is recommended to set both lang and xml:lang for the <html> element to indicate the language of the document The lang attribute is set using two-character language codes: lang[-dialect] Examples: ar en en-us Lecture 02 A. Al-Tamimi 16

In Class Assignment 1- change your html file to allow right-to-left alignment and change the entire language to ar-jo Lecture 02 A. Al-Tamimi 17

Whitespaces and Flow White space collapsing: consecutive spaces, and different spaces (new line, tab ) are displayed as one space Lecture 02 A. Al-Tamimi 18

Creating Headings Using <hn> Elements <hn> element is used to indicate or emphasis piece of information like page title/section title etc There are six levels of headings : <h1>, <h2>, <h3>, <h4>, <h5>, <h6> By default, most browsers display the contents of the<h1>, <h2>,and <h3> elements larger than the default size of text in the document. The content of the <h4> element would be the same size as the default text, and the content of the <h5> and <h6> elements would be smaller Lecture 02 A. Al-Tamimi 19

Creating Headings Lecture 02 A. Al-Tamimi 20

The align Attribute (deprecated) The align attribute indicates if the element should be rendered to the left, center or right of the page The align attribute has been replaced with textalign property in CSS Example: <h1 align= right >This is a right headline</h1> Lecture 02 A. Al-Tamimi 21

Creating Paragraphs Using <p> Element The <p> element offers another way to structure your text. Each paragraph of text should go in between an opening <p> and closing</p> tag When a browser displays a paragraph it usually inserts a new line before the next paragraph and adds a little bit of extra vertical space The <p> element can carry all of the universal attributes and the deprecated align attribute Lecture 02 A. Al-Tamimi 22

Creating Line Breaks Using the <br /> Element Whenever you use the <br />element {an empty element}, anything following it starts on the next line Try to use <p> element whenever is possible to avoid any unexpected behaviors. Since the amount of space created when use <br /> depends on the size of the font Lecture 02 A. Al-Tamimi 23

In Class Assignment 1- Create a new html file under the name Heading_Formatting.html 2- Create the next page HTML file using what you have learned so far Lecture 02 A. Al-Tamimi 24

In Class Assignment Lecture 02 A. Al-Tamimi 25

Presentational Elements There are many presentational elements available, we are going to discuss some: <b> : bold <i>: italic <u> (deprecated) : underlined <s> and <strike> (deprecated) : strikethrough <sup>: superscript <sub> : subscript <hr />: horizontal rule/line Lecture 02 A. Al-Tamimi 26

Presentational Element Lecture 02 A. Al-Tamimi 27

Useful Character Entities Lecture 02 A. Al-Tamimi 28

Lists Lists are categorized in HTML to : Unordered Lists: similar to bullet points Ordered Lists: sequence of numbers or letters instead of bullet points Definition Lists: allows you to specify a term and its definition (will not discuss in this class) Lecture 02 A. Al-Tamimi 29

Unordered Lists with <ul> Element You write your unorderd list inside a <ul> element (unordered list) Each bullet point is contained inside <li> element (list item) Lecture 02 A. Al-Tamimi 30

Ordered lists with <ol> Element You write your unorderd list inside a <ol> element (ordered list) Each bullet point is contained inside <li> element (list item) Use type attribute to select number, letter, or Roman numerals in ordered lists type= 1 Arabic Numerals {1,2,3,4, } type= A Capital Letters {A, B, C, D, } type= a Small Letters {a, b, c, d. } type= I Large Roman Letters {I, II, III, IV, } Type= i Small Roman Letters {i, ii, iii, iv, } Use start attribute to change the starting number Lecture 02 A. Al-Tamimi 31

Ordered Lists with <ol> Element Lecture 02 A. Al-Tamimi 32

Ordered Lists with <ol> Element Lecture 02 A. Al-Tamimi 33

Nesting Lists Lecture 02 A. Al-Tamimi 34

Comments You can put comments between any tags in your XHTML document <!-- Comment --> Lecture 02 A. Al-Tamimi 35

The <font> Element The <font> element is a deprecated element It is not used anymore, and it is not recommended to use it Lecture 02 A. Al-Tamimi 36

Black and Inline Elements Elements that lives inside the <body> element are categorized into: Block level elements Inline elements Lecture 02 A. Al-Tamimi 37

Block Level Elements Block-level elements appear on the screen as if they have <br /> before and after them For example: <p>, <h1> ~ <h6>, <ul>, <ol>, <hr /> They all start in their own line, and anything that follows them appears on its own line too Lecture 02 A. Al-Tamimi 38

Inline Elements Inline elements can appear within sentences and do not have to appear on new line of their own Examples: <b>, <i>, <u>, <sup>, <sub>, <li> Lecture 02 A. Al-Tamimi 39

Grouping Elements with <div> and <span> Elements These two elements are used to group elements to create sections or subsections inside the web page You can use them to attach a specific style to a group of elements <div> is a block-level element, and it is usually used to group block-level elements <span> is an inline elements, and it is usually used to group inline elements Lecture 02 A. Al-Tamimi 40

In Class Assignment Write HTML snippet to replicate the following text: Lecture 02 A. Al-Tamimi 41

In Class Assignment Write HTML snippet to replicate the following text: Lecture 02 A. Al-Tamimi 42

Resources Jon Duckett, Beginning Web Programming with HTML, XHTML, and CSS, Wrox 2004 http://www.tizag.com/htmlt/ Lecture 02 A. Al-Tamimi 43

Questions Lecture 02 A. Al-Tamimi 44