CS7026: Authoring for Digital Media HTML Authoring

Slides:



Advertisements
Similar presentations
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Advertisements

Web Development & Design Foundations with XHTML
Chapter 2 HTML Basics Key Concepts
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Links and Comments.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
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.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
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.
Kevin Murphy Lists, Links and Anchors Masters Project CS 490.
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
HTML (HyperText Markup Language)
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Getting Started with HTML Please use speaker notes for additional information!
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Essentials of HTML Class 4 Instructor: Jeanne Hart
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
XHTML Hyperlinks. Creating Links to Other Web Pages A link, or hyperlink, is a specially formatted Web page object that the user can click to open a different.
HTML 58.51A LINKING & LISTS Linking to local files name of destination.... anchor tag HREF attribute. This attribute identifies the location of the link.
Essentials of HTML Class 3 Instructor: Jeanne Hart
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Links HTML uses a hyperlink to another document on the Web.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2- part 2 Key Concepts 1 Copyright © Terry Felke-Morris.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
>> HTML: Tags – Hyperlink, Media, Lists
Chapter 8 Introduction to HTML and Applets
HTML Basics.
CS7026: Authoring for Digital Media HTML Authoring
Web Development & Design Foundations with HTML5 8th Edition
Marking Up with XHTML Tags describe how a web page should look
Links and Comments in HTML5
ET710 What are Hyperlinks? A hyperlink, or hot link, is a selectable element in an electronic document that serves as an access point to.
Links and Comments.
HTML Lists CS 1150 Fall 2016.
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Introduction to XHTML.
Computers and Scientific Thinking David Reed, Creighton University
CNIT 131 HTML5 – Anchor/Link.
Links and Comments.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
HTML ELEMENTS Ms. Olifer.
Introduction to HTML- Basics
HTML Lists CS 1150 Spring 2017.
Chapter 16 The World Wide Web.
Introduction to HTML.
Links and Comments.
Links and Comments.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Digging in a little deeper
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

CS7026: Authoring for Digital Media HTML Authoring

Before you can link to another page (or resource), you have to know its URL (uniform resource locator). A URL is used to specify addresses on the World Wide Linking Text and Documents Web. It is the fundamental network identification for any resource connected to the web (e.g., hypertext pages, images, video and sound files). You can find the URL for any resource in the Address box (or Location box) of your browser. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Text and Documents URLs have the following format: For example, the URL for TCD's home page is: The protocol specifies how information from the link is transferred. The protocol used for web resources is HyperText Transfer Protocol (HTTP). protocol://hostname/other_information http://www.tcd.ie/ ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Text and Documents The protocol is followed by a colon, two slashes, and then the domain name. The domain name is the computer on which the resource is located. Links to particular files or subdirectories may be further specified after the domain name. Directory names are separated by single forward slashes. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Text and Documents Hyperlinks The <a> tag (called an anchor) is used to define hyperlinks. The <a> tag requires an attribute. You must specify whether you want the enclosed text to: link to someplace (with the <a href = “the URL you want to link to”> tag). be linked to from someplace (with the <a name=“the place in a document you want to link to”> tag). ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Text and Documents Hyperlink to another location The <a> tag with the href attribute and attribute value (the URL you are linking to), and its closing tag, </a>, surround any text that you want to highlight. For example, here you would click on the words ‘click here’ to jump (hyperlink) to the document found at the URL inside the quotes: Please <a href = “http://www.google.com”> click here </a> to search. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking to Other Files and Email You can use the same href attribute to link to email addresses, to other pages of your own Web site, or even to other files on your own computer. This hyperlink points to another file (second.htm) on your own computer. The second.html file is stored in the same directory as the page linking to it: Please <a href=“second.html”>click here</a> to open my second web page. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking to Other Files If the second.html file was stored in another directory (e.g. The links directory) below the directory that your first page is stored in the hyperlink would need to include the directory name too: Please <a href=“links/second.htm”>click here</a> to open my second Web page. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking to Other Files If we now want to link from the second.html back to the original file (which is stored in the directory above it) we would need to include the directory name and an indication that it is above it: Please <a href=“../links.html”>click here</a> to open my second Web page. Similarly if it is two directories above it: Please <a href=“../../second.htm”>click here</a> to open my second Web page. What happens if the directories are on the same level?? ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking to Email You can link to an email address by using the mailto prefix. When you click on the words click here, an email window appears that enables you to type in your message to Mickey Mouse will appear: <a href=“mailto:mickey.mouse@disney.com”> click here to send mail to Mickey.</a> ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Within the Same Page Hyperlinks can be used to point to a specific spot (anchor) in a HTML document, instead of just pointing to an entire document. Remember anchor tags come with two attributes: href and name. The name attribute allows you to name an anchor in your document. You can then link to that anchor using the href attribute. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Text and Documents Linking Within the Same Page (cont.) ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking Within the Same Page Notice how the href attribute points to the location named by the name attribute. The <a href> tag includes the same format you’ve seen before, but also includes the # symbol to separate the filename from the named anchor. The <a> tag with the href attribute is highlighted, but the <a> tag with the name attribute is not. When naming anchors, keep the names short and don’t use spaces (these are not HTML requirements they just make your life easier…) ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Linking to an Anchor in Another Page One more element needed - the addition of the URL. You can link to an anchor on a file in your own Web site. a known anchor in a file on another Web site. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

