HTML Darby Tien-Hao Chang Department of Electrical Engineering National Cheng Kung University.

Slides:



Advertisements
Similar presentations
Farhan Nisar University of Peshawar
Advertisements

Introduction to HTML
HTML Basics 1450 Technology Seminar Copyright 2003, Matthew Hottell.
HTML popo.
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
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.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
MR.Mohammed Sharaf al Shareef
Introduction to HTML CPS470 Software Engineering Fall 1998.
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;
Intro to HTML IS 373—Web Standards Todd Will. CIS Web Standards-HTML 2 of 44 Topics Intro to HTML Basic HTML Tags Character Entities Simple Advanced.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
Introduction to HTML. What is HTML? Hyper Text Markup Language A markup language designed for the creation of web pages and other information viewable.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
CS105 Introduction to Computer Concepts HTML
BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Introduction to HTML. Topics HTML –What is HTML –Parts of an HTML Document –HTML Tags.
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.
DAT602 Database Application Development Lecture 14 HTML.
HTML basics exercises.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML Introduction to HTML Tags. HTML Document My first HTML document Hello world!
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
Introduction to HTML. HTML Hyper Text Markup Language Page Title My First Heading My first paragraph. Page Title My First Heading My first paragraph.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
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.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
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 to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
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.
HTML Hyper Text Markup Language. Create TABLE in an HTML Tables are defined with the tag. A table is divided into rows (with the tag), and each row is.
HTML.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
COMP303 - Internet Based Programming
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
Basic Webpage Design Formatting tags.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
HTML cancho. HTML HyperText Markup Language A set of HTML tags.
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.
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.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
Week-11 (Lecture-1) Introduction to HTML programming: A web based markup language for web. Ex.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Introduction to HTML.
Elements of HTML Web Design – Sec 3-2
Elements of HTML Web Design – Sec 3-2
Marking Up with XHTML Tags describe how a web page should look
Html.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML Darby Tien-Hao Chang Department of Electrical Engineering National Cheng Kung University

HTML introduction HTML stands for Hyper Text Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file must have an htm or html file extension An HTML file can be created using a simple text editor

Sample HTML Title of page This is my first homepage. This text is bold

HTML elements HTML tags are used to mark-up HTML elements HTML tags are surrounded by the two characters The surrounding characters are called angle brackets 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 text between the start and end tags is the element content HTML tags are not case sensitive, means the same as

Sample HTML This text is bold Start tag content end tag This is my first homepage. This text is bold Tag attribute

Basic HTML tags Defines an HTML document Defines the document's body to Defines header 1 to header 6 to Defines a paragraph Inserts a single line break Defines a horizontal rule Defines a comment

Sample HTML This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6

Sample HTML This paragraph contains a lot of lines in the source code, but the browser ignores it. To break lines in a paragraph, use the br tag.

Sample HTML This is heading 1 This is heading 2

More HTML tags Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text Defines computer code text Defines keyboard text Defines sample computer code Defines teletype text Defines a variable Defines preformatted text Defines an abbreviation Defines an acronym Defines an address element Defines the text direction Defines a long quotation Defines a short quotation Defines a citation Defines a definition term

Haha s/ ]*>//g

Powerful regular expression s/ ]*>//g s substitute < left angle bracket [^>] any character except right angle bracket [^>]* all characters formed the tag (attributes) > right angle bracket g replace globally, i.e. all occurrences

Is semantic important? Yes, sometimes  To extract the heading of a news article  html  發票案/李慧芬週五前 返澳 近日將與李碧君對質  /^ (.*) \n$/  print $1, “\n”;

How to display a less than sign (<) in browser? Character Entities  A character entity has three parts: an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;).  To display a less than sign in an HTML document we must write: < or <

The most common character entities ResultDescriptionEntity nameEntity number non-breaking space   <less than<< >greater than>> &ampersand&& "quotation mark"" 'apostrophe&apos;'

HTML links This text is a link to a page on this Web site. This text is a link to a page on the World Wide Web.

HTML frames

HTML frames

HTML tables row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2

HTML tables Cell that spans two columns: Name Telephone Bill Gates Cell that spans two rows: First Name: Bill Gates Telephone:

HTML lists An Unordered List: Coffee Tea An Ordered List: Coffee Tea A Definition List: Coffee Black hot drink Milk White cold drink

HTML forms  description: description  description 1  description 2 default text

Form ’ s action attribute and submit button  Username: 

Methods GET and POST in HTML forms - what's the difference? The difference between GET and POST is primarily defined in terms of form data encoding so that former means that form data is to be encoded (by a browser) into a URL while the latter means that the form data is to appear within a message body If the processing of a form is idempotent (i.e. it has no lasting observable effect on the state of the world), then the form method should be GET If the service associated with the processing of a form has side effects (for example, modification of a database or subscription to a service), the method should be POST

Exercise Resolution, number of units, EC no. and so on with a given PDB ID  Today’s headings Comics  use LWP::Simple; $web = &get( $url );

Exercise hints $web =~ /Title\s* \s*[^>]*>\s*([^\n]+)/

Javascript – a case study

A review of dirtycomi Encoding (Big5, GB2312, UTF-8) Retrieve HTML code with GET method Traverse multiple pages Trace Javascript code and re-implement it in Perl Completely pretend itself as a human + browser