Top Banner
WEB DEVELOPMENT BASICS KALLURI VINAY REDDY 12MSE1013 VIT CHENNAI by
17

Web development basics2

Jan 11, 2015

Download

Education

this is about the accessing the images with links ,ordered list. unordered list,list in a list.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Web development basics2

WEB DEVELOPMENT BASICS

KALLURI VINAY REDDY

12MSE1013

VIT CHENNAI

by

Page 2: Web development basics2

HTML AND CSS

LECTURE 3

Page 3: Web development basics2

TOPICS

LECTURE 3

1. IMAGES AND LINKS

2. ORDERED LIST

3. UNORDERED LIST

4. LIST INSIDE A LIST

Page 4: Web development basics2

IMAGES WITH LINKS

• Till now we have seen how to add images in the web site.

• But now we will have redirect in to another webpage when we click on that image it is the most and common one we seen in almost every webpages.

Page 5: Web development basics2

IMAGE THAT LEADS TO ANOTHER PAGE

<!DOCTYPE html>

<html>

<head>

<title>

</title>

</head>

<body>

<a href="http://www.codecademy.com">

<img src="http://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg" />

</a>

</body>

</html>

Page 6: Web development basics2

ORDERED LIST

Let's continue learning more HTML. You've already covered a lot

In this course, I will take it to the next level:

a. Making ordered and unordered lists

b. list inside a list

Page 7: Web development basics2

ORDERED LIST

• Ordered list is simply a list that is numbered which will be explained in the example.

• The opening of the ordered list is followed by <ol> </ol>.

• Inside the <ol> the list what ever you want to write can be done in this section.

• It follows as <li> </li> this follows the list sequence and gives number according the order it goes.

• It is very basic that to remembered through out the course

Page 8: Web development basics2

SAMPLE CODE

<!DOCTYPE html>

<html>

<head>

<title>Lists</title>

</head>

<body>

<h1>List of my favorite things</h1>

<ol>

<li>raindrops on roses</li>

<li>whiskas on kittens</li>

<li>call of duty: modern warfare</li>

</ol>

<h2>List of things i find OK!</h2>

<ol>

<li>i like to be a great lover</li>

<li>i like to be a great software engineer</li>

<li>i like to be great man </li>

</ol>

</body>

</html>

Page 9: Web development basics2

UNORDERED LIST

• We just learned how to make ordered lists, but if the order doesn’t matter, what if we just want the bullet points?

• Ans: unordered list

Page 10: Web development basics2

STEPS:

• 1. First, we open our list with an unordered list <ul> tag.

• 2. For each item we wish to add to the list, we use a list item tag <li> with text between them.

• 3.We then tell the browser we are done with our list by calling our closing </ul> tag

Page 11: Web development basics2

SAMPLE CODE

<!DOCTYPE html>

<html>

<head>

<title>Unordered Lists</title>

</head>

<body>

<h1>create random list</h1>

<p>the random list for the unorder</p>

<ul>

<li>m</li>

<li>n</li>

<li>ee</li>

<li>ert</li>

</ul>

</body>

</html>

Page 12: Web development basics2

LIST INSIDE IN LIST

• Little bit of confusion but very interesting in adding them to the ordered list and unordered list.

Page 13: Web development basics2

SAMPLE CODE FOR ORDERED LIST

<!DOCTYPE html>

<html>

<head>

<title>Nested lists</title>

</head>

<body>

<ol>

<li>Dad's interests

<ul>

<li>football</li>

<li>knitting</li>

</ul>

</li>

<li>Mom's interests

<ul>

<li>hating football</li>

<li>skydiving</li>

</ul>

</li> </ol> </body> </html>

Page 14: Web development basics2

SAMPLE CODE FOR UNORDERED LIST

<!DOCTYPE html>

<html>

<head>

<title>Nested lists in unordered list</title>

</head>

<body>

<li>Favorite food</li>

<ol>

<li>chicken</li>

<li>hyderabad dum ki biryani</li>

</ol>

<li>Favorite singers</li>

<ol>

<li>sp balasubramanyam</li>

<li>DSP</li>

</ol>

</ul> </body> </html>

Page 15: Web development basics2

MAKING COMMENTS

<html>

<body>Make me into a comment

<p>But leave me visible to the user!

</p>

<!--Make me into a comment.-->

</body>

</html>

Page 16: Web development basics2

REFERENCES

• www.codecademy.com

Head first web design .

Learning web design-Jennifer Niederst Robbins

www.w3schools.com

Page 17: Web development basics2

Thank you

Any doubts

Email: [email protected]