Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

HTML: stands for Hypertext Markup Language, it is a standard markup language used to create web pages.

A simple example of HTML code

<!DOCTYPE html>
<html>
<head>
<title>LEARNSIMPLI</title>
</head>
<body>

<h1>www.learnsimpli.com</h1>
<p>Learnsimpli is a free online tutorial website, various courses are free to learn in your free time</p>

</body>
</html>

Explanation:

  • The <!DOCTYPE html> defines this document to be HTML5
  • The <html>  is the root element of an HTML page
  • The <head> contains meta-information about the document
  • The <title>  specifies a title for the document
  • The <body>  contains the visible page content
  • The <h1> defines a large heading
  • The <p> defines a paragraph

HTML TAGS: are the elements which are enclosed within angle brackets <>

<tagname>matter</tagname>

Tags are written in pairs start and end  ex: <p> </p> end tag is written with a forward slash

How and where to run or execute the HTML code?

you can write HTML code in any text editor and save it with an extension .html and execute the saved file in any browser.

simple example of html how to run html code

What is the version of HTML?

VERSIONYEAR
HTML1991
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML2000
HTML520014

 

One thought on “Introduction to HTML

Comments are closed.