Media, Tables and Links. Kanida Sinmai

Similar documents
HTML Text Formatting. HTML Session 2 2

HTML, beyond the basics

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

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

HTML Elements. HTML documents are made up by HTML elements. <tagname>content</tagname>

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

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

Bridges To Computing

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Fundamentals of Web Technologies. Agenda: HTML Links 5/22/2017. HTML Links - Hyperlinks HTML Lists

HTML/XML. XHTML Authoring

HTML - Hyper Text Markup Language Programming

HTML (Hypertext Mark-up language) Basic Coding

P a g e 1 HTML. VISIT for old papers, practical files samples. This file is for reference purpose only.

CITS1231 Midterm Test (A total of 45 marks)

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Web Development & Design Foundations with XHTML. Chapter 4 Key Concepts

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

Web Development & Design Foundations with HTML5

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

IMY 110 Theme 7 HTML Tables

HTML Images - The <img> Tag and the Src Attribute

CSS means Cascading Style Sheets. It is used to style HTML documents.

HTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.

Web Designing HTML5 NOTES

Chapter 3 HTML Multimedia and Inputs

Final Exam Study Guide

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Web Development & Design Foundations with HTML5

Creating Web Pages. Getting Started

HTML5: MULTIMEDIA. Multimedia. Multimedia Formats. Common Video Formats

Adobe Dreamweaver CS5/6: Learning the Tools

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

HTML HTML5. DOM(Document Object Model) CSS CSS

More HTML. Images and links. Tables and lists. <h1>running in the family</h1> <h2>tonight 9pm BBC One</h2>

Lab 4 CSS CISC1600, Spring 2012

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Adobe Dreamweaver CC Tutorial

HTML Hyperlinks (Links)

Introduction to Computer Science (I1100) Internet. Chapter 7

Page Content. Inserting Text To add text to your document, you can type the text directly or use Cut or Copy and Paste or Paste Special.

More HTML. Graphics. Graphic Format

Chapter 5: The Box Model, Links, Lists and Tables

CSS Cascading Style Sheets

Chapter 4 Notes. Creating Tables in a Website

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

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

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

With HTML you can create your own Web site. This tutorial teaches you everything about HTML.

Introducing Web Tables

Hyper Text Markup Language HTML: A Tutorial

Web Recruitment Module Customisation

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

HTML. Example. HTML is the standard markup language for creating Web pages.

SliceAndDice Online Manual

CSS Weebly! td{ padding:20px}

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Cascading Style Sheets CSCI 311

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Flash Ads. Tracking Clicks with Flash Clicks using the ClickTAG

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Parashar Technologies HTML Lecture Notes-4

Dazzle the Web with Dynamic Dreamweaver, Part II

The most important layout aspects that can be done with tables are:

c122sep2214.notebook September 22, 2014

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

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.

Using Dreamweaver CS6

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

Module 2 (VI): CSS [Part 3]

255, 255, 0 0, 255, 255 XHTML:

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

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

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

Website Development with HTML5, CSS and Bootstrap

What is an HTML File? HTML Tags

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

DAY 4. Coding External Style Sheets

Chapter 5 Images. Presented by Thomas Powell. Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A.

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Slightly more advanced HTML

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

NCR Customer Connect Working with Templates: ADVANCED

Programming Languages

Html basics Course Outline

STD 7 th Paper 1 FA 4

Technical Communication A Practical Approach: Chapter 11: Web Pages and

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

CSS MOCK TEST CSS MOCK TEST III

MULTIMEDIA WEB DESIGN CLASS NOTES

Project 1: Creating a Web Site from Scratch. Skills and Tools: Use Expression Web tools to create a Web site

Brief Intro to HTML. CITS3403 Agile Web Development. 2018, Semester 1

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

Designing for Web Using Markup Language and Style Sheets

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Chapter 6: CSS Layouts

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

Transcription:

Media, Tables and Links Kanida Sinmai ksinmai@hotmail.com http://mis.csit.sci.tsu.ac.th/kanida

Images GIF JPG PNG

GIF Graphic Interchange Format Maximum number of 256 colors Can be Animated Transparency : allow one color Interlaced : low resolution to higher from blur, low-detail to successive layer

