1 of 8

Web Technologies

Structure of HTML & HTML Elements

Smt.M.Jeevana Sujitha

Assistant Professor

Department of Computer Science and Engineering

SRKR Engineering College, Bhimavaram, A.P. - 534204

2 of 8

OBJECTIVES

The Objectives of this lecture are

  • To learn about structure of HTML.
  • To learn about Elements and Attributes of HTML.

3 of 8

Structure of HTML

<html>

<head>

<title>

</title>

</head>

<body>

</body>

</html

4 of 8

Structure of HTML

Example:

<html>

<head>

<title> sample program</title>

</head>

<body>

Welcome to HTML World

</body>

</html>

5 of 8

Structure of HTML

6 of 8

HTML Elements & Attributes

HTML Elements:

  • Html documents are made up by HTML elements.
  • HTML documents are written with a start tag and end with an end tag.
  • The content is placed in between start and end tag.

Syntax:

<tag name> content </tag name> Example:

<body> welcome to html world </body>

7 of 8

HTML Elements & Attributes

HTML Attributes:

  • Attributes provide an additional information about HTML elements.
  • Attributes are always specified in the start tag.
  • Attributes come in name/value pairs like name=“value”
  • Examples are href,src,alt,width and height etc.

8 of 8

THANK YOU