MR.Mohammed Sharaf al Shareef

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Farhan Nisar University of Peshawar
HTML popo.
Introduction to HTML & CSS
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Dr. Alexandra I. Cristea HTML Dr. Alexandra I. Cristea
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
Learning HTML Internet and Web Application Development SWE 444 Dr. Ahmed Youssef.
WeB application development
Website Design.
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.
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
HTML Computing Concepts HTML - An Introduction 1.
HTML BASIC
HTML 2. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension  With newer software it.
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
Computer Sciences Department
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
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,
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
CS105 Introduction to Computer Concepts HTML
HTML Web Programming.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
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.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
DAT602 Database Application Development Lecture 14 HTML.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
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.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
 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.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
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.
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.
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.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
COMP303 - Internet Based Programming
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.
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.
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. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
objectives Learning WEB TECHNOLOGIES. Understanding Salient features of WEB TECHNOLOGIES. Designing of WEB PAGES on your own. Development of WEB APPLICATIONS.
CITE303 - Internet Based Programming Lecture notes: Week 1 Instructor:Dr. Tolgay KARANFİLLER.
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 Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
HTML: HyperText Markup Language
WEBSITE DESIGN Chp 1
1 Introduction to XHTML.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Html.
Presentation transcript:

MR.Mohammed Sharaf al Shareef HTML MR.Mohammed Sharaf al Shareef

HTML Tutorial HTML Basic HTML Advanced HTML Media

Chapter 1 HTML Basic

HTML Basic HTML Introduction HTML Links Getting Started HTML Images HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Text Formatting HTML Fonts HTML Styles - CSS HTML Links HTML Images HTML Tables HTML Lists HTML Forms and Input HTML Frames HTML Iframes HTML Colors HTML Color Names HTML Color Values

HTML Introduction What is HTML? HTML Tags HTML Documents = Web Pages Example Explained

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 HTML uses markup tags to describe web pages

HTML Tags HTML markup tags are usually called HTML tags HTML tags are keywords 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 Start and end tags are also called opening tags and closing tags

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

Example Explained <html> < body> < h1>My First Heading</h1> < p>My first paragraph.</p> < /body> < /html>

Example Explained The text between <html> and </html> describes the web page The text between <body> and </body> is the visible page content The text between <h1> and </h1> is displayed as a heading The text between <p> and </p> is displayed as a paragraph

Getting Started What You Need? Editing HTML .HTM or .HTML File Extension?

What You Need You don't need an HTML editor You don't need a web server You don't need a web site

Editing HTML HTML can be written and edited using many different editors like Dreamweaver and Visual Studio. However, in this tutorial we use a plain text editor (like Notepad) to edit HTML. We believe using a plain text editor is the best way to learn HTML.

.HTM or .HTML File Extension? When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you.

HTML Basic - 4 Examples HTML Headings HTML Paragraphs HTML Links HTML Images

HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1>This is a heading</h1> < h2>This is a heading</h2> < h3>This is a heading</h3>

HTML Paragraphs HTML paragraphs are defined with the <p> tag. <p>This is a paragraph.</p> < p>This is another paragraph.</p>

HTML links HTML links are defined with the <a> tag. <a href="http://www.w3schools.com">This is a link</a>

HTML Images HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142" />

HTML Elements HTML Elements HTML Element Syntax Nested HTML Elements HTML Document Example HTML Example Explained Don't Forget the End Tag Empty HTML Elements HTML Tip: Use Lowercase Tags

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

Nested HTML Elements Most HTML elements can be nested (can contain other HTML elements). HTML documents consist of nested HTML elements.

HTML Tip: Use Lowercase Tags HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML.

HTML Attributes HTML Attributes Attribute Example Always Quote Attribute Values HTML Tip: Use Lowercase Attributes

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"

Attribute Example HTML links are defined with the <a> tag. The link address is specified in the href attribute: <a href="http://www.w3schools.com">This is a link</a>

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'

HTML Tip: Use Lowercase Attributes Attribute names and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation. Newer versions of (X)HTML will demand lowercase attributes.

HTML Headings HTML Headings Headings Are Important HTML Lines HTML Comments HTML Tip - How to View HTML Source

HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. <h1>this is a heading</h1> < h2>this is a heading</h2> < h3>this is a heading</h3>

Headings Are Important Use HTML headings for headings only. Don't use headings to make text BIG or bold. Search engines use your headings to index the structure and content of your web pages.

HTML Lines The <hr /> tag creates a horizontal line in an HTML page. <p>This is a paragraph</p> < hr /> < p>This is a paragraph</p> < hr /> < p>This is a paragraph</p>

<!-- This is a comment --> HTML Comments Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. <!-- This is a comment -->

