html - puc-riomelissa/web/20162-docs/inf1802-03a-html.pdf · • •responsive website basics: code...

33
HTML INF1802 Profa. Melissa Lemos

Upload: others

Post on 11-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

HTML

INF1802

Profa. Melissa Lemos

Page 2: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Outline

• HTML – The language

• Hello World

• Main tags

Page 3: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Reference

• W3Schools• http://www.w3schools.com/html/

• Coursera• www.coursera.org

• Responsive Website Basics: Code with HTML, CSS, and JavaScript

• University of London

• Prof. Dr Matthew Yee-King

Page 4: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Client-Server ModelClient-Server Model

Page 5: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King
Page 6: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

What most people see? The rendered page.

What programmers see? The source code.

WEB PAGE

Page 7: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King
Page 8: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King
Page 9: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

How to display contents on a web page?

How to make that content look good?

How to make that content interactive?

Page 10: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

HTMLPage Structure

CSSPage Appearance

JavascriptPage Interactivity

Technologies

Page 11: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

HTMLPage Structure

CSSPage Appearance

JavascriptPage Interactivity

Technologies

Page 12: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Architecture

Page 13: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Our Focus in this module: HTML

Page 14: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

HTML

• Hyper Text Markup Language

• Text file containing small markup tags

• .html or .htm file extension

Page 15: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Versions

Page 16: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

• https://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html

• Tim Berners-Lee – 26 years ago

Page 17: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

The development environment

• Text files

• Use a plain text editor• TextWrangler (Mac)

• Notepad++ (PC)

• Sublime Text ( OSX, Windows, Linux )

Page 18: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Browser

• To be able to view our web page we need to use a browser

• Current the most widely-used browser is Google Chrome.

• Pay attention ! There is no uniformity across browsers

Page 19: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

• Developer tools.

• Source code

Page 20: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

The Structure

Page 21: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

“Hello World !”

Page 22: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Tags H1, H2, P

Page 23: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Head

Title

Page 24: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King
Page 25: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Link

Tag A

Page 26: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Navegation Bar

Tag HR

Page 27: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Images

Tag IMG

Page 28: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Computer code

Page 29: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Comments

Page 30: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Div defines a section in a document.

It is block level = starts on a new line and takes up the full width available.

It is often used as a container for other HTML elements.

Page 31: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Span defines a section in a document (inline).

An inline element does not start on a new line and only takes up as much width as necessary.

It is often used as a container for some text..

Page 32: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King

Tables

Page 33: HTML - PUC-Riomelissa/WEB/20162-docs/INF1802-03a-HTML.pdf · • •Responsive Website Basics: Code with HTML, CSS, and JavaScript •University of London •Prof. Dr Matthew Yee-King