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.
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.
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.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Creating a Basic Web Page
_ 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.
CS 299 – Web Programming and Design Introduction to HTML.
HTML (HyperText Markup Language)
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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.
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.
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.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
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”
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.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
HTML Structure & syntax
HTML Structure & syntax
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Introduction to HTML.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
XHTML/CSS Week 1.
Introduction to basic HTML
HyperText Markup Language
HTML.
3.00cs HTML Overview 3.00cs Develop webpages.
What is XHTML?.
Basic HTML/xHTML.
Introduction to XHTML.
INP150: Basic HTML Instructor: Paul J. Millis
WEBSITE DESIGN Chp 1
XHTML
HTML HYPERTEXT MARKUP LANGUAGE.
3.02D HTML Overview 3.02 Develop webpages.
Introduction to HTML5.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Html.
Web Application Development
HyperText Markup Language
Creating a Basic Web Page
XHTML 7-May-19.
3.02D HTML Overview 3.02 Develop webpages.
AN INTRODUCTION BY FAITH BRENNER
HTML Structure & syntax
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 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

Introduction to HTML

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

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… <html> <head> <title>Title of page</title> </head> <body> This is my first homepage. <b>This text is bold</b> </body> </html>

HTML Tags HTML tags are used to mark-up HTML elements Surrounded by angle brackets < and > HTML tags normally come in pairs, like <tagname> (start tag) and </tagname> (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

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 <tagname a1=“v1” a2=“v2”></tagname> For example, <table border=“0”> is a start tag that defines a table that has no borders

HTML Document Structure Entire document enclosed within <html> and </html> tags Two subparts: Head Enclosed within <head> and </head> Within the head, more tags can be used to specify title of the page, meta-information, etc. Body Enclosed within <body> and </body> Within the body, content is to be displayed Other tags can be embedded in the body

We’ll Study… HTML Basics (http://www.w3schools.com/html/html_intro.asp): HTML Elements HTML Headings HTML Paragraphs HTML Formatting HTML Styles HTML Images HTML Tables HTML Lists HTML Forms HTML Colors

More Basic Examples Using basic tags: http://www.csupomona.edu/~ftang/www/courses/CS299-S09/examples/ex1.html Text formatting: http://www.csupomona.edu/~ftang/www/courses/CS299-S09/examples/ex2.html HTML links: http://www.csupomona.edu/~ftang/www/courses/CS299-S09/examples/ex3.html

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: http://webdesign.about.com/od/layout/a/aa062104.htm

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 http://www.csupomona.edu/~ftang/www/courses/CS299-S09/examples/frame.html http://www.w3schools.com/html/html_frames.asp

HTML Advanced

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

Script Examples Add scripts to HTML pages can make them more dynamic and interactive Examples from W3schools Our simple example: http://www.csupomona.edu/~ftang/www/courses/CS299-S09/examples/jscript.html

HTML and XHTML Full References Full Reference from W3schools: http://www.w3schools.com/tags/ Test your HTML http://www.w3schools.com/html/html_whyusehtml4.asp

XHTML http://www.w3schools.com/xhtml/

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

Why XHTML? Many pages contain “bad” HTML <head> <title>This is bad HTML</title> <body> <h1>Bad HTML </body> 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

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 http://www.w3schools.com/xhtml/xhtml_html.asp

XHTML Syntax More XHMTL Syntax Rules Examples 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 http://www.w3schools.com/xhtml/xhtml_syntax.asp Test your XHTML with the W3C Validator