HTML Comments By the way…<!-- this is how you comment your code in HTML --> Comments are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters. Comments are used to describe and explain complicated code to someone who may have to work on it in the future (including themselves!) ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

HTML Comments They can also provide details about when the code was edited or reviewed. This can be helpful information and act somewhat like a development log of when a site was last worked on. Use them to chat with other developers working on the code. This would likely be done during development as a way to share details with others working on the code at the same time. (If these comments are purely development conversations, it is a best practice to remove them from the code before a site is launched.) ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Comments for Debugging You can use comments to remove sections of the code, but leave them available for later use. This is often done during site testing and debugging. If you have a problem on a site and are not sure what is causing it, you can comment out sections one at a time to quarantine and identify the issue, and then work on a fix for whatever problems you are having. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Bulleted (Unordered) Lists A bullet (usually a solid circle) appears in front of each item. HTML automatically creates the bullet when you use the unordered list tag, <ul>, together with the list item tag, <li>. <ul> <li>first item in the list</li> <li>second item in the list</li> <li>third item in the list</li> </ul> ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Numbered (Ordered) Lists HTML automatically numbers or letters your items for you. Exactly the same as bulleted lists except your use <ol> instead of <ul>: <ol> <li>first item in the list</li> <li>second item in the list</li> <li>third item in the list</li> </ol ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Numbered (Ordered) Lists Like the <ul> tag, HTML has a default style for the list items within the <ol> tag - it will number the items: 1, 2, 3, 4… It will automatically renumber the list items if you add/delete items later. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Ordered Lists - Setting a Start Value If you wish to start your list with a value other than 1 You may need to interrupt a numbered list with some other material Close the first list. Add the additional materials. Start a new list using the list items value attribute to set the beginning number for the new list. ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Ordered Lists - Setting a Start Value <html> <head> <title>Formatting Ordered Lists</title> </head> <body> It’s assessment time! <ol> <li>Turn in your assignment</li> <li>Tick your name off the list</li> </ol> If your name is not on the list contact your tutor directly <li value=“4”>Now you can relax</li> </body> </html> ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Definition Lists The Definition list uses the <dl> tag The <dt> tag is used for definition terms The <dd> tag is used for their definitions <dl> <dt>The definition term</dt> <dd>Is defined below the term</dd> <dt>The second definition term</dt> <dd>Is defined below the second term</dd> </dl> ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.

Creating Lists Nested Lists Simply place one list inside another: <ul> <li>First item</li> <li>Second item</li> <li>first sub-item</li> <li> second sub-item </li> </ul> <li>Third item</li> ©Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017.