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.

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Chapter 3 – Web Design Tables & Page Layout
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML popo.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
HTML Code. What we will cover Basic HTML Body Font Images Hyperlinks Tables Frames.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
CS105 Introduction to Computer Concepts HTML
A simple example An HTML file is a text (ASCII) file in a special format: Charles Ling's home page My first.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
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.
Just Enough HTML How to Create Basic HTML Documents.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
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,
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Week 7: HTML Basics HNDIT11062 – Web Development.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Basic HTML. So, what exactly is HTML? HTML stands for: HTML stands for: Hypertext Markup Language. It is a purpose built markup language for the delivery.
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.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
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.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
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.
Building a Web Page. A Brief History In 1989, Tim Berners-Lee invented the Web. To enable particle physics from around the world to organize and share.
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.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
Introduction to HTML.
HTML Basics.
Introduction to HTML.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Introduction to HTML.
1 Introduction to XHTML.
Html.
Introduction to HTML.
Presentation transcript:

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 is a text formatting language.  URL – Uniform Resource Locator.  Browser – A software program which is used to show web pages.

3  “Normal text” surrounded by bracketed tags that tell browsers how to display web pages  Pages end with “.htm” or “.html”  HTML Editor – A word processor that has been specialized to make the writing of HTML documents more effortless.

4 Tags  Codes enclosed in brackets  Usually paired My Web Page  Not case sensitive = =

5 Starting NotePad NotePad is the standard text editor that comes with the microsoft windows operating system. To start NotePad :  Click on the “Start” button located on your Windows task bar.  Click on “Programs” and then click on the directory menu labeled “Accessories”.  Locate the shortcut “NotePad” and click the shortcut once.

6 Creating a Basic Starting Document AMITY University This is what is displayed.

7 Creating a Basic Starting Document  The HEAD of your document point to above window part. The TITLE of your document appears in the very top line of the user’s browser. If the user chooses to “Bookmark” your page or save as a “Favorite”; it is the TITLE that is added to the list.  The text in your TITLE should be as descriptive as possible because this is what many search engines, on the internet, use for indexing your site.

8 Setting Document Properties  Document properties are controlled by attributes of the BODY element. For example, there are color settings for the background color of the page, the document’s text and different states of links.

9 Edit, Save and View Cycle  To preview Your Work, open a web browser and do the following: 1.Click on the menu labeled “File”. 2.Locate the menu option, “Open”.

10 Edit, Save and View Cycle 3. In the “Open” dialog box, click on the “Browse” button and locate your web document. 4.Click “OK” once you have selected your file.  The web browser will load the same document but with the new revisions. This process is the Edit, Save and View Cycle.

11 Headings,  Inside the BODY element, heading elements H1 through H6 are generally used for major divisions of the document. Headings are permitted to appear in any order, but you will obtain the best results when your documents are displayed in a browser if you follow these guidelines: 1.H1: should be used as the highest level of heading, H2 as the next highest, and so forth. 2.You should not skip heading levels: e.g., an H3 should not appear after an H1, unless there is an H2 between them.

12 Headings, Example Page Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6

13 Paragraphs,  Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of line to suite the window size of the browser in which it is being displayed. Each line of text will stretch the entire length of the window.

14 Paragraphs, Example Page Heading 1 Paragraph 1, …. Heading 2 Paragraph 2, …. Heading 3 Paragraph 3, …. Heading 4 Paragraph 4, …. Heading 5 Paragraph 5, …. Heading 6 Paragraph 6, …. Heading 1 Paragraph 1,…. Heading 2 Paragraph 2,…. Heading 3 Paragraph 3,…. Heading 4 Paragraph 4,…. Heading 5 Paragraph 5,…. Heading 6 Paragraph 6,….

15 Break,  Line breaks allow you to decide where the text will break on a line or continue to the end of the window.  A is an empty Element, meaning that it may contain attributes but it does not contain content.  The element does not have a closing tag.

16 Horizontal Rule,  The element causes the browser to display a horizontal line (rule) in your document.  does not use a closing tag,.

17 Horizontal Rule, AttributeDescriptionDefault Value SIZE Height of the rule in pixels 2 pixels WIDTH Width of the rule in pixels or percentage of screen width 100% NOSHADE Draw the rule with a flat look instead of a 3D look Not set (3D look) ALIGN Aligns the line (Left, Center, Right) Center COLOR Sets a color for the rule (IE 3.0 or later) Not set

18 Horizontal Rule, Example Page Heading 1 Paragraph 1, Line 2 Line 3 Heading 1 Paragraph 1,…. Line 2 ______________________ _____ Line 3

19 Character Formatting In this chapter you will learn how to enhance your page with Bold, Italics, and other character formatting options. Objectives Upon completing this section, you should be able to 1.Change the color and size of your text. 2.Use Common Character Formatting Elements. 3.Align your text. 4.Add special characters. 5.Use other character formatting elements.

20 Bold, Italic and other Character Formatting Elements  Two sizes bigger  The size attribute can be set as an absolute value from 1 to 7 or as a relative value using the “+” or “-” sign. Normal text size is 3 (from -2 to +4).  Bold  Italic  Underline  Color = “#RRGGBB” The COLOR attribute of the FONT element. E.g., this text has color

