HTML – Introduction

Published by Admin on

Easy to learn with HTML, HTML for Beginners

HTML is the standard markup language for creating web pages for your websites.

What is HTML?

HTML stands for Hyper Text Markup Language, this is the standard markup language for creating Web pages, HTML describes the structure of a Web page, HTML consists of a series of elements, HTML elements tell the browser how to display the content, HTML elements label pieces of content such as “(<h1),<h2>,<h3>) this is a heading”, “(<p>) this is a paragraph”, “(<a href=”#”></a>) this is a link”, “(<b>) bold”, “<br> line Breck”, “(hr) horizontal line” etc…

HTML Document With Example

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

  <h1>This is Heading tag</h1>
  <p>This is Paragraph tag.</p>

</body>
</html>

Output:

Example Explained

<!DOCTYPE html> = declaration defines that this document is an HTML5 document.
<html> = this element is the root element of an HTML page.
<head> = this element contains meta information about the HTML page.
<title> = this element specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab).
<body> = this element defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, bold, underline, images, hyperlinks, tables, lists, etc.
<h1> = this element defines a large heading.
<p> = this element defines a paragraph.

What is an HTML Element?

An HTML element is defined by a start tag (<tagname>), some content (Write some Content), and an end tag (</tagname>).

Syntax

<tagname>Write some Content</tagname>

Example

<h1>This is Heading tag</h1>
<p>This is Paragraph tag.</p>


0 Comments

Leave a Reply

Facebook
Twitter
Pinterest
LinkedIn
Instagram
Follow by Email
YouTube
Telegram
RSS
WhatsApp