Menu ▼

Previous Next

div :

div represents a section in html page. It can contain text and can contain controls too.

Syntax :

<div>Text & controls here...</div>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    <div style="border: solid 1px #ccc;">

        <p>

            This is my paragraph.

        </p>

        Enter you input here :

        <input type="text" />

    </div>

</body>

</html>


Output :
HTML Tutorial

This is my paragraph.

Enter you input here :
Previous Next




Search dotnetlearners.com