Computer Sciences Department

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

Introduction to HTML & CSS
Dr. Alexandra I. Cristea XHTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
HTML: HyperText Markup Language Hello World Welcome to the world!
WeB application development
Website Design.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
MR.Mohammed Sharaf al Shareef
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.
HTML Elements. HTML documents are defined by HTML elements.
HTML BASIC
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
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,
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Creating a Basic Web Page
DAT602 Database Application Development Lecture 14 HTML.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
CS 299 – Web Programming and Design Introduction to HTML.
HTML (HyperText Markup Language)
HTML Structure & syntax
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
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.
 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. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
HTML: Hyptertext Markup Language Doman’s Sections.
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
IDK0040 Võrgurakendused I harjutus 01: Introduction Deniss Kumlander.
HTML Basic. 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.
HTML Hyper Text Markup Language 1BFCET BATHINDA. Definitions Web server: a system on the internet containing one or more web site Web site: a collection.
CS543: WEB APPLICATION PROGRAMMING Lab 1: HTML tags & SW installation Computer Science Department.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
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.
Basic Web Publishing M. Scott Gartner 7/15/98.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Structure & syntax
Basic HTML Introduction to HTML.
Introduction to HTML.
3.00cs HTML Overview 3.00cs Develop webpages.
WEBSITE DESIGN Chp 1
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
Pertemuan 1 Desain web Pertemuan 1
AN INTRODUCTION BY FAITH BRENNER
Presentation transcript:

Computer Sciences Department

And use http://www.w3schools.com/

You have to Study from the textbook and http://www.w3schools.com Hyper Text Markup Language (HTML) and Extensible Hyper Text Markup Language (XHTML) Computer Sciences Department You have to Study from the textbook and http://www.w3schools.com

HTML Introduction With HTML you can create your own Web site. 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 language A markup language is a set of markup tags The purpose of the tags are to describe page content Computer Sciences Department

Example of html file <!DOCTYPE html> <html> . . <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Computer Sciences Department Computer Sciences Department

<tagname>content</tagname> HTML Tags HTML markup tags are usually called HTML tags HTML tags are keywords (tag names) surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, with a forward slash before the tag name Start and end tags are also called opening tags and closing tags HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. <tagname>content</tagname> Computer Sciences Department

HTML Elements <p>This is a paragraph.</p> "HTML tags" and "HTML elements" are often used to describe the same thing. HTML elements are written with a start tag, with an end tag, with the content in between. The HTML element is everything from the start tag to the end tag: HTML container element: Start tag: <p> Content: This is a paragraph. End tag: </p> Computer Sciences Department

Nested HTML Elements (This example contains 4 HTML elements) <!DOCTYPE html> <html> <body>   <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Computer Sciences Department

HTML Element Syntax An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes Computer Sciences Department

Empty HTML Elements HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). Computer Sciences Department

HTML Documents = Web Pages HTML documents describe web pages HTML documents contain HTML tags and plain text HTML documents are also called web pages Computer Sciences Department

Web Browsers The purpose of a web browser (Chrome, Internet Explorer, Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. Computer Sciences Department

HTML Page Structure a visualization of an HTML page structure Computer Sciences Department

HTML Headings HTML headings are defined with the <h1> to <h6> tags. Computer Sciences Department

HTML Paragraphs HTML paragraphs are defined with the <p> tag. Computer Sciences Department

HTML Links HTML links are defined with the <a> tag. A hyperlink is an element, a text, or an image that you can click on, and jump to another document. HTML links are defined with the <a> tag. Computer Sciences Department

HTML Images HTML images are defined with the <img> tag. The alt attribute specifies an alternate text for the image, if it cannot be displayed. The alt attribute is required. A web page will not validate correctly without it width and height attributes: the values are specified in pixels (with or without px after the value): Computer Sciences Department

Computer Sciences Department

HTML Attributes HTML elements can have attributes Attributes provide additional information about an element. Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" Computer Sciences Department

Style Computer Sciences Department

Always Quote Attribute Values Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson‘ Newer versions of (X)HTML will demand lowercase attributes. Computer Sciences Department

HTML / XHTML Standard Event Attributes HTML 4 added the ability to let events trigger actions in a browser, like starting a JavaScript when a user clicks on an element. Next is the standard event attributes that can be inserted into HTML / XHTML elements to define event actions. (some) Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

HTML Comments Computer Sciences Department

HTML Color Names RGB 140 Color Names are Supported by All Browsers 140 color names are defined in the HTML5 and CSS3 color specifications. 17 colors are from the HTML specification, 123 colors are from the CSS specification. The following table lists them all, along with their hexadecimal values Tip: The 17 colors from the HTML specification are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow http://www.w3schools.com/html/html_colornames.asp Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

HTML Classes Classing HTML elements, makes it possible to define CSS styles for classes of elements. http://www.w3schools.com/html/tryit.asp?filename=tryhtml_classes_london Equal styles for equal classes, or different styles for different classes Computer Sciences Department

HTML Character Sets To display an HTML page correctly, the browser must know what character-set to use. The character-set for the early world wide web was ASCII. ASCII supports the numbers from 0-9, the uppercase and lowercase English alphabet, and some special characters. Since many countries use characters which are not a part of ASCII, the default character-set for modern browsers is ISO-8859-1. If a web page uses a different character-set than ISO-8859-1, it should be specified in the <meta> tag. Computer Sciences Department

Computer Sciences Department

HTML Symbol Entities This entity reference includes mathematical symbols, Greek characters, various arrows, technical symbols and shapes. Note: Entity names are case sensitive. Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

Button The <button> tag defines a clickable button. Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the < input> element Computer Sciences Department

Table and caption Definition and Usage The <caption> tag defines a table caption. The <caption> tag must be inserted immediately after the <table> tag. You can specify only one caption per table. Tip: By default, the table caption will be center-aligned above a table. However, the CSS properties "text-align" and "caption-side" can be used to align and place the caption. Computer Sciences Department

Table The <td> tag defines a standard cell in an HTML table. An HTML table has two kinds of cells: Header cells - contains header information (created with the <th> element) Standard cells - contains data (created with the <td> element) The text in <th> elements are bold and centered by default. The text in <td> elements are regular and left-aligned by default Computer Sciences Department

Computer Sciences Department

Complex HTML table A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements. Computer Sciences Department

Table and caption Computer Sciences Department

Different Styles for Different Tables http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_id1 Computer Sciences Department

HTML Lists Computer Sciences Department

XHTML Introduction XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version of HTML XHTML is HTML defined as an XML application Computer Sciences Department

Computer Sciences Department

An XHTML DTD describes the allowed syntax and grammar of XHTML markup An XHTML DTD describes the allowed syntax and grammar of XHTML markup. XHTML/XML namespaces are used for providing uniquely named elements and attributes used in an XHTML/XML document. Computer Sciences Department

The Most Important Differences from HTML DOCUMENT STRUCTURE XHTML DOCTYPE is mandatory The XML namespace attribute in <html> is mandatory <html>, <head>, <title>, and <body> is mandatory ELEMENT SYNTAX 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 ATTRIBUTE SYNTAX XHTML attribute names must be in lower case XHTML attribute values must be quoted XHTML attribute minimization is forbidden Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

XHTML - Attributes XHTML attributes are HTML attributes written as XML XHTML Attributes - Syntax Rules Attribute names must be in lower case Attribute values must be quoted Attribute minimization is forbidden Computer Sciences Department

Computer Sciences Department

Computer Sciences Department

HTML 4.01 / XHTML 1.0 Tag Reference Computer Sciences Department

Computer Sciences Department

Computer Sciences Department