HTML BASIC http://xuanhien.wordpress.com.

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

Basic Principles for Web Design Source:
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
HTML popo.
Introduction to HTML & CSS
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
HTML: HyperText Markup Language Hello World Welcome to the world!
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.
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.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
MR.Mohammed Sharaf al Shareef
HTML Computing Concepts HTML - An Introduction 1.
4.01 Cascading Style Sheets
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
Computer Sciences Department
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.
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.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
HTML Structure & syntax
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
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.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
HTML Basic I IST2101. Keep In Mind Programming can be time consuming. Plan ahead!
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 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.
Hypertext Mark-Up Language Web Page Creation HTML.
HTML Basic IST2101. Keep In Mind Programming can be time consuming. Plan ahead!
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
HTML Basics Let’s Make a Web Page. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a.
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.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
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 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.
CS543: WEB APPLICATION PROGRAMMING Lab 1: HTML tags & SW installation Computer Science Department.
COMP303 - Internet Based Programming
HTML BASIC IST 210: Organization of Data IST210 1.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
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.
Introduction To CSS by: Alexandra Vlachakis Sandy Creek High School, Fayette County Schools Content and Resources Used With Permission: Interact With Web.
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 cancho. HTML HyperText Markup Language A set of HTML tags.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
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.
CITE303 - Internet Based Programming Lecture notes: Week 1 Instructor:Dr. Tolgay KARANFİLLER.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML Basic IST 210: Organization of Data IST2101.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
4.01 Cascading Style Sheets
WEBSITE DESIGN Chp 1
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Html.
4.01 Cascading Style Sheets
Presentation transcript:

HTML BASIC http://xuanhien.wordpress.com

Contents Fundamental HTML elements Basic HTML Tags HTML List HTML Image Company Logo

FUNDAMENTAL 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. Company Logo

FUNDAMENTAL 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. Company Logo

FUNDAMENTAL HTML Document = Web Page HTML documents describe web pages, it contain HTML tags and plain text Structure of the web page: <html> <head> information of the web page</head> <body> content display on browser </body> </html> Company Logo

FUNDAMENTAL Web Browser The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page Company Logo

FUNDAMENTAL Editing HTML We use a plain text editor (like Notepad) to edit HTML. This is the best way to learn HTML. However, professional web developers often prefer HTML editors like FrontPage or Dreamweaver, instead of writing plain text. HTM or HTML Extension? When you save an HTML file, you can use either the .htm or the .html extension. With new software it is perfectly safe to use .html. Company Logo

HTML ELEMENTS HTML Elements: An HTML element is everything from the start tag to the end tag: Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm"> This is a link </a> <br />   Company Logo

HTML ELEMENTS HTML Element Syntax An HTML element starts with a start tag / opening tag and 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 Company Logo

HTML ELEMENTS Nested HTML Elements Most HTML elements can be nested (can contain other HTML elements). HTML documents consist of nested HTML elements. Empty HTML Elements HTML elements without content are called empty elements. Empty elements can be closed in the start tag. <br> is an empty element without a closing tag Company Logo

HTML ELEMENTS Example: Explain: <html> <body> <p>This is my first paragraph</p> </body> </html> Explain: The <html> element defines the whole HTML document. The <body> element defines the body of the HTML document. The <p> element defines a paragraph in the HTML document Company Logo

HTML ELEMENTS HTML Attributes HTML elements can have attributes Attributes provide additional information about the element. Attributes are always specified in the start tag. Attributes come in name/value pairs like: name="value“. Attribute values should always be enclosed in quotes Example <a href=“http://www.w3schools.com”>This is a link </a> Company Logo

HTML ELEMENTS Below is a list of some attributes that are standard for most HTML elements: Attribute Value Description class class_rule or style_rule The class of the element id id_name A unique id for the element style style_definition An inline style definition title tooltip_text  A text to display in a tool tip Company Logo

BASIC HTML TAGS HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading. Example <h1>This is a heading1</h1> <h2>This is a heading2</h2> <h3>This is a heading3</h3> Browsers automatically adds an empty line before and after headings. Company Logo

BASIC HTML TAGS Example <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> Company Logo

BASIC HTML TAGS HTML Rules (Lines) The <hr /> tag is used to create an horizontal rule (line). Example: <html><body> <p>The hr tag defines a horizontal rule:</p> <hr /> <p>This is a paragraph</p> </body></html> Company Logo

