introduction. what is html? html is a language for describing web pages. html stands for hyper text...

17

Click here to load reader

Upload: zoe-gardner

Post on 31-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

HTML

INTRODUCTION

Page 2: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

HTMLWhat 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 •HTML documents describe web pages•HTML documents contain HTML tags and plain text•HTML documents are also called web pages

Page 3: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

HTML•Web pages are commonly referred to as HTML pages or documents•A markup language is a set of characters or symbols that define a document’s logical structure•HTML is based on an older language called Standard Generalized Markup Language (SGML)•HTML has evolved into a language that defines how elements should appear in a Web browser•Understanding HTML is critical in learning how to write a web application along with the server programming

Page 4: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX •HTML documents are text documents that contain formatting instructions called tags•HTML tags include:

•Formatting commands (boldface or italic)•Controls that allow user input (option buttons or check boxes)

•Tags are enclosed in brackets (< >) and consist of an opening tag and a closing tag

Page 5: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX

Page 6: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX Basic document structure

Page 7: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX Attributes

Page 8: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX Attributes

• Attributes go after the element name in the opening tag only, never in the end tag.

• There may be several attributes applied to an element, separated by spaces in the opening tag. Their order is not important.

• Attributes take values, which follow an equals sign (=). A value might be a number, a word, a string of text, a URL, or a measurement depending on the purpose of the attribute.

•Some attributes are required, such as the src and alt attributes in the img element.

Page 9: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX HEAD STRUCTURE

• Page Title• Scripting• Style• META information

Page 10: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX BODY STUCTURE

• Text• Images• Links• Multimedia and special events

COMMENTS IN HTML DOCUMENTS

<!-- text goes here -->

Page 11: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

BASIC HTML SYNTAX LINKS

Anchor (a)•The href attribute provides the address of the page (its URL) to the browser. •<img src="images/jenskitchen.gif" alt="" />•<img src="../../images/spoon.gif" alt="" />•<img src="/images/spoon.gif" alt="" />•a href="http://www.evslearning.com" target="_blank">EVS</a>•Alt= Alternating Text

Page 12: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

FORMATTING ELEMENTS IN HTML • <H1>…</H1> to <H6>…</H6> the range

of header tags used to denote headings and subheadings.

• <BR> the break tag, equivalent to one carriage return.

• <P> the paragraph tag.• <P>…</P> the open/close approach to

denote paragraph.• <B>…</B> the bold tag.• <I>…</I> the italics tag.• <U>…</U> the underline tag

Page 13: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

FORMATTING ELEMENTS IN HTML • <SMALL>…</SMALL> makes a

section of text appear smaller than surrounding body text.

• <BIG>…</BIG> makes the reverse action of above tag.

Page 14: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

FORMATTING ELEMENTS IN HTML ALIGNING TEXT

•<DIV>…</DIV> Division element•<P>…</P> Starting and ending Paragraph element

Following Attributes are available:•Default•Left•Right•Justify

Page 15: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

FORMATTING ELEMENTS IN HTML

ParagraphParagraphs are the most rudimentary elements of a text document. You indicate a paragraph with the p element. Simply insert an opening <p> tag at the beginning of the paragraph and a closing </p> tag after it, as shown in this example.

Page 16: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

FORMATTING ELEMENTS IN HTML LISTSThere are three main types of lists in HTML:• Unordered lists. Collections of items that

appear in no particular order.• Ordered lists. Lists in which the sequence of

the items is important.• Definition lists. Lists that consist of terms and

definitions.

Page 17: INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,

TABLES IN HTML

INTRODUCTION