Skip to main content

Introduction to HTML

HTML Introduction

HTML Introduction

HTML is the standard markup language for creating webpages.


What is HTML?

  • HTML stands for Hyper Text Markup Language.
  • HTML describe the structure of a webpage.
  • HTML consists of series of elements.
  • HTML elements tell the browsers how to diplay the content.
  • HTML element label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.

A simple HTML Document

Example


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My first heading</h1>
<p>My first paragraph.</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 body, and is a container for all the visible contents, such as heading, paragraph, images, hyperlinks, list, tables etc.

  • The <h1> element defines a large heading.

  • The <p> element defines a paragraph.


What is an HTML element?

An HTML element is defined by a start tag, some content, and an end tag:

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

The HTML element is everything from the start tag to the end tag:

<h1>My First Heading </h1>

<p>My First paragraph </p>

Start tag Element content End tag
<h1> My first heading </h1>
<p> My first paragraph </p>
<br> none none

Note: Some HTML elements have no content (like the <br> element).
These elements are called empty elements. Empty element do not have an end tag!

Thanks for visit!!!

Comments

Popular posts from this blog

Java programming language.

Hi, If you want to know about Java language then it is right place for you. Some points about Java language.  It is developed by James Gosling at sun microsystem.  It is release in 1995 as a Core. It is a general purpose programming language. It is like c ++ but with advanced and simplified features. Concurrently execute many statement. It is object oriented programming language.  It is platform independent. Installation process.                    Download JDK Mac OS ~ JDK version 11. WINDOWS ~ 32 Bits JDK version 8.                    ~ 64 Bits JDK version 11. Wants to download JDK click here .  Download Eclipse for easy programming😊😊. Download eclipse  click here .  Data types in java?  There is two type of data types in java primitive data types and non primitive data types. Firstly we talk about primitive data ty...

Why should we learn Python ? | Python learning.

| Python Python is high level programming language, by the use of python we create complex computer programs. Python is also known as interpreted language. |  Python used in various fields     Python can be used in different ways such as: Software developers Data scientists Data Analysts Hackers Bankers Engineers Designers Doctors Scientists, etc. | Why Python is known as Python? Python is named after a comic series. Guido Van Rossum is the creator of Python. Python is an easy programming language, using python the complex programs can be written.   |  Advantages of Python Python can be used online, offline. A nd Python can be used in Smaller or big projects. Python is an Interpreter language, where Programs can be executed directly without complier.   |  Applications of Python Web application. Mathematical Computations. Graphical User Interface. And may more.....   Thanks for visit!!!

Difference between HTML, CSS and Java Script

Difference between HTML, CSS and Java Script HTML/XHTML HTML (HyperText Markup Langage) is the language used to create web page documents. The updated version, XHTML (eXtensible HTML) is essentially the same language with stricter syntax rules.It is common to see HTML and XHTML referred to collectively as (X)HTML, as (X)HTML is not a programming language; it is a markup language, which means it is a system for identifying and describing the various components of a document such as headings, paragraphs, and lists. You don’t need programming skills—only patience and common sense—to write (X)HTML. Everyone involved with the Web needs a basic understanding of how HTML works. The best way to learn is to write out some pages by hand, If you end up working in web pr...