Top Banner
Made by Deepak upadhyay
13

HTML(hyper text markup language)

Aug 14, 2015

Download

Education

Deepak Upadhyay
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: HTML(hyper text markup language)

Made by Deepak upadhyay

Page 2: HTML(hyper text markup language)

HTML• HTML stands

for Hypertext Markup Language. Developed by scientist Tim Berners-Lee in 1990, HTML is the "hidden" code that helps us communicate with others on the World Wide Web (WWW).

Page 3: HTML(hyper text markup language)

Elements and tags

• HTML is composed by a set of elements that are the basis of its structure. Elements are designed to  give special information that will be used to compute their final representation. This means that where a tag is defined in the HTML code, something will happen in the representation of that document, that may be visual or not.

Page 4: HTML(hyper text markup language)

ATTRIBUTES

Attributes give certain characteristics to an element (e.g., height, color, relationship, etc.), sometimes very important, that will finally set how it must be interpreted.

Page 5: HTML(hyper text markup language)

Examples of html program

Code:

Result:

code result<!DOCTYPE html><html><body>

<h1>introduction</h1>

<p>deepak .</p>

</body></html>

introductiondeepak .

Page 6: HTML(hyper text markup language)

Example of html program inserting an image

<!DOCTYPE html><html><body>

<h2>Spectacular Mountains</h2><img src="pic_mountain.jpg" alt="Mountain View" style="width:304px;height:228px">

</body></html>

Spectacular Mountains

CODE RESULT

Page 7: HTML(hyper text markup language)

Examples of html program Width and Height or Style C

ode:

Result:

code<!DOCTYPE html><html><head><style>img { width:100%;}</style></head>

<body>

<p>It is better to use the style attribute (instead of the width and height attributes), </p>

<img src="html5.gif" alt="HTML5 Icon" style="width:128px;height:128px"><img src="html5.gif" alt="HTML5 Icon" width="128" height="128">

</body></html>

Page 8: HTML(hyper text markup language)

Examples of html program Width and Height or Style C

ode:

Result:

result

It is better to use the style attribute (instead of the width and height attributes)

Page 9: HTML(hyper text markup language)

Creating tables

CODE<!DOCTYPE html><html><body>

<table style="width:100%"> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> <tr> <td>John</td> <td>Doe</td> <td>80</td> </tr></table>

</body></html>

Page 10: HTML(hyper text markup language)

Creating tables

result

Jill Smith 50

Eve Jackson 94

John Doe 80

Page 11: HTML(hyper text markup language)

Creating tables

CODE<!DOCTYPE html><html><body>

<p>The hr tag defines a horizontal rule:</p><hr><p>This is a paragraph.</p><hr><p>This is a paragraph.</p><hr><p>This is a paragraph.</p>

</body></html>

Page 12: HTML(hyper text markup language)

Creating tables

The hr tag defines a horizontal rule:

This is a paragraph.

This is a paragraph.

This is a paragraph.

RESULT

Page 13: HTML(hyper text markup language)

Made by Deepak upadhyay