HTML (HyperText Markup Language)

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

HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
Teppo Räisänen LIIKE/OAMK 2010
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
HTML Computing Concepts HTML - An Introduction 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Computer Sciences Department
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
CS105 Introduction to Computer Concepts HTML
Creating a Simple Page: HTML Overview
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
CS 299 – Web Programming and Design Introduction to HTML.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
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.
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.
Getting Started with HTML Please use speaker notes for additional information!
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
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.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
INT222 – Internet Fundamentals
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Online PD Basic HTML The Magic Of Web Pages
Introduction to HTML.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Elements of HTML Web Design – Sec 3-2
3.00cs HTML Overview 3.00cs Develop webpages.
Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
WEBSITE DESIGN Chp 1
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML- Basics
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
An Introduction to HTML Pages
Lesson 2: HTML5 Coding.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML (HyperText Markup Language) Web Page Design HTML (HyperText Markup Language)

Web Page Design Practical experience of creating simple web pages containing hyperlinks page structure: html, head, title, body block-level tags: div, p, hr, h#, ol, ul, li in-line tags: span, strong, em, br, img, and other tags: link, meta, comments

A web page A Web Page is a document containing text; graphics (images) and other embedded media, e.g. sound; and links (pointers) to other web pages . The links are called hyperlinks and a special markup language called HTML (HyperText Markup Language) was created so that these links could be written as strings of text. (http://en.wikipedia.org/wiki/HTML) A web page that points to other web pages is said to use hypertext. One of the pages of a web site is denoted the home page. Hypertext navigation is a major component of web page design.

The source for this web page was created in a text editor, Microsoft's WordPad, and saved with the extension .html.

Text in a web page can be two kinds of information: content for display and formatting. A web browser needs formatting information so that it can present the content as intended. Content is placed between start and end tags: <something> information content </something> The start tag, the content and the end tag form an element. Tags mainly mark areas of the web page that are to be formatted. This is why HTML is called a markup language .

Web Page Construction Here is the skeletal structure for any web page: <html> <head> <title>Title of the Web Page goes here </title> </head> <body> Content of the Web Page goes here </body> </html >

All tags should be written in lower case to conform to the latest standard defined by the World Wide Web Consortium (W3C). Extensible Hypertext Markup Language (XHTML) is the latest version of HTML. XHTML is a combination of HTML and Extensible Markup Language (XML). The web page should be saved with file extension .html.

The html Tag The markup part of every web page must begin with <html> and end with </html> . These two tags tell the browser that the document is written in HTML and that it should translate every tag it finds between them into the proper effect.

The Head and Title Tags The head comes first, is surrounded by the <head> and </head> tags and usually contains information about the web page enclosed in the <meta *** /> tag that is not displayed as normal text but may be used by search engines and other programs to categorise or list the page. Here is an example:

The <meta /> Tag <head> <title>HTML Example</title> <meta name="generator" content="TextPad 4.6" /> <meta name="author" content="Fred Bloggs" /> <meta name="keywords" content="example, html" /> <meta name="description" content="Example of simple HTML" /> </head> In this example, name and content are attributes (Attribute: a named field that appears inside an HTML tag) of the HTML tag <metal>. The title is used by search engines, browser history lists, favourites lists and bookmark facilities. Useful links: http://searchenginewatch.com/2167931 http://www.w3schools.com/tags/tag_meta.asp

The body tag Everything that you place in the body of your web page will be displayed in the main window of a browser. This section is structured with the tags <body> and </body>

The <html> ... </html> acts like a container for the document. The <head> ... </head> contains the title, and information on style sheets and scripts, While the <body> ... </body> contains the markup with the visible content.

Regular Text and Paragraphs Most web pages contain just plain text, typed as text into the body section of the web page. However, there are some key differences between plain text and body text. Firstly, line breaks have to be explicitly marked with the <br /> tag. Text can also be separated with the <p> tag, or paragraph tag. The <p> tag is paired with the </p> tag. When the combination <p> </p> is used, not only is a new line started but also an empty line is put before the paragraph text and after it.

Headings Often a web page needs to include headings in larger, bolder text that stands out. To create headings, use: <h#>Heading text</h#> and replace # with a number from 1 to 6. The text inside will be bold and usually larger – h1 gives the largest headings - and surrounded by empty lines.

heading.</h6> h6 an is <h6>This heading.</h5> h5 The Figure below shows how the following lines of HTML code appear in a browser: heading.</h6> h6 an is <h6>This heading.</h5> h5 <h5>This heading.</h4> h4 <h4>This heading.</h3> h3 <h3>This heading.</h2> h2 <h2>This heading.</hl> h1 <h1>This

Typography As a rule of thumb, paragraph text should use a sans serif font such as Arial and headlines should use a serif font such as Times New Roman - the opposite of what is used for printed text. Explore font settings at www.typetester.maratz.com. Anything from 45 to 75 characters is widely regarded as a satisfactory line length, and 66 characters - letters and spaces - is widely considered ideal.

CoLour in Web Pages Colour may be expressed as a six-digit hexadecimal number, two digits per primary colour. For example, #FFFFFF corresponds to white, #0000FF to blue, #00FF00 to green and #FFOOOO to red, the additive primary colours.

Images To include an image on a web page use <img src="image1.gif" alt="first image" width="70" height="70“/> The attribute alt allows a text description of the image to be used in place of the image in text-only browsers. The width and height attributes set the image's display size in pixels.

Links Links, or hyperlinks, are the hooks that make it possible to navigate to information without knowing the precise details of its location or identity. For example, you may not know the name of a file on www. educational-computing.co.uk that contains an article you want to read, but you can still get to it by clicking on the appropriate link.

Text links to other pages To create a link in a web page, use tags <a> </a> and the attribute href: <a href=''http://domain name/path name">Caption for link</a> To make a link to www.educational-computing.co.uk, the HTML : <a href=''http://www.educational-computing.co.uk''>Click here for ECS!</a> Will display in a web browser as Click here for ECS!

Text links in a page Anchors use the same <a></ a> tag pair as regular links. To create an anchor, simply write <a name="anchorname"></a> immediately in front of the place you want your link to point to. For example, the top of a page could have an anchor called top: <a name="top"></a> To link to a named anchor, use href plus # and the anchor name. This HTML <a href="#top">Click here for the top of this page</a> produces Click here for the top of this page If you click on the link, it will take you to the anchor named top.

Unordered Lists Unordered Lists are the same as ordered lists but the browser does not automatically number the list items. Each item starts with a symbol, or dingbat, such as filled square or filled circle. An unordered list is created in the same way as an ordered list, but the list is enclosed by <u1> and </u1 > instead of <01> and </01 >.

Test your HTML skills Online http://www.w3schools.com/html/

Key Terms