HTML Charles Severance https://www.wa4e.com/code/html.zip

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML Hypertext Markup Language Charles Severance
Links and Comments.
Web Structure Create Links Using HTML. 2 Objectives List different types of Web site structures and how to employ them Create element ids to mark specific.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
Creating a Simple Page: HTML Overview
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
CNIT 132 – Week 3 HTML (2). Working with Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down. A.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Web Design 3080 – Week 2 More Fun With Delicious.com Setting up a ‘network’. 1.Go to Delicious.com and sign up for a personal account 2.Once your account.
HTML: Hyptertext Markup Language Doman’s Sections.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Introduction to Dynamic Web Content Dr. Charles Severance
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Developing a Basic Web Site HTML Tutorial 2. Objectives Define links and how to use them. Create element ids to mark specific locations within a document.
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
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Introduction to Dynamic Web Content Dr. Charles Severance
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Introduction to Dynamic Web Content
HTML Basics.
4.01 How Web Pages Work.
PHP Arrays Dr. Charles Severance
Our Technologies Dr. Charles Severance
Cascading Style Sheets
Links and Comments in HTML5
Getting PHP Hosting Dr. Charles Severance
Using JSON Dr. Charles Severance
Internal and External Links
Uppingham Community College
HTTP Parameters and Arrays
Links and Comments.
PHP Arrays Dr. Charles Severance
Creating Links.
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Introduction to XHTML.
Introduction to Web & HTML
Essentials of Web Pages
PHP Namespaces (in progress)
Introduction to Dynamic Web Content
CNIT 131 HTML5 – Anchor/Link.
Using jQuery Dr. Charles Severance
Links and Comments.
Marking Up with XHTML Tags describe how a web page should look
Creating Links.
Links and Comments.
Introduction to World Wide Web
Links and Comments.
HTML Basics Mr. Fazzalari.
Introduction to Dynamic Web Content
HTML Tags and Structure
Creating Links.
Model View Controller (MVC)
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

HTML Charles Severance www.wa4e.com https://www.wa4e.com/code/html.zip Note from Chuck. If you are using these materials, you can remove my name and URL from this replace it with your own, but please retain the CC-BY logo on the first page as well as retain the entire last page when you remix and republish these slides. TO Highlight – go to https://tohtml.com/html/ - paste and then do a "Paste RTF" https://www.wa4e.com/code/html.zip

Time DOM Apache MySql PHP RRC/HTTP SQL Browser Web Server Database Server DOM Apache static files MySql Parse Request Parse Response php code PHP JavaScript RRC/HTTP SQL

HTML A way of marking up text to indicate that some text is different than other text We “tag” portions of the text to communicate meaning <p>You can add a style like <strong>bold</strong> to some text by enclosing it in the <em>appropriate</em> tag.</p>

The Web is Still Evolving Invented in early 1990s Became popular in 1994 Robert Cailliau – co-founder of the World Wide Web https://www.youtube.com/watch?v=x2GylLq59rI

http://www.w3.org/History/1994/WWW/Journals/CACM/screensnap2_24c.gif

HTML has evolved a *lot* over the years - as computers and networks have gotten faster 1996 2007 http://replay.waybackmachine.org/19961022175643/http://www10.yahoo.com/

The Good Old Days <H1>Tacky HTML</H1> Hi there. <p><img src=tiny.png> Browsers tolerate a lot of completely broken HTML. <UL> <LI>List one <LI>List 2 </UL>

World Wide Web Consortium Formed by Tim Berners-Lee of MIT (formerly of CERN) Founded to develop standards around HTML, CSS, XML, etc. Insure that the web was based on open standards rather than proprietary vendor products - a bit like cat herding http://www.w3.org/Consortium/facts

Attributes must be enclosed in quotes. Following the Rules <h1>Tacky HTML</h1> Hi there. <p><img src="tiny.png"> Browsers tolerate a lot of completely broken HTML. </p> <ul> <li>List one</li> <li>List 2</li> </ul> Tags must be lowercase. Attributes must be enclosed in quotes. Tags must be closed.

HTML Documents

Structure of an HTML Document <!DOCTYPE html> <html> <head> metadata.... </head> <body> Page content.... </body> </html> Metadata about the page Displayable content of the page

Special File Names When a URL points to a directory in your web server, it looks for a file with a special name: index.html, index.htm, index.php, etc. While there is a convention, the “default file” is configurable. Usually index.htm or index.html is a safe bet. This only works when viewing through a web server - when viewing from disk, you must view the file.

