LING 408/508: Computational Techniques for Linguists

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

HTML popo.
HTML: HyperText Markup Language Hello World Welcome to the world!
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.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
 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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
 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.
Bayu Priyambadha, S.Kom. for long documents, you can even have links to other locations in that same document  … where ident is a variable for identifying.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Client / Server Web Browser (FireFox,MSIE) Web Server (apache, lighttpd) request file HTTP: the common protocol the client and server use to communicate.
Chapter 2 HTML (Hypertext Markup Language) Part I.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
HTML (HyperText Markup Language)
Understanding HTML Code
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
HTML tags Some popular ones. Paragraph: separated by a single line of white space Line break NOTE: no end tag is used for this tag Headlines ( through.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CIS133: Internet Development Week 2. Agenda  Homework Review  MYSCC  FTP  HTML Code  In-class  Lab / Homework.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
LING 408/508: Programming for Linguists Lecture 9 September 28 th.
HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML & CSS Jan Janoušek.
HTML.
Web Systems & Technologies
CGS 3066: Lecture 2 Web Development and HTML5
What is HTML? Acronym for: HyperText Markup Language
Marking Up with XHTML Tags describe how a web page should look
Semester - Review.
Survey of Computer Science CSCI 110, Spring 2011 Lecture 23 HTML
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
>> HTML: Tables.
Elements of HTML Web Design – Sec 3-2
CGS 3066: Web Programming and Design Spring 2016
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
Style Sheet Create a new CSS called Cameras.CSS TD Web Authoring
Essentials of Web Pages
Computers and Scientific Thinking David Reed, Creighton University
Web Design and Development
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
LING 408/508: Computational Techniques for Linguists
LING 408/508: Computational Techniques for Linguists
Introduction to XHTML Cont:.
Introduction to HTML.
Computer communications
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:

LING 408/508: Computational Techniques for Linguists Lecture 13

Today's Topics Homework 5 Review New topic: start with html5 leading to building your own webserver

Homework 5 Review Reference: https://www.gnu.org/software/gawk/manual/html_node/Regexp.html Answer questions 1,2 and 4 using file hw5data.txt Extra credit! supply your own hw5q5data.txt hw5q6data.txt test files

Homework 5 Review File: hw5data.txt there's one line per question line 3 is left intentionally blank gawk 'NF==4 { code } hw5data.txt'

Homework 5 Review Question 1: fix this code! Line 1 of hw5.data:

Homework 5 Review #5: hw5q5data.txt #6: hw5q6data.txt

Browser Nowadays browsers are very powerful in their own right (can compute locally, not just communicate with a webserver) CSS (Cascading Style Sheets) SVG (Scalable Vector Graphics) - cf. HTML5 canvas Javascript - programming language DOM (Domain Object Model) - programmatic access to documents Websockets - An API to interact with regular programs

HTML HTML: Hypertext Markup Language What is "hypertext"? Web browser: can read and render pages written in HTML currently: HTML5 What is "hypertext"? linked content (Nelson, 1963) nowadays: selected text/images/video can have arbitrary associated actions Hypercard for the Macintosh (1987) World Wide Web (WWW) (1992) World Wide Web Consortium (W3C)

Reference https://webplatform.github.io

Client-side web development HTML: structure of content CSS (cascading style sheets): presentation Javascript scripting language DOM (document object model): hierarchical representation of webpage SVG (scalable vector graphics): 2D graphical objects and methods

Client/server model Web server scripting: cgi-bin: Common Gateway Interface PHP: Personal Home Page JSP: JavaServer Pages etc. web browser: html Javascript SVG etc. http://www.visualbuilder.com/jsp/tutorial/introduction-to-jsp/

HTML First line: Tags: "self-closing" tags: optionally paired: <!DOCTYPE HTML> signifies HTML5 Tags: <tag> … </tag> html head: title, style, javascript definitions etc. body: body of the document h1: heading level 1 (1-6) address: contact information "self-closing" tags: hr: horizontal rule br: line break optional: <br/> optionally paired: <p> .. </p>: paragraph comment: <!-- … --> boilerplate inserted by my emacs editor:

HTML hypertext (link): URL: uniform resource locator <a href=URL>text</a> (text presented in blue) URL: uniform resource locator Examples: http://elmo.sbs.arizona.edu/sandiway/index.html http://nlp.stanford.edu:8080/parser/ https://netid.arizona.edu/newid.php (PHP) http://localhost/perl/test.pl (mod_perl program) Format: protocol://host(:port)/path protocol://host(:port)/path?query protocol = http (hypertext transfer protocol) port = TCP/IP port number

HTML Images: Can embed: <img src=URL> attribute: src (required) value: URL (or filename etc.) (jpg, gif, png supported, see note below) attribute: alt (supposed to be required) value: text attribute: height value: pixels attribute: width attribute: align (not in HTML5) value: top|bottom|middle|left|right Can embed: <a href=URL><img src=URL></a> Note: http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

HTML Lists: list item: <li> … </li> ordered lists: <ol> … </ol> unordered lists: <ul> … </ul> note: can be nested arbitrarily deep

HTML inline styling applied to text elements: style="…; …" font-size: Xpx font-family: name, name … color: name (or hex RGB) e.g. #00CC00 background-color: name (or RGB) text-align: left|right|center note: serif, sans-serif, monospace are generic font families note: X11 color names are okay, http://en.wikipedia.org/wiki/X11_color_names

HTML Other text element style tags: <em> … </em> italics <strong> .. </strong> bold <pre> … </pre> preformatted <tt> … </tt> monospaced

HTML Tables: <table> … </table> <tr> … </tr> table row <th> … </th> table heading element <td> .. </td> table data (one cell) Attributes: border="size" e.g. 1px colspan="number" e.g. 2 (span next two columns) style="…;…" border: width style color also border-left, border-top, border-right, etc. border-width: top right bottom left border-style: top right bottom left e.g. type=solid|dotted|dashed|double|none border-color: top right bottom left border-collapse: collapse|separate padding: size text-align: left|center|right vertical-align: top|middle|bottom width, height e.g. 100px or 100% Newer stuff: <thead> … </thead> <tbody> .. </tbody>

HTML General chunks of html: <div style="…"> … </div> division <span style="…"> … </span> small chunks

Sample webpage

Sample webpage <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title>A webpage</title> </head> <body> <h1>A webpage</h1> <table style="border: 1px solid blue"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </table> <tt><h2>First paragraph</h2></tt> <p> Some text. Some more text. <br> A lot more text is needed to see word-wrap. A <a href="http://google.com">link</a>. <br> <a href="http:google.com"><img width=100 src="https://www.google.com/images/srpr/logo11w.png "></a> </p> <p style="font-family: bank gothic;font-size: 60; color:white;background-color:black"> A second paragraph. <ol> <li>First things first. <ul> <li>One</li><li>Two</li> </ul> </li> <li>Second things second.</li> <li>Third things last.</li> </ol> </p> <hr> <address></address> <!-- hhmts start -->Last modified: Thu Sep 18 17:28:57 MST 2014 <!-- hhmts end --> </body> </html>