Introduction to HTML

What is HTML?

HTML is a standard markup language for creating web pages.
  • HTML stands for Hyper Text Markup Language.
  • HTML describes the structure of Web Pages using markup.
  • HTML elements are the building blocks of a Web page.
  • Browsers don't display the HTML tags but use them to render the content of the page.
A simple html document looks something like this:

<!DOCTYPE html>
<html>
      <head>
            <title> My First e-rozgar page</title>
      </head>
      <body>
            <h1>My First Heading</h1>
            <h2>My Second heading</h2>
      </body>
</html>


HTML Elements:

An HTML element usually consists of a start tag and a closing tag.

<tagname> Content goes here .... </tagname>

There are also self-closing tags which can also be used in certain situations. 

<tagname />

For example:

<br />: Break command to break a line and move the cursor/content to a new line.
<img />: image tags are also used as a self-closing tag in HTML.

Each tag can have different attributes which can be used to define the tag properties. For example:

  • Anchor Tag:
              An anchor is such a tag which can be used to define the link to another page/website/URL. It can have different attributes such as href, style, class
  • Image Tag:
              The image tag is such a tag which can be used to insert the image inside a website page. It can also have different attributes such as src, width, height, style, class, alt, title.

You can read more about HTML and HTML Tags from w3schools over here. 

If you need a quick video lecture crash course you can also watch the following video for more guidance:

special thanks to Traversy Media.

Tutorial 1:




No comments:

Post a Comment