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.

Slides:



Advertisements
Similar presentations
Farhan Nisar University of Peshawar
Advertisements

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?
Introduction to HTML & CSS
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
WeB application development
Website Design.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
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.
Images, Tables, lists, blocks, layout, forms, iframes
MR.Mohammed Sharaf al Shareef
Made by: Dan Ye. Introduction Basic Last Page ☆ HTML stands for Hyper Text Markup Language; ☆ HTML is not a programming language, it is a markup language;
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Computer Sciences Department
Basics of HTML.
HTML Web Programming.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
DAT602 Database Application Development Lecture 14 HTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
HTML Structure & syntax
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
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.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 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. 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.
HTML: Hyptertext Markup Language Doman’s Sections.
Graduate School of Library and Information Science LIS 753 Introduction to HTML 5 By: Yijun Gao Week Three.
1. Pengenalan HTML M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307)
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.
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Form. HTML forms are used to collect user input. The element defines an HTML form: Form elements are different types of input elements, checkboxes,
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.
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
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
Chapter 1: Intro to HTML Section 1: HTML Structure Presentation Section 2: Layout of an HTML File Section 3: Working with Lists & Tables Section 4: HTML.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Fall 2016 CSULA Saloni Chacha
HTML basics
Mansoor Ahmed Bughio.
HTML.
Introduction to Web programming
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 Web programming
Basic HTML and Embed Codes
1 Introduction to XHTML.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Pertemuan 1b
Pertemuan 1 Desain web Pertemuan 1
Presentation transcript:

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 describes different document content

HTML tags HTML tags are keywords (tag names) surrounded by angle brackets: content HTML tags normally come in pairs like and 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, but with a slash before the tag name

Starting an HTML page All HTML documents must start with a type declaration: The declaration helps the browser to display a web page correctly

Core HTML tags The HTML document itself begins with and ends with The element is a container for metadata (data about data). HTML metadata is data about the HTML document. Metadata is not displayed. Metadata typically define document title, styles, links, scripts, and other meta information The visible part of the HTML document is between and

Example Page Title My First Heading My first paragraph

HTML Basics HTML headings are defined with the to tags: This is a heading HTML paragraphs are defined with the tag: This is a paragraph. HTML links are defined with the tag: This is a link

HTML Basics (continued) HTML images are defined with the tag. The source file (src), alternative text (alt), and size (width and height) are provided as attributes:

How to write a tag HTML elements are written with a start tag, with an end tag, with the content in between: content The HTML element is everything from the start tag to the end tag: My first HTML paragraph.

Nested elements HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements Example: (nested inside the element) My First Heading (nested inside the element) My first paragraph. (nested inside the element)

HTML Attributes Attributes provide additional information about the HTML elements in which they are used 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"

HTML Attributes (Examples) HTML links are defined with the tag. The link address is specified in the href attribute: This is a link HTML images are defined with the tag. The filename of the source (src), and the size of the image (width and height) are all provided as attributes:

The HTML Style Attribute Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax: style=“property:value;” The property is a CSS property. The value is a CSS value This is a heading This is a paragraph.

Script tag T he tag is used to define a client-side script, such as a JavaScript. The element either contains scripting statements or it points to an external script file through the src attribute Example: document.getElementById("demo").innerHTML = "Hello JavaScript!";

HTML Comment Tags Comments are not displayed by the browser, but they can help document your HTML With comments you can place notifications and reminders in your HTML Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors

Frequently used HTML tags : used to create links to pages or files : used to insert images in the HTML page,,, : used to create a table in your HTML page : defines a division or a section in an HTML document : defines an ordered list. An ordered list can be numerical or alphabetical : defines an unordered (bulleted) list : defines a list item

Frequently used HTML Form tags : used to create an HTML form for user input : specifies an input field where the user can enter data : defines a multi-line text input control : defines a clickable button : used to create a drop-down list : inside the element, defines the available options in the list : defines a label for an element. The element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the element, it toggles the control.

Working with Forms HTML forms are used to collect user input. The element defines an HTML form defines a button for submitting a form to a form-handler The form-handler is typically a server page with a script for processing input data The form-handler is specified in the form's action attribute: Example:

Working with Forms (continued) The action attribute of the form tag defines the action to be performed when the form is submitted The common way to submit a form to a server, is by using a submit button Normally, the form is submitted to a web page on a web server The method attribute specifies the HTTP method (GET or POST) to be used when submitting the forms:

Working with Forms (continued) To be submitted correctly, each input field must have a name attribute Example: First name: Last name:

Using the input tag in a Form The element is the most important form element. The element has many variations, depending on the type attribute TypeDescription textDefines normal text input radioDefines radio button input (for selecting one of many choices) submitDefines a submit button (for submitting the form) passwordDefines a password field checkboxDefines a checkbox buttonDefines a button