HTML Tag Reference Description Tag Defines an HTML document Defines the document's body <body> Defines HTML headings <h1> to <h6> Defines a horizontal line <hr /> Defines a comment <!-->

HTML Paragraphs HTML Paragraphs Don't Forget the End Tag HTML Line Breaks <br> or <br />

HTML Paragraphs HTML documents are divided into paragraphs. Paragraphs are defined with the <p> tag. <p>this is a paragraph</p> < p>this is another paragraph</p>

<p>This is a paragraph. Don't Forget the End Tag Most browsers will display HTML correctly even if you forget the end tag: <p>This is a paragraph.

HTML Line Breaks Use the <br /> tag if you want a line break (a new line) without starting a new paragraph. <p>This is<br />a para<br />graph with line breaks</p>

<br> or <br /> In XHTML, XML, elements with no end tag (closing tag) are not allowed. Even if <br> works in all browsers, writing <br /> instead works better in XHTML and XML applications.

Inserts a single line break HTML Tag Reference Description Tag Defines a paragraph <p> Inserts a single line break <br />

HTML Formatting HTML Text Formatting HTML Formatting Tags HTML "Computer Output" Tags HTML Citations, Quotations, and Definition Tags

HTML Text Formatting Description Tag Defines bold text <b> Defines big text <big> Defines emphasized text <em> Defines italic text <i> Defines small text <small> Defines strong text <strong> Defines subscripted text <sub> Defines superscripted text <sup> Defines inserted text <ins> Defines deleted text <del>

HTML Text Formatting <html> <body> <p><b>This text is bold</b></p> <p><strong>This text is strong</strong></p> <p><big>This text is big</big></p> <p><i>This text is italic</i></p> <p><em>This text is emphasized</em></p> <p><code>This is computer output</code></p> <p>This is<sub> subscript</sub> and <sup>superscript</sup></p> </body> </html>

HTML Fonts The HTML <font> Tag Should NOT be Used

HTML Fonts <p> <font size="5" face="arial" color="red"> this paragraph is in arial, size 5, and in red text color. </font> </p>

HTML Styles - CSS Styling HTML with CSS Using the HTML Style Attribute HTML Style Example - Background Color HTML Style Example - Font, Color and Size HTML Style Example - Text Alignment Deprecated Tags and Attributes

Styling HTML with CSS CSS was introduced together with HTML 4, to provide a better way to style HTML elements. CSS can be added to HTML in the following ways: in separate style sheet files (CSS files) in the style element in the HTML head section in the style attribute in single HTML elements

Using the HTML Style Attribute It is time consuming and not very practical to style HTML elements using the style attribute. The preferred way to add CSS to HTML, is to put CSS syntax in separate CSS files. However, in this HTML tutorial we will introduce you to CSS using the style attribute. This is done to simplify the examples. It also makes it easier for you to edit the code and try it yourself. You can learn everything about CSS in our CSS Tutorial

HTML Style Example - Background Color The background-color property defines the background color for an element: < html> < body style="background-color:yellow;"> < h2 style="background-color:red;">This is a heading</h2> < p style="background-color:green;">This is a paragraph.</p> < /body> < /html>

HTML Style Example - Font, Color and Size <html> < body> < h1 style="font-family:verdana;">A heading</h1> < p style="font-family:arial;color:red;font-size:20px;"> A paragraph. </p> < /body> < /html>

HTML Style Example - Text Alignment <html> < body> < h1 style="text-align:center;"> Center-aligned heading </h1> < p>This is a paragraph.</p> < /body> < /html>

HTML Hyperlinks (Links) HTML Link Syntax HTML Links - The target Attribute

HTML Hyperlinks (Links) Links are specified in HTML using the <a> tag. The <a> tag can be used in two ways: 1.To create a link to another document, by using the href attribute 2.To create a bookmark inside a document, by using the name attribute

< a href="url">Link text</a> HTML Link Syntax The HTML code for a link is simple. It looks like this: < a href="url">Link text</a>

Example <a href="http://www.w3schools.com/">Visit W3Schools</a>

HTML Links - The target Attribute The example below will open the linked document in a new browser window or a new tab: < a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>

HTML Images The <img> Tag and the Src Attribute HTML Images - The Alt Attribute HTML Images - Set Height and Width of an Image HTML <map> Tag

HTML Images <img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" />

HTML Images - The Alt Attribute <img src="boat.gif" alt="Big Boat" />

HTML <map> Tag <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" /> </map>

HTML Tables HTML Tables Table Example HTML Tables and the Border Attribute HTML Table Headers

HTML Tables Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.

Table Example <table border="1"> < tr> < td>row 1, cell 1</td> < td>row 1, cell 2</td> < /tr> < tr> < td>row 2, cell 1</td> < td>row 2, cell 2</td> < /tr> < /table>

