>> HTML: Tags – Hyperlink, Media, Lists

Slides:



Advertisements
Similar presentations
HTML: HyperText Markup Language Hello World Welcome to the world!
Advertisements

Chapter 2 HTML Basics Key Concepts
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
LIST- HYPERLINK- IMAGES
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 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.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Chapter 14 Introduction to HTML
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
>> 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.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
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.
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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Links Building a Website Lesson 5. Links There are various ways to use links on a website: Link to other sites Link to other pages on the same site .
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand advanced production methods for web-based digital media.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
INT222 – Internet Fundamentals
CIS 228 The Internet Day 4, 9/8/11 Getting on the Internet.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
CSE 102 Introduction to Web Design and Programming
The Internet Day 4, 9/8/11 Getting on the Internet
HTML Links CS 1150 Spring 2017.
Web Development & Design Foundations with HTML5
HTML CS 4640 Programming Languages for Web Applications
HTML Basics.
Introduction to HTML:.
Internet Exploration: HTML Basics
CGS 3066: Lecture 2 Web Development and HTML5
Web Development & Design Foundations with HTML5 8th Edition
LAB Work 01 MBA 61062: E-Commerce
CSS Layouts: Positioning and Navbars
Organizing Content with Lists and Tables
Links and Comments in HTML5
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
Web Development & Design Foundations with HTML5
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Internet Exploration: HTML Basics
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
CS7026: Authoring for Digital Media HTML Authoring
Hyperlinks, Images and Tables
Web Design and Development
Basic HTML and Embed Codes
CGS 3066: Lecture 2 Web Development and HTML5
HTML ELEMENTS Ms. Olifer.
Introduction to HTML- Basics
Introduction to HTML.
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 2 HTML Basics Key Concepts
COMS 161 Introduction to Computing
Digging in a little deeper
Web Client Side Technologies Raneem Qaddoura
Basics of Web Design Chapter 2 HTML Basics Key Concepts
HTML Links CS 1150 Fall 2016.
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

>> HTML: Tags – Hyperlink, Media, Lists

Web-Based Systems - Misbhauddin Review Each HTML page consists of 5 basic elements Each HTML element has a tag and content (optional for some tags) Each HTML element can be either Paired Element or Void Element HTML Elements can be either Inline or Block level There are different types of HTML Elements Text-based Elements (h1….h6, p, strong, em) Structure-based Elements (div, span, header, footer, nav, section, article, aside) Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Creating Hyperlinks Hyperlinks: ability to link from one page to another Use the anchor tag <a> It is an inline-level element Attribute “href” Tells the link where to go href stands for Hyperlink Reference <a href=“http://www.kfu.edu.sa”>King Faisal University</a> Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Paths in HTML The href attribute in <a> tag specifies the path to another location You can specify different types of paths Paths Relative Absolute Links to other websites with full domain name Links to other pages in the same website Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Relative Path /root /img /css /profile index.html contact.html logo.png bg.png style.css /admin main.php admin.php Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Relative Path Accessing file within the same directory (level) Use the file name only in href <a href=“filename.ext” Accessing file in the directory below the current one Use the name of the directory separated by “/” for each level <a href=“dir/dir2/dir3/file.ext”></a> Accessing file in the directory above the current one Use “..” to go up each level from the current level <a href=“../../file.ext”></a> Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Absolute Path Use the complete path of the page along with the domain name Used when hyperlinking to a page on another website Example http://www.kfu.edu.sa/ar/BannerSystem/Pages/login.aspx <a href’” http://www.kfu.edu.sa/ar/BannerSystem/Pages/login.aspx”>KFU Banner</a> Web-Based Systems - Misbhauddin

Links in HREF Attribute To a page in the same website – Relative Paths To a page in another website – Absolute Paths Send an email Use the text mailto: before the email address <a href=“mailto:mmisbhauddin@kfu.edu.sa”>Send me an email</a> Link to part of the page Remember “Back to Top” Mark part of the page with and id attribute (fragments) Use “#” before the name of each page fragment to go that part of the page <a href=“#top”>Back to Top</a> Web-Based Systems - Misbhauddin

Destination of the Hyperlink The anchor (<a>) tag has another important attribute called target It specifies where a link opens when clicked Options On the same tab target=“_self” On a different window/tab (based on your preference) target=“_blank” Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Try Now Exercise Open the previous exercise done in the class Within the <header> element, create a <nav> element below the h1 tag. Within the <nav> element, add the following links Objective Education Experience Contact Note: for each href, add the value “#” only (we will do that later in the course) Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin IMG Tag Displays Image on the Page It is a Void element (self-closing) It is an Inline Element Attribute “src” Includes the location of the photo or URL Attribute “alt” Displays text when image is not available Used also read the image description for physically challenged (Blind) computer users <img src=“img/kfu.png” alt=“KFU Logo”/> Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Other Media Tags Audio Tag <audio>……..</audio> Adds audio to your page Use src attribute to specify the source of the audio file Video tag <video>……..</video> Adds video to your page Use src attribute to specify the source of the video file to play Note These tags are for information only and out of the scope of this course Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Nesting of Tags Tags also nest Should close them in the right order: The most recently opened tag should be the first one closed Web-Based Systems - Misbhauddin

Web-based Systems | Misbhauddin List Tags HTML provides for three kinds of lists unordered list (list with bullets beside each item) ordered list (list with numbers beside each item) definition list (lists terms and their definitions) Lists can be nested E.g. You can have an ordered list inside a definition list Web-based Systems | Misbhauddin

Web-based Systems | Misbhauddin Unordered List <ul> <li>first item</li> <li>second item</li> <li>third item</li> </ul> first item second item third item TRY NOW Convert the list of links on your page to be as unordered lists Web-based Systems | Misbhauddin

Web-based Systems | Misbhauddin Ordered List <ol> <li>first item</li> <li>second item</li> <li>third item</li> </ol> first item second item third item TRY NOW Add an ordered list to your page Web-based Systems | Misbhauddin

Web-based Systems | Misbhauddin Definition List <dl> <dt>first term</dt> <dd>its definition</dd> <dt>second term</dt> <dt>third term</dt> </dl> first term its definition second term its definition third term its definition TRY NOW Add a definition list to your page Web-based Systems | Misbhauddin

Web-Based Systems - Misbhauddin Summary HTML has different types of Elements Anchor Elements are used for Hyperlinking Pages/ resources from the same website, from different websites and even within the same page Media Elements – Image, Audio, Video List Elements Web-Based Systems - Misbhauddin