Computer Programming. Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering IIT Bombay

Similar documents
HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain:

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

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

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

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

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

Hyper Text Markup Language HTML: A Tutorial

Introduction to Computer Science (I1100) Internet. Chapter 7

What You Will Learn Today

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

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

CSC 121 Computers and Scientific Thinking

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

Working with HTML. must appear at the very beginning of your webpage. starts the first section of your page

A Balanced Introduction to Computer Science, 3/E

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Creating and Building Websites

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Summary 4/5. (contains info about the html)

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

11. HTML5 and Future Web Application

How the Internet Works

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

1.264 Lecture 12. HTML Introduction to FrontPage

Html basics Course Outline

introduction to XHTML

HTML and CSS Lecture 15 COMPSCI111/111G SS 2018

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Part 1: HTML Language HyperText Make-up Language

Chapter 2 Creating and Editing a Web Page

Lesson: 6 Database and DBMS an Introduction. Lesson: 7 HTML Advance and features. Types of Questions

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

Chapter 4 A Hypertext Markup Language Primer

Web Development and Design Foundations with HTML5 8th Edition

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Web Design and Development ACS Chapter 11. Creating Lists 11/16/2017 1

Chapter 4. Introduction to XHTML: Part 1

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

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

Hyper Text Markup Language

FINAL PROJECT - WEBSITE

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Hyper Text Markup Language

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

I-5 Internet Applications

HTML Tags Chart. To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into your web page.

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

</HTML> </HEAD> </BODY> </TITLE> </I> </B> </U> </BLINK> </EM> </FONT> </FONT> </CENTER> </H1> </H2> </H3> </P> </BR> --!>

Computer Programming

Computer Programming

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

Creating Web Pages Using HTML

Computer Programming

I. Crossword. II. Who am I? I am an attribute which specifies a position in the web page where the linked document is to be opened.

This text doesnt uses pre tag so doesnt preserves nextline and spaces.. everything will be printed in the same line.

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

CSC Web Programming. Introduction to HTML

Computer Programming

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

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

CSC Web Technologies, Spring HTML Review

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Introduction to using HTML to design webpages

Computer Programming

ITL Public School Mid Term examination ( )

Cadbury World Themed Web Page

Review Ch. 17 Creating Online Pages and Sites. 2010, 2006 South-Western, Cengage Learning

Web Design Lab. Mrs. AVN College Polytechnic :: Visakhapatnam 1

Tag Name Code Example Browser View. <!--This can be viewed in the HTML part of a document--> <a href=" Visit Our Site</a>

ITNP43: HTML Lecture 3

Computer Programming

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

COMPSCI 111 / 111G An introduction to practical computing

UNIT II Dynamic HTML and web designing

HTML, beyond the basics

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts

Attributes & Images 1 Create a new webpage

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

Computer Programming

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:

HTML Exercise 20 Linking Pictures To Other Documents Or Web Sites

Computer Programming

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:

Intro to html. --- define every element, attribute, and entity along with the rules for their use

Bok, Jong Soon

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

CISC 1400 Discrete Structures

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

Advanced Web Programming C2. Basic Web Technologies

Creating web pages Chapter 5. Structuring contents

Lecturer. Haider M. Habeeb. Second Year, First Course

HTML and CSS. Lecture 14 COMPSCI111/111G S1 2018

HTML Tags Chart. To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into your web page.

Desire2Learn: HTML Basics

Transcription:

Computer Programming Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering Session: Lists, Links, and Images in HTML

Recap Introduced HTML Examined some basic tags

Overview of This Lecture Lists Ordered Unordered Definition Images Hyperlinks Text Images For more Information https://en.wikibooks.org/wiki/hypertext_markup_language

Ordered Lists Numbered List <ol type= x start= n > </ol> x can be 1, I, i, a, A, etc. n has to be a number, defining the starting point (Default is 1). Items <li> </li> <ol type= a start= 4 > <li> </li>. </ol> <li> </li>

Ordered Lists <ol type="i"> <li> while </li> <li> for </li> <li> do...while </li> </ol> i. while ii. for iii. do...while <ol type="a" start="3"> <li> while </li> <li> for </li> <li> do...while </li> </ol> c. while d. for e. do while

Example: Ordered List <html> <head> <title> Topics in C+ +</title> </head> <body> <h1 style="color:red" align="center"> Topics in C++ </h1>.. </body> </html> <ol type="i"> <li> Iterative Solutions </li> <ol type="a"> <li> while </li> <li> for </li> <li> do...while </li> </ol> <li> Functions </li> <ol type="1"> <li> Pass by reference </li> <li> Pass by value </li>