<HR Align=”directtion” Width= “Value” Size=value color=#rrggbb> BASIC HTML TAGS Optional Attributes of the <HR> tag: <HR Align=”directtion” Width= “Value” Size=value color=#rrggbb> Example: <HR Align=CENTER Size=12 Width=100% color=RED> <HR Align=CENTER SizeE=6 Width=50% color=GREEN> <HR Align=CENTER Size=3 Width=25% color=BLUE> <HR Align=CENTER Size=1 Width=10% color=YELLOW> Company Logo

BASIC HTML TAGS HTML Comments Comments can be inserted in the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. Example <html><body> <!--This comment will not be displayed--> <p>This is a regular paragraph</p> </body></html> Company Logo

BASIC HTML TAGS HTML Paragraphs: Paragraphs are defined with the <p> tag Browsers automatically adds an empty line before and after paragraphs. Example: <html><body> <p>This is a paragraph. <p>Don't forget to close your HTML tags!</p> </body></html> Company Logo

BASIC HTML TAGS HTML Line Breaks: Use the <br /> tag if you want a line break (a new line) without starting a new paragraph. The <br /> element is an empty HTML element. It has no end tag. <br> or <br /> Example: <html><body> <p>This is<br />a paragraph<br /> with line breaks</p> </body></html> Company Logo

BASIC HTML TAGS HTML Text Formatting: HTML uses tags like <b> and <i> for formatting output, like bold or italic text. These HTML tags are called formatting tags. Example: <html><body> <p><b>This text is bold</b></p> <p><big>This text is big</big></p> <p><i>This text is italic</i></p> <p>This is<sub> subscript</sub> and <sup>superscript</sup></p> </body></html> Company Logo

BASIC HTML TAGS Text Formatting Tags Tag Description <b> Defines bold text <big> Defines big text <em> Defines emphasized text  <i> Defines italic text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text <u> Deprecated. Use styles instead Company Logo

BASIC HTML TAGS HTML Styles: The style attribute is a new HTML attribute. It introduces CSS to HTML. The purpose of the style attribute is: To provide a common way to style all HTML elements. With HTML styles, styles can be added to HTML elements directly by using the style attribute, or indirectly by in separate style sheets (CSS files).. Company Logo

Ex: <body style="background-color:yellow"> BASIC HTML TAGS Examples style="background-color:yellow" style="font-size:10px" style="font-family:Times" style="text-align:center" Some the attribute always use: Background Color Ex: <body style="background-color:yellow"> The style attribute defines a style for the <body> element. Company Logo

BASIC HTML TAGS Font Family, Color and Size Ex: <p style="font-family:courier new; color:red; font-size:20px"> The style attribute defines a style for the <p> element. Text Alignment Ex: <h1 style="text-align:center"> The style attribute defines a style for the <h1> element. Company Logo

BASIC HTML TAGS HTML Fonts: <FONT Face=”fontName1, fontName2, fontName3” size=”value” color=”#rrggbb”> content </FONT> Example: <p> <font size="2" face="Verdana"> This is a paragraph. </font> </p> Company Logo

BASIC HTML TAGS Font Attributes Attribute Example Purpose size="number" size="2" Defines the font size size="+number" size="+1" Increases the font size size="-number" size="-1" Decreases the font size face="face-name" face="Times" Defines the font-name color="color-value" color="#eeff00" Defines the font color color="color-name" color="red" Company Logo

BASIC HTML TAGS The Right Way to Do It - With Styles: <html> <body> <p style="font-family:verdana;font-size:80%; color:green"> This is a paragraph with style. </p> </body> </html> Company Logo

HTML Colors HTML Color Values: HTML colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one of the light sources is 0 (hex 00). The highest value is 255 (hex FF). Hex values are written as 3 double digit numbers, starting with a # sign. Company Logo

HTML Colors Company Logo

HTML Colors HTML Color Names: The W3C HTML and CSS standards have listed only 16 valid color names: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. Company Logo

<BODY BGCOLOR=color TEXT=color LINK=color VLINK=color> HTML Colors To change the color scheme of web page you use Body tag. <BODY BGCOLOR=color TEXT=color LINK=color VLINK=color> Company Logo