21 Bold, Italic and other Character Formatting Elements  Emphasis Browsers usually display this as italics.  STRONG Browsers display this as bold.  TELETYPE Text is displayed in a mono-spaced font. A typewriter text, e.g. fixed- width font.  Citation represents a document citation (italics). For titles of books, films, etc. Typically displayed in italics. (A Beginner's Guide to HTML)

22 Bold, Italic and other Character Formatting Elements One Size Larger - Normal – One Size Smaller Bold - italics - Underlined - Colored Emphasized - Strong - Tele Type One Size Larger - Normal – One Size Smaller Bold - italics - Underlined - Colored Emphasized - Strong - Tele Type

23 Alignment  Some elements have attributes for alignment (ALIGN) e.g. Headings, Paragraphs and Horizontal Rules.  The Three alignment values are : LEFT, RIGHT, CENTER.  Will center elements.

HTML Attributes (Alignments) Align Attribute Example This is left aligned This is center aligned This is right aligned 24

HTML Attributes Style tag The style Attribute Some text... 25

HTML Attributes Superscript Text Example The following word uses a superscript typeface. The following word uses a subscript typeface. The following word uses a strikethrough typeface. The following word uses a italicized typeface. The following word uses a underlined typeface.</p The following word uses a bold typeface. 26

HTML Tables HTML Tables Row 1, Column 1 Row 1, Column 2 Row 2, Column 1 Row 2, Column 2 27

Table with values HTML Table Header Name Salary Ramesh Raman 5000 Shabbir Hussein

29

Colspan and Rowspan Attributes You will use colspan attribute if you want to merge two or more columns into a single column. Similar way you will use rowspan if you want to merge two or more rows. 30

Colspan and Rowspan Attributes HTML Table Colspan/Rowspan Column 1 Column 2 Column 3 Row 1 Cell 1 Row 1 Cell 2 Row 1 Cell 3 Row 2 Cell 2 Row 2 Cell 3 Row 3 Cell 1 31

32

Tables Backgrounds bgcolor attribute - You can set background color for whole table or just for one cell. bordercolor - You can also set border color also using bordercolor attribute. 33

Tables Backgrounds HTML Table Background Column 1 Column 2 Column 3 Row 1 Cell 1 Row 1 Cell 2 Row 1 Cell 3 Row 2 Cell 2 Row 2 Cell 3 Row 3 Cell 1 34

HTML Lists HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain: - An unordered list. This will list items using plain bullets. - An ordered list. This will use different schemes of numbers to list your items. - A definition list. This arranges your items in the same way as they are arranged in a dictionary. 35

HTML Unordered Lists An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTML tag. Each item in the list is marked with a bullet. 36

HTML Unordered Lists HTML Unordered List Beetroot Ginger Potato Radish 37

The type Attribute You can use type attribute for tag to specify the type of bullet you like. By default it is a disc. Following are the possible options: 38

HTML Ordered Lists If you are required to put your items in a numbered list instead of bulleted then HTML ordered list will be used. This list is created by using tag. The numbering starts at one and is incremented by one for each successive ordered list element tagged with. 39

HTML Ordered Lists HTML Ordered List Beetroot Ginger Potato Radish 40

The type Attribute You can use type attribute for tag to specify the type of numbering you like. By default it is a number. Following are the possible options: - Default-Case Numerals. - Upper-Case Numerals. - Lower-Case Numerals. - Lower-Case Letters. - Upper-Case Letters. 41

HTML Definition Lists HTML and XHTML support a list style which is called definition listswhere entries are listed like in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of terms, or other name/value list. Definition List makes use of following three tags. - Defines the start of the list - A term - Term definition - Defines the end of the list 42

HTML Definition Lists HTML Definition List HTML This stands for Hyper Text Markup Language HTTP This stands for Hyper Text Transfer Protocol 43

Image Insertion Using Image in Webpage Simple Image Insert 44

45

Frames HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns. 46

Creating Frames To use frames on a page we use tag instead of tag. The tag defines how to divide the window into frames. The rows attribute of tag defines horizontal frames and cols attribute defines vertical frames. Each frame is indicated by tag and it defines which HTML document shall open into the frame. 47

Frame-Row Wise HTML Frames 48

Frame- Column Wise HTML Frames 49

50

Linking Documents A link is specified using HTML tag. This tag is called anchor tag and anything between the opening tag and the closing tag becomes part of the link and a user can click that part to reach to the linked document. Following is the simple syntax to use tag. 51

Linking Documents Hyperlink Example Click following link Google 52

Linking Documents Hyperlink Example Click any of the following links Google Gmail facebook 53

54

Html Forms HTML Forms are required when you want to collect some data from the site visitor. For example during user registration you would like to collect information such as name, address, credit card, etc. A form will take input from the site visitor and then will post it to a back-end application such as CGI, ASP Script or PHP script etc. The back- end application will perform required processing on the passed data based on defined business logic inside the application. 55

HTML Form Controls Text Input Controls Checkboxes Controls Radio Box Controls Select Box Controls Submit and Reset Button 56

Form Example Text Input Control First name: Last name: Password: Description : Enter description here... Select your class MBA MCA MCom Select your Subjects ITM Accounts Select your city Delhi Faridabad 57

58

Queries? 59