Example: Ordered List <html> <head> <title> Topics in C++ </title> </head> <body> <h1 style="color:red" align="center">topics in C++</h1> <ol type="i"> <li> Iterative Solutions </li> <ol type="a"> <li> while </li> <li> for </li> <li> do...while </li> </ol> <li> Functions </li> <ol type="1"> <li> Pass by reference </li> <li> Pass by value </li> <li> Recursive </li> </ol> </ol> </body> </html>

Unordered Lists Bulleted List <ul type= x > </ul> x can be disc, square, and circle. Default is disc type= x is deprecated in HTML5 Items <li> </li> <ul type= x > <li> </li>. <li> </li> </ul>

Unordered Lists <ul type="square"> <li> while </li> <li> for </li> <li> do...while </li> </ul> while for do while <ul type="circle"> <li> while </li> <li> for </li> <li> do...while </li> </ul> o while o for o do while

Example : Unordered List <html> <head> <title> Unordered Lists </title> </head> <body> <h1 style="color:red" align="center"> Unordered Lists </h1>.. </body> </html> <ul type="disc"> <li> Iterative Solutions </li> <ul type="square"> <li> while </li> <li> for </li> <li> do...while </li> </ul> <li> Functions </li> <ul type="circle"> <li> Pass by reference </li> <li> Pass by value </li>

Example : Unordered List <html> <head> <title> Topics in C++ </title> </head> <body> <h1 style="color:red" align="center">topics in C++ </h1> <ul type="disc"> <li> Iterative Solutions </li> <ul type="square"> <li> while </li> <li> for </li> <li> do...while </li> </ul> <li> Functions </li> <ul type="circle"> <li> Pass by reference </li> <li> Pass by value </li> <li> Recursive </li> </ul> </ul> </body> </html>

Definition List <dl> </dl> Defines definition list <dt> </dt> Defines terms of the list <dd> </dd> Describes each term <dl> <dt> </dt> <dd> </dd> <dd>... </dd> </dl>

Example : Definition List <html> <head> <title> Unordered Lists </title> </head> <body> <h1 style="color:red" align="center"> Unordered Lists </h1>.. </body> <dl> <dt> Iterative Solutions </dt> <dd> while </dd> <dd> for </dd> <dd> do...while </dd> <dt> Functions </dt> <dd> Pass by reference </dd> <dd> Pass by value </dd> <dd> Recursive </dd> </dl>

Example : Definition List <html> <head> <title> Topics in C++ </title> </head> <body> <h1 style="color:red" align="center"> Topics in C++ </h1> <dl> <dt> Iterative Solutions </dt> <dd> while </dd> <dd> for </dd> <dd> do...while </dd> <dt> Functions </dt> <dd> Pass by reference </dd> <dd> Pass by value </dd> <dd> Recursive </dd> </dl> </body> </html>

Hyperlinks <a href= URL > text </a> Defines a hyperlink Could Be a Local or Remote File text Becomes a hot spot <html> <head> <title> Hyperlinks </title> </head> <body> <a href="https://en.wikipedia.org/wiki/html"> Click here for Wiki Article </a> </body> </html>

Example: Hyperlinks <html> <head> <title> Hyperlinks </title> </head> <body> <a href="https://en.wikipedia.org/wiki/html"> Click here for Wiki Article </a> </body> </html> Before Clicking the hyperlink After Clicking the hyperlink

Images <img src= URL alt= Text" style="width:npx;height:mpx;> URL: the filename and extension of image. If Image is not present in the same directory, Mention entire path along with filename Text: Alternate text to be displayed on Mouse hover Npx: Width of the image in pixels Mpx: Height of the image in pixels

Example: Images <html> <head> <title> Images </title> </head> <body> <img src="flower1.jpg" alt="purple flower" style="width:270px;height:199px;"> <br /><br /> <a href="https://commons.wikimedia.org/wiki/file:a_daisy_flower.jpg"> <img src="flower2.jpg" alt= daisy" style="width:200px;height:139px;" border="2"> </a> </body> </html> The 2nd picture is taken from: https://commons.wikimedia.org/wiki/file:a_daisy_flower.jpg

Example: Images <html> <head> <title> Images </title> </head> <body> <img src="flower1.jpg" alt="purple flower" style="width:270px;height:199px;"> <br /><br /> <a href="https://commons.wikimedia.org/wiki/file:a_daisy_flower.jpg"> <img src="flower2.jpg" alt= daisy" style="width:200px;height:139px;" border="2"> </a> </body> </html> The 2nd picture is taken from: https://commons.wikimedia.org/wiki/file:a_daisy_flower.jpg

Summary Lists Ordered Unordered Definition Images Hyperlinks Text Images For more Information https://en.wikibooks.org/wiki/hypertext_markup_language