DEV Community

Vinoth Kumar
Vinoth Kumar

Posted on • Edited on

INTRODUCTION TO WEB DESIGNING

WEB APPLICATION : is a software program that runs on a remote server and is accessed through a browser over the internet.Web applications are commonly distributed via a web server.

There are several different tier systems that web applications use to communicate between the web browsers, the client interface, and server data.

*MAJOR COMPONENTS OF WEB APPLICATION : *

  1. Web Server
  2. Application Server
  3. Database

WORKING MODEL OF AN APPLICATION : is a way of developing software where an early version, or prototype, of the product is created and shared with users.

PADDING : is used to create space between the element's content and the element's border. It only affects the content inside the element.

EXAMPLE:

<!DOCTYPE html>
<html>

<head>
    <title>Padding Example</title>

    <style>
        body {
            margin: 0;
            padding: 20px;
            width: 50%;
        }

        h2 {
            color: green;
        }

        .myDiv {
            background-color: lightblue;
            border: 2px solid black;

            /* Applying padding to each side individually */
            padding-top: 80px;
            padding-right: 100px;
            padding-bottom: 50px;
            padding-left: 80px;
        }

        .inner {
            background-color: pink;
            border: 2px solid black;
            width: 70px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>

<body>
    <div class="myDiv">
        <div class="inner">Pad_Box</div>
    </div>
</body>

</html>
Enter fullscreen mode Exit fullscreen mode

MARGIN : used to create space outside an element’s border, helping to separate it from other elements on a webpage. They help in organizing the layout and preventing content from appearing too close together.

EXAMPLE:

<html>
<head>
    <style>
        .box {
            margin: 20px ;
        }
    </style>
</head>
<body>
    <div class="box">
        This box has a margin of 20px vertically.
    </div>
</body>
</html>


Enter fullscreen mode Exit fullscreen mode

TYPES OF ELEMENTS IN HTML:

  1. Block-Level Elements
  2. Inline Elements

BLOCK-LEVEL ELEMENTS: it;s starts on a new line, occupy the full available width, stack vertically, and also can contain both block-level and inline elements.

EXAMPLES FOR BLOCK ELEMENTS:

<div>
<p>
<h1></h2>
<ol><ul>
<table>
<section>
<article>
<nav>
<aside>
<header>
<footer>

INLINE ELEMENT: Don't start on a new line, take only the width of their content, and are used within block-level elements to add or style content.

<span>
<a>
<img>
<strong><b>
<em>
<i>
<br>

Top comments (0)