HTML (HyperText Markup Language)

Slides:



Advertisements
Similar presentations
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
HTML popo.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Project Pertemuan 13 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Introduction to Web & HTML Pertemuan 08 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
HTML BASIC
Colour & Image in HTML Wah Yan College (Hong Kong) Mr. Li C.P.
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
CS105 Introduction to Computer Concepts HTML
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
Chapter 2 HTML (Hypertext Markup Language) Part I.
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.
HTML (HyperText Markup Language)
Understanding HTML Code
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Explorers Guild April 27, What is HTML? Hypertext Markup Language (HTML) is the basic building block of the World Wide Web page. HTML files are.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
HTML Basic IST2101. Keep In Mind Programming can be time consuming. Plan ahead!
HTML: Hyptertext Markup Language Doman’s Sections.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
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 Basics (Part-3).
Chapter 8 Introduction to HTML and Applets
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
CGS 3066: Lecture 2 Web Development and HTML5
Web Development Part 1.
BHS Web Design Mr. Campbell
What is HTML? Acronym for: HyperText Markup Language
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
Computer Fundamentals 2
How to create a static website with HTML
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
Session 5: HTML J 0394 – Perancangan Situs Web Program Studi Manajemen
Chapter 1: Introduction to XHTML (part 1)
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
Web Programming– UFCFB Lecture 5
Tag Basics.
COMPUTING FUNDAMENTALS
Project.
Programming for webpages
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Lecture 2 Web Development and HTML5
Introduction to HTML- Basics
Html.
Introduction to HTML.
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
Marking Up with XHTML Tags describe how a web page should look
HTML Basics Mr. Fazzalari.
Marking Up with XHTML Tags describe how a web page should look
Johan Ng and Muhammad Hazzry
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

HTML (HyperText Markup Language)

Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Memahami dasar-dasar dalam mendesain Web yang baik Mengetahui sintaks-sintaks dasar pada HTML

World Wide Web World Wide Web (commonly shortened to the Web) is a system of interlinked hypertext documents accessed via the Internet. With a Web browser, a user views Web pages that may contain text, images, videos, and other multimedia and navigates between them using hyperlinks.

HTML HyperText Markup Language (HTML) is a markup language used to structure text and multimedia documents and to set up hypertext links between documents, used extensively on the World Wide Web. Web pages are built with HTML tags (codes) embedded in the text. HTML defines the page layout, fonts and graphic elements. In order to make pages interactive, programming code can be embedded in an HTML page. For example : JavaScript and VBScript

HTML Tags HTML Tags are commands written between less than (<) and greater than (>) signs, also known as angle brackets, that indicate how the browser should display the text.

Basic HTML Tags Tag Description <html> </html> Defines an HTML document <body> </body> Defines the document's body <h1> </h1> to <h6> </h6> Defines header 1 to header 6 <p> </p> Defines a paragraph <br> Inserts a single line break <hr> Defines a horizontal rule <!-- --> Defines a comment Note : browser will recognize HTML code whether you type it all in all caps or in small letters or in a mixture of both.

Basic HTML Tags (cont..) Headings Paragraphs Line breaks <h1>This is a heading</h1> Paragraphs <p>This is a paragraph</p> Line breaks <p>This<br>is a paragraph<br>with line breaks</p> <!-- This is a comment -->

HTML Tag Attributes Attributes provide additional information to an HTML element. Attributes are always specified in the start tag of an HTML element. Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. Example : name="value". Examples : <h1 align="center"> has additional information about the alignment.</h1> <body bgcolor="yellow"> has additional information about the background color.</body> <table border="1"> has additional information about the border around the table.</table>

Nesting Tags In some cases, you may want to modify your page contents with more than one tag. There are two things to keep in mind here : Not all tags can contain all other kinds of tags. Order is everything. Whenever you use a closing tag it should correspond to the last unclosed opening tag. Example : <H1>Web<I>Animation</I></H1>  correct <H1>Web<I>Animation</H1></I>  incorrect

Simple HTML Code

Text Formatting Tags Tag Description <b> </b> Defines bold text <big> </big> Defines big text <em> </em> Defines emphasized text  <i> </i> Defines italic text <small> </small> Defines small text <strong> </strong> Defines strong text <sub> </sub> Defines subscripted text <sup> </sup> Defines superscripted text Bina Nusantara

Text Formatting Tags (cont..)

Changing the Font You can type <font face=“fontname1, fontname2”>, where fontname2 is your second choice of fonts, should the user not have the first font installed on his system. Size=“n”, where n is a number from 1 to 7. The default is 3. Values 1 to 7 for basefont correspond to 8, 10, 12, 14, 18, 24, 36 points respectively.

HTML Background The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image. Bgcolor The bgcolor attribute specifies a background-color for an HTML page. Background The background attribute specifies a background-image for an HTML page. If the image is smaller than the browser window, the image will repeat itself until it fills the entire browser window.

HTML Images In HTML, images are defined with the <img> tag. To display an image on a page, you need to use the src attribute. The value of the src attribute is the URL of the image you want to display on your page. The “alt” attribute is used to define an "alternate text" for an image. The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images.

HTML Images (cont..) <html> <body> <p> <img src="hackanm.gif“ width="20" height="20"> </p> <img src="hackanm.gif“ width="45" height="45"> <img src="hackanm.gif“ width="70" height="70"> </body> </html>

Embedding Multimedia One of the things that has made the Web so popular is the fact that you can add graphics, sound, animations, and movies to your Web pages.

HTML Colors HTML colors can be defined as a hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one light source is 0 (hex #00) and the highest value is 255 (hex #FF).

Lists Unordered List : the list items are marked with bullets (typically small black circles). An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. Ordered List : The list items are marked with numbers. An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

Lists (cont..) Definition List : This is a list of terms and explanation of the terms. A definition list starts with the <dl> tag. Each definition-list term starts with the <dt> tag. Each definition-list definition starts with the <dd> tag. Inside a unordered list, ordered list, and definition-list definition you can put paragraphs, line breaks, images, links, other lists, etc.

Different Types of Ordered & Unordered List Ordered Lists <ol> <ol type="A"> <ol type="a"> <ol type="I"> <ol type="i"> Unordered Lists <ul type="disc"> <ul type="circle"> <ul type="square"> 1. Text A. Text a. Text I. Text i. Text Text

Nested List