CS 299 – Web Programming and Design Introduction to HTML.

Slides:



Advertisements
Similar presentations
Dr. Alexandra I. Cristea XHTML.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
WeB application development
Website Design.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
XHTML 16-Apr-17.
HTML Computing Concepts HTML - An Introduction 1.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
the Concept Attainment Model (teaching thinking skills across the curriculum) As demonstrated by: Wendy Lewis, JoAnn Clark, & Jenny Bremen XHTML coding:
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
Chapter 14 Introduction to HTML
HTML 2. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension  With newer software it.
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
Computer Sciences Department
Review 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,
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Creating a Simple Page: HTML Overview
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Creating a Basic Web Page
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
DAT602 Database Application Development Lecture 14 HTML.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
HTML (HyperText Markup Language)
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
3 XHTML.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
WEB APPLICATION DEVELOPMENT For More visit:
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.
1 Web Application Programming Presented by: Mehwish Shafiq.
HTML/XHTML By Joaquin Vila. What is HTML? HTML stands for HyperText Markup Language. HTML documents are cross-platform compatible and device-independent.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
IDK0040 Võrgurakendused I harjutus 01: Introduction Deniss Kumlander.
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
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.
Introduction to HTML.
XHTML/CSS Week 1.
HyperText Markup Language
Introduction to HTML.
3.00cs HTML Overview 3.00cs Develop webpages.
What is XHTML?.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
AN INTRODUCTION BY FAITH BRENNER
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

CS 299 – Web Programming and Design Introduction to HTML

CS 299 – Web Programming and Design 2 HTML: HyperText Markup Language HTML documents are simply text documents with a specific form –Documents comprised of content and markup tags –Content: actual information being conveyed –The markup tags tell the Web browser how to display the page –An HTML file must have an htm or html file extension –An HTML file can be created using a simple text editor

CS 299 – Web Programming and Design 3 Our First Example If you are running Windows, start Notepad If you are on a Mac, start SimpleText If you telnet to csupomona.edu, use “pico” Type in the following: Open this file using a browser, and you will see… Title of page This is my first homepage. This text is bold

CS 299 – Web Programming and Design 4 HTML Tags HTML tags are used to mark-up HTML elements –Surrounded by angle brackets –HTML tags normally come in pairs, like (start tag) and (end tag) –The text between the start and end tags is the element content –Not case-sensitive –Follow the latest web standards: Use lowercase tags

CS 299 – Web Programming and Design 5 Tag Attributes Tags can have attributes that provide additional information to an HTML element –Attributes always come in name/value pairs like: name=“value” –Attributes are always specified in the start tag –Attribute values should always be enclosed in quotes. Double quotes are most common. –Also case-insensitive: however, lowercase is recommended – –For example, is a start tag that defines a table that has no borders

CS 299 – Web Programming and Design 6 HTML Document Structure Entire document enclosed within and tags Two subparts: –Head Enclosed within and Within the head, more tags can be used to specify title of the page, meta-information, etc. –Body Enclosed within and Within the body, content is to be displayed Other tags can be embedded in the body

CS 299 – Web Programming and Design 7 We’ll Study… HTML Basics ( ): –HTML Elements –HTML Headings –HTML Paragraphs –HTML Formatting –HTML Styles –HTML Images –HTML Tables –HTML Lists –HTML Forms –HTML Colors

CS 299 – Web Programming and Design 8 More Basic Examples Using basic tags: S09/examples/ex1.html S09/examples/ex1.html Text formatting: S09/examples/ex2.html S09/examples/ex2.html HTML links: S09/examples/ex3.html S09/examples/ex3.html

CS 299 – Web Programming and Design 9 HTML Layout One common way is to use HTML tables to format the layout of an HTML page –The trick is to use a table without borders, and maybe a little extra cell-padding Other tips: –Keep screen resolution in mind –Use color to define spaces –Align your images –Balance the graphics and text on a page –Think about text width – scan length 7 – 11 words –Centering text is inadvisable –Here is the link:

CS 299 – Web Programming and Design 10 HTML Frames HTML frames are a means of having several browser windows open within a single larger window Each HTML document is called a frame Disadvantages: –Must keep track of more HTML documents –Difficult to print the entire page Example of using frame – –

CS 299 – Web Programming and Design HTML Advanced

CS 299 – Web Programming and Design 12 Topics Covered From HTML tutorial on w3schools.com –HTML CSS –HTML Entities –HTML Head –HTML Meta –HTML URLs –HTML Scripts –HTML Attributes –HTML Events –HTML URL Encode –HTML Webserver

CS 299 – Web Programming and Design 13 Script Examples Add scripts to HTML pages can make them more dynamic and interactive Examples from W3schools Our simple example: –

CS 299 – Web Programming and Design 14 HTML and XHTML Full References Full Reference from W3schools: – Test your HTML –

CS 299 – Web Programming and Design XHTML

CS 299 – Web Programming and Design 16 What is XHTML? XHTML is a stricter and cleaner version of HTML –EXtensible HyperText Markup Language –aimed to replace HTML –identical to HTML 4.01 –combination of HTML and XML (EXtensible Markup Lanuage) –W3C Recommendation

CS 299 – Web Programming and Design 17 Why XHTML? Many pages contain “bad” HTML This is bad HTML Bad HTML XML is a markup language where everything has to be marked up correctly, which results in “well-formed” documents Different browser technologies require “good” markup language XHTML combines the strengths of HTML and XML

CS 299 – Web Programming and Design 18 Most Important Differences From HTML XHTML elements must be properly nested XHTML elements must always be closed XHTML elements must be in lowercase XHTML documents must have one root element Examples –

CS 299 – Web Programming and Design 19 XHTML Syntax More XHMTL Syntax Rules –Attribute names must be in lower case –Attribute values must be quoted –Attribute minimization is forbidden –The id attribute replaces the name attribute –Mandatory elements Examples – Test your XHTML with the W3C Validator