MENU

Thursday, 7 April 2022

HTML Introduction

 

HTML Introduction


HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages. A markup language is used to define the text document within tag which defines the structure of web pages. This language is used to annotate (make notes for the computer) text so that a machine can understand it and manipulate text accordingly. Most markup languages (e.g. HTML) are human-readable. The language uses tags to define what manipulation has to be done on the text. 

HTML is a markup language used by the browser to manipulate text, images, and other content, in order to display it in the required format. HTML was created by Tim Berners-Lee in 1991. The first-ever version of HTML was HTML 1.0, but the first standard version was HTML 2.0, published in 1999.

Elements and Tags :

 HTML uses predefined tags and elements which tell the browser how to properly display the content. Remember to include closing tags. If omitted, the browser applies the effect of the opening tag until the end of the page.

HTML page structure : 

The basic structure of an HTML page is laid out below. It contains the essential building-block elements (i.e. doctype declaration, HTML, head, title, and body elements) upon which all web pages are created.



<DOCTYPE! html>: 

This is the document type declaration (not technically a tag). It declares a document as being an HTML document. The doctype declaration is not case-sensitive.

<html>: 

This is called the HTML root element. All other elements are contained within it.

<head>: 

The head tag contains the “behind the scenes” elements for a webpage. Elements within the head aren’t visible on the front-end of a webpage. HTML elements used inside the <head> element include: 

  • <style>
  • <title>
  • <base>
  • <noscript>
  • <script>
  • <meta>
  • <link>
  • <body>:
  •  The body tag is used to enclose all the visible content of a webpage. In other words, the body content is what the browser will show on the front-end.

    An HTML document can be created using any text editor. Save the text file using .html or .htm. Once saved as an HTML document, the file can be opened as a webpage in the browser.


    Example

  • This example illustrates the basic structure of HTML code. <!DOCTYPE html>

  • <html>

    <head>

    <title>Demo Web Page</title>

    </head>

    <body>

    <h1>akashtechviews</h1>

    <p>A computer science portal for Akash</p>

    </body>

    </html>

  • Advantages of HTML:

    • HTML is an easy to learn, easy to apply and it’s totally free you will just need a text editor and a browser.
    • HTML is supported by all the browsers and it is the most friendly search engine.
    • HTML can easily integrate with other languages and easy to develop.
    • It is the basic of all programming languages and the lightest language ever.
    • In HTML the display change frequently depending the window size or the device size make it comfortable to read by the user.

    Disadvantages of HTML:

    • HTML can be used to create only static Web-page, it can not create dynamic web-page.
    • There is Lack of security in HTML.
    • Creating a simple Web-page required so many tags.
    • HTML language is not centralized i.e. all the web-pages that are connected, you have to design them separately else need to use CSS.
    • HTML become complex when you try to create a huge website.

0 comments:

Post a Comment

LATEST

PROGRAMMING LANGUAGES

WEB TECHNOLOGIES

DBMS

C

C++

PREPARATION

LATAST POSTS

Top