LING 408/508: Computational Techniques for Linguists. Lecture 14

Similar documents
HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Html basics Course Outline

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

ICT IGCSE Practical Revision Presentation Web Authoring

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

CSC 121 Computers and Scientific Thinking

What You Will Learn Today

Data Visualization (CIS/DSC 468)

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Data Visualization (DSC 530/CIS )

ICT IGCSE Practical Revision Presentation Web Authoring

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Introduction to WEB PROGRAMMING

HTML and CSS COURSE SYLLABUS

A Balanced Introduction to Computer Science, 3/E

Introduction to using HTML to design webpages

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

CSC Web Programming. Introduction to HTML

Introduction to Web Technologies

Hyper Text Markup Language HTML: A Tutorial

c122sep2214.notebook September 22, 2014

Adding CSS to your HTML

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Zen Garden. CSS Zen Garden

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

CSS: Cascading Style Sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

COMP519: Web Programming Lecture 4: HTML (Part 3)

Programmazione Web a.a. 2017/2018 HTML5

Page Layout Using Tables

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Basic Web Pages with XHTML (and a bit of CSS) CSE 190 M (Web Programming), Spring 2008 University of Washington Reading: Chapter 1, sections

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Bridges To Computing

ITNP43: HTML Lecture 4

By Ryan Stevenson. Guidebook #2 HTML

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Deccansoft Software Services

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

CSS.

Introduction to Computer Science (I1100) Internet. Chapter 7

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Web Development and HTML. Shan-Hung Wu CS, NTHU

11. HTML5 and Future Web Application

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

HTMLnotesS15.notebook. January 25, 2015

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Web Engineering CSS. By Assistant Prof Malik M Ali

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

1 Creating a simple HTML page

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

UNIT II Dynamic HTML and web designing

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Block & Inline Elements

Appendix D CSS Properties and Values

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Assignments (4) Assessment as per Schedule (2)

c122jan2714.notebook January 27, 2014

Certified HTML5 Developer VS-1029

Ministry of Higher Education and Scientific Research

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

CSS. Lecture 16 COMPSCI 111/111G SS 2018

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HYPERTEXT MARKUP LANGUAGE ( HTML )

Website Development with HTML5, CSS and Bootstrap

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Web Design and Development Tutorial 03

Data Visualization (DSC 530/CIS )

CSS Selectors. element selectors. .class selectors. #id selectors

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

FUNDAMENTALS OF WEB DESIGN (405)

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

CSS Lecture 16 COMPSCI 111/111G SS 2018

Intro to html. --- define every element, attribute, and entity along with the rules for their use

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

HTML and CSS: An Introduction

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

Web Programming Week 2 Semester Byron Fisher 2018

CSS Cascading Style Sheets

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Lab Introduction to Cascading Style Sheets

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Creating Web Pages Using HTML

Basic HTML Lecture 14

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Cascading Style Sheets CSCI 311

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

Transcription:

LING 408/508: Computational Techniques for Linguists Lecture 14

Administrivia Homework 5 has been graded

Last Time: Browsers are powerful Who that John knows does he not like? html + javascript + SVG

Client-side web development : 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 browser: html Javascript SVG etc. Web server scripting: cgi-bin: Common Gateway Interface PHP: Personal Home Page JSP: JavaServer Pages etc. http://www.visualbuilder.com/jsp/tutorial/introduction-to-jsp/

boilerplate inserted by my emacs editor: First line: <!DOCTYPE > signifies 5 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: <!-- -->

hypertext (link): <a href=url>text</a> 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 http://localhost/perl/test.pl Format: protocol://host(:port)/path protocol://host(:port)/path?query protocol = http (hypertext transfer protocol) port = TCP/IP port number (text presented in blue) (PHP) (mod_perl program)

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

Images can be embedded inside the file via base64 encoding: <img width="70px" src="data:image/png;base64,ivborw0kggoaaaansuheugaaaiiaaab6cayaaa BzwouJAAAMFmlDQ1BJQ0MgUHJvZmlsZQAASImVVwdUk8kWnr+kEJJQAqFICb0 JUqQLhF4FpIONkAQIJUJCULGjiwquXUSxoqsiCq4FkLViwYII9v5AREVZFws2VN6kg K6vnXfPmX++3Ln3zncnd+bMAKBiz8nLy0FVAcgVFohigv1YSckpLFInUAJagA5owIb DFef5RkdHACjD/d/l/S2ASPvrttJY/zr+X0WNxxdzAUCiIU7jibm5EB8GANfm5okKAC C0Qr3J "> On Ubuntu and MacOS: openssl base64 -in imagefile -out encoded.txt

Lists: e.g. https://www.w3schools.com/html/html_lists.asp list item: <li> </li> ordered lists: <ol> </ol> unordered lists: <ul> </ul> Note: lists can be nested arbitrarily deep

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

Other text element style tags: <em> </em> <strong>.. </strong> <pre> </pre> <tt> </tt> <code> </code> Older style tags: <b> </b> <i> </i> italics bold preformatted monospaced bold italics

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>

General chunks of html: <div style=" " id=" "> </div> <span style=" " id=" "> </span> a division small chunks of inline text (optional) unique identifier id= used to refer to chunk in CSS or DOM

Sample webpage

Sample webpage <!DOCTYPE PUBLIC "-//IETF//DTD //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> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> </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>

Ungraded Homework Exercise Build your own html file. Play with the tags Embed a picture of yourself encoded in base64