HTML Tables and the Border Attribute <table border="1"> < tr> < td>Row 1, cell 1</td> < td>Row 1, cell 2</td> < /tr> < /table>

HTML Table Headers <table border="1"> < tr> < th>Header 1</th> < th>Header 2</th> < /tr> < tr> < td>row 1, cell 1</td> < td>row 1, cell 2</td> < /tr> < /table>

HTML Table Tags Description Tag Defines a table <table> Defines a table header <th> Defines a table row <tr> Defines a table cell <td> Defines a table caption <caption> Defines a group of columns in a table, for formatting <colgroup> Defines attribute values for one or more columns in a table <col /> Groups the header content in a table <thead> Groups the body content in a table <tbody> Groups the footer content in a table <tfoot>

EX 1

HTML Lists An ordered list: The first list item The second list item The third list item An unordered list: List item

HTML Unordered Lists An unordered list starts with the <ul> tag. Each list item starts with the <li> tag <ul> < li>Coffee</li> < li>Milk</li> < /ul> <ul> < li>Coffee</li> < li>Milk</li> < /ul>

HTML Ordered Lists An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items are marked with numbers. <ol> < li>Coffee</li> < li>Milk</li> < /ol>

HTML Definition Lists The <dl> tag is used in conjunction with <dt> (defines the item in the list) <dd> (describes the item in the list) <dl> < dt>Coffee</dt> < dd>- black hot drink</dd> < dt>Milk</dt> < dd>- white cold drink</dd> < /dl>

HTML List Tags Description Tag Defines an ordered list <ol> Defines an unordered list <ul> Defines a list item <li> Defines a definition list <dl> Defines an item in a definition list <dt> Defines a description of an item in a definition list <dd>

HTML Forms and Input HTML Forms HTML Forms - The Input Element Text Fields Password Field Textarea Radio Buttons Checkboxes Create Button Submit Button

HTML Forms HTML forms are used to pass data to a server. The <form> tag is used to create an HTML form: < form> . input elements . < /form>

HTML Forms - The Input Element The most important form element is the input element. The input element is used to select user information. An input element can vary in many ways, depending on the type attribute. An input element can be of type text field, checkbox, password, radio button, submit button, and more. The most used input types are described below.

Text Fields <input type="text" /> defines a one-line input field that a user can enter text into: < form> First name:< input type="text" name="firstname" /> <br /> Last name:< input type="text" name="lastname" /> < /form>

Password Field <form> Password:< input type="password" name="pwd" /> < /form>

Text area <textarea rows="10" cols="30"> The cat was playing in the garden. </textarea>

Radio Buttons <form> < input type="radio" name=“Type" value="male" /> Male<br /> < input type="radio" name=“Type" value="female" /> Female < /form>

Checkboxes <form> < input type="checkbox" name="vehicle" value="Bike" /> I have a bike <br /> < input type="checkbox" name="vehicle" value="Car" /> I have a car < /form>

Create Button <form action=""> <input type="button" value="Hello world!"></form>

Submit Button <form name="input" action="html_form_action.asp" method="get"> Username:< input type="text" name="user" /> < input type="submit" value="Submit" /> < /form>

HTML Form Tags Description Tag Defines an HTML form for user input Defines an input control <input /> Defines a multi-line text input control <textarea> Defines a label for an input element <label> Defines a border around elements in a form <fieldset> Defines a caption for a fieldset element <legend> Defines a select list (drop-down list) <select> Defines a group of related options in a select list <optgroup> Defines an option in a select list <option> Defines a push button <button>

HTML Frames Vertical frameset Horizontal frameset

Vertical frameset <frameset cols="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> </frameset>

Horizontal frameset <frameset rows="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> </frameset>

HTML Frame Tags Description Tag Defines a set of frames <frameset> Defines a sub window (a frame) <frame /> Defines a noframe section for browsers that do not handle frames <noframes>

HTML Iframes <iframe src="demo_iframe.htm" width="200" height="200"></iframe>

HTML iframe Tag Description Tag Defines an inline sub window (frame)

Color Values Color RGB Color HEX Color rgb(0,0,0) #000000 rgb(255,0,0) #FF0000 rgb(0,255,0) #00FF00 rgb(0,0,255) #0000FF rgb(255,255,0) #FFFF00 rgb(0,255,255) #00FFFF rgb(255,0,255) #FF00FF rgb(192,192,192) #C0C0C0 rgb(255,255,255) #FFFFFF

16 Million Different Colors The combination of Red, Green, and Blue values from 0 to 255, gives more than 16 million different colors (256 x 256 x 256). If you look at the color table below, you will see the result of varying the red light from 0 to 255, while keeping the green and blue light at zero. To see the full list of color mixes when RED varies from 0 to 255, click on one of the HEX or RGB values below.