Introduction To Web and HTML

Introduction To Web and HTML

Web consists of billions of clients and servers connected through wires and wireless networks. The client using web browser send request to the server. The web server receives the request, find the resources and return the response to the browser.

Client-server-model.png

What is web server

Web server is a program which process the network requests of clients and serve them response.

What is HTML

HTML stands for Hypertext Markup Language which is mainly user for creating web pages. HTML is most basic building block; it gives structure to web page.

A Simple HTML Document

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>Heading 1</h1>
    <p>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Alias, eaque.
    </p>
  </body>
</html>

Example Explained

  • The <!DOCTYPE html> declaration defines that this document is an HTML5 document

  • The <html> element is the root element of an HTML page

  • The <head> element contains meta information about the HTML page

  • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)

  • The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

  • The <h1> element defines a large heading

  • The <p> element defines a paragraph

What is HTML Element

A HTML element is defined by start tag, some content and end tag

<tagname> contain goes here… </tagname>