Introduction to HTML5


Introduction to HTML5

  • HTML stands for HyperText Markup Language.
  • HTML is used for presenting and structuring content on web pages and its standards are maintained by W3C(World wide web Consortium).
  • In general, we use HTML to build a webpage, Hyperlink, Online form, etc.,
  • HTML is case insensitive and platform-independent, the same code will run on a different OS.
About HTML5:
  • HTML5 is the latest version of HTML. Its powerful features help to create a powerful web application and good user experiences across multiple devices.
  • HTML5 reduces the dependency on javascript for the common tasks and an external plugin for media playback.
HTML Element:
  • HTML is a collection of elements used for presenting the content on web browsers.
  • An HTML element is defined by a start tag, some content, and an end tag.
    • <tagname> Content </tagname>
Page structure:
  • An HTML document comprises two major components.
    • Document Declaration
    • Document Scope
  • Document Declaration:
  • A webpage is accessed and viewed on a browser. This page comprises tags that are converted into elements.
  • Every browser has a parser that translates HTML tags into elements.
  • A parser can use several versions of HTML, hence the developer has to define document declaration.
  • Document Scope:
  • A browser window can display multiple documents, Hence every document scope is defined by using the tags.
    • <html> ... </html>
  • This <html></html> element defines the html document and encloses the document completely.
  • It acts as a container for all other HTML elements except <!DOCTYPE>.
  • A HTML document is separated into two sections inside the <html> tag.
        • Head
        • Body
    • Head - contains information about the content of the webpage.
    • Body - contains content of a webpage
    Basic HTML page
    Basic HTML structure


    No comments:

    Post a Comment

    You might also like

    Deploy your Django web app to Azure Web App using App Service - F1 free plan

    In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...