JPG JPEG (Joint Photographic Expert Group) Unlimited colors Compression : more compress, more degrade image 0% compression 80% compression

PNG PNG (Portable Network Graphics) Without copyright limitation (that found in GIF) Vary in color: PNG-8 (256 colors) PNG-24 (millions colors) Transparency PNG-24 - file size is larger than JPG PNG-8 - file size is lower compared with GIF

Images In HTML, images are defined with the <img> tag. The <img> tag is empty, it contains attributes only, and does not have a closing tag. The src attribute specifies the URL (web address) of the image: <img src="url" alt="some_text /> e.g. <img src="wrongname.gif" alt="html5 Icon /> <img src="html5.gif" alt="html5 Icon" width="128" height="128 />

Video <!DOCTYPE html> <html> <body> <video width="400" controls> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <p> Video courtesy of <a href="https://www.bigbuckbunny.org/" target="_blank">big Buck Bunny</a>. </p> </body> </html>

Audio <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>

YouTube <iframe width="420" height="315" src="https://www.youtube.com/embed/xgsy3_czz8k"> </iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/xgsy3_czz8k?autoplay=1"> </iframe>

Tables Tables are defined with the <table> tag. Tables are divided into table rows with the tag. Table rows are divided into table data with the <td> tag. A table row can also be divided into table headings with the <th> tag.

Tables <table style="width:100%"> <td>jill</td> <td>smith</td> <td>50</td> <td>eve</td> <td>jackson</td> <td>94</td> <td>john</td> <td>doe</td> <td>80</td> </table>

Table border attribute <table border="1" style="width:100%"> <td>jill</td> <td>smith</td> <td>50</td> <td>eve</td> <td>jackson</td> <td>94</td> <td>john</td> <td>doe</td> <td>80</td> </table>

Table border style <html> <head> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } </style> </head> <body>

Table headings <table style="width:100%"> <th>firstname</th> <th>lastname</th> <th>points</th> <td>eve</td> <td>jackson</td> <td>94</td> </table>

Table - colspan <h2>cell that spans two columns:</h2> <table style="width:100%"> <th>name</th> <th colspan="2">telephone</th> <td>bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </table>

Table - rowspan <table style="width:100%"> <th>name:</th> <td>bill Gates</td> <th rowspan="2">telephone:</th> <td>555 77 854</td> <td>555 77 855</td> </table>

Table - caption <table style="width:100%"> <caption>monthly savings</caption> <th>month</th> <th>savings</th> <td>january</td> <td>$100</td> <td>february</td> <td>$50</td> </table>

Links HTML links are hyperlinks. A hyperlink is a text or an image you can click on, and jump to another document.

Links - Syntax <a href="url">link text</a> url links <a href="http://www.google.com/">visit Google</a> Local links <a href="html_images.asp">html Images</a>

Links target attribute <a href="http://www.google.com/" target="_blank">google!</a>

Links - Colours By default, a link will appear like this (in all browsers): An unvisited link is underlined and blue A visited link is underlined and purple An active link is underlined and red

Links Colours using style <style> a:link {color:green; background-color:transparent; text-decoration:none} a:visited {color:pink; background-color:transparent; text-decoration:none} a:hover {color:red; background-color:transparent; text-decoration:underline} a:active {color:yellow; background-color:transparent; textdecoration:underline} </style>

Links Colours using style <head> <style> ******** </style> </head> <body> <p>you can change the default colors of links</p> <a href="html_images.asp" target="_blank">html Images</a> </body> </html>

Image as Link <a href="default.asp"> <img src="smiley.gif" alt="html tutorial" style="width:42px;height:42px;border:0"> </a>

Link create a bookmark <p><a href="#c4">jump to Chapter 4</a></p> <h2>chapter 1</h2> <p>this chapter explains ba bla bla</p> <h2>chapter 2</h2> <p>this chapter explains ba bla bla</p> <h2>chapter 3</h2> <p>this chapter explains ba bla bla</p> <h2 id="c4">chapter 4</h2> <p>this chapter explains ba bla bla</p>