Multiple Files We can put multiple files in the same directory and then use them in relative links. csev$ ls -l -rw-r--r-- 1 csev staff 618 Dec 18 22:56 index.htm -rw-r--r-- 1 csev staff 883 Dec 18 22:57 images.htm -rw-r--r-- 1 csev staff 679 Dec 18 22:57 tables.htm -rw-r--r-- 1 csev staff 5909 Dec 18 22:57 tiny.png csev$

Whitespace and line wrapping <p>You can add a style like <strong>bold</strong> to some text by enclosing it in the <em>appropriate</em> tag.</p> Whitespace and line wrapping

Tags Have a Beginning and /End... <p>You can add a style like <strong>bold</strong> to some text by enclosing it in the <em>appropriate</em> tag.</p>

A self-closing tag does not need a corresponding end tag. HTML Tag Basics Start tag End tag Tags “mark up” the HTML document. The tags are read and interpreted by the browser but not shown. <h1>Hello World</h1> Attribute <img src="x.png" /> A self-closing tag does not need a corresponding end tag. Self-closing tag

What about < s ? <p>Less than <</p> <p>Greater than ></p> <p>Ampersand &</p> <p>Ampersand inception &</p> <p>Semicolon just works ;</p> <p>Money characters: £ € ¥</p> <p>Math characters: ∑ ∀ ∈</p> <p>Arrows: ← ↑ → ↓</p> <p>The special characters can be in links: <a href="lists.htm"> ♠♣♥♦</a></p>

HTML Comments <!-- Ignore this for now :) --> <p style="border-style: none; position:fixed; bottom: 10px; right: 10px;">Go to the <a href="navdetail.htm">very last page</a>.</p>

HTML Links One of the key things about HTML is making a set of pages and creating “hypertext” links amongst those pages. Links are what make the “web” into a web of interlinked documents. The interlinked nature of the web leads to the “intelligence” that search engines like Google appear to have.

<h1>The First Page</h1> If you like, you can switch to the <a href="http://www.dr-chuck.com/page2.htm"> Second Page</a>. </p> A link is a “hot spot” on the page. It can be text or an image. Often it is visually marked to make it easier to “notice” so as to encourage users to click! “a” is short for “anchor” and “href” is short for “hypertext reference”

<h1>The Second Page</h1> If you like, you can switch back to the <a href="page1.htm"> First Page</a>. </p>

Absolute Reference <a href="http://www.dr-chuck.com/page2.htm">Second Page</a> End tag Start tag Where to go if clicked Clickable Text <a href="page1.htm">First Page</a> Relative Reference

Absolute vs. Relative <a href="http://www.dr-chuck.com/page2.htm">Second Page</a> A hypertext references can be a full URL and refer to some other page anywhere on the Internet. <a href="page1.htm">First Page</a> Or the reference can be a file name that is assumed to be in the same folder as the current document (relative reference).

Images Begin Tag Begin Tag <p> Images can be <img src="tiny.png"> right in the middle of text like a character. And we can even make an image a clickable <a href="lists.htm"><img src="tiny.png"></a> link to another page. </p> Begin Tag Begin Tag

A List ... <ul> <li><p>This pages shows us how lists work</p></li> <li><p>We need to encode <a href="special.htm">certain characters</a> to show them in HTML</p></li> <li><p>We should learn more about <a href="links.htm">Links</a> </p></li> <li><p>We should learn about <a href="images.htm">Images</a> </ul>

Tables <table> <tr> <th>Make</th> <th>Model</th> <th>Mileage</th> </tr> <td>Ford</td><td>Edge</td> <td>10348</td> <td>Pontiac</td><td>Vibe</td><td>73630</td> </table>

Explore Sample Code

Explore Sample Code

Summary HTML has gone through many changes and evolutions. It started clean and simple - then got ugly and nasty - now we are back to a clean and simple approach. A key to modern/clean HTML is that formatting is handled using CSS - Cascading Style Sheets.

Acknowledgements / Contributions These slides are Copyright 2010- Charles R. Severance (www.dr-chuck.com) as part of www.wa4e.com and made available under a Creative Commons Attribution 4.0 License. Please maintain this last slide in all copies of the document to comply with the attribution requirements of the license. If you make a change, feel free to add your name and organization to the list of contributors on this page as you republish the materials. Initial Development: Charles Severance, University of Michigan School of Information Insert new Contributors and Translators here including names and dates Continue new Contributors and Translators here Note from Chuck. Please retain and maintain this page as you remix and republish these materials. Please add any of your own improvements or contributions.