HTML tag & tag

HTML <sub> tag

A subscript is a text that appears smaller than a regular text. The <sub>….. </sub> tag is used to create a subscript on a web page.

HTML <sup> tag

A Superscript is a text that appears smaller size above the regular text. The <sup> …… </sup> tag is used to create a subscript on a web page.

Tagged : / / / / / / / / / / /

HTML: Paragraph Tag

The <p> tag is used to create new paragraph on web page. It has a closing tag </p> which is optional because a paragraph automatically ends when we start another paragraph.

<p>……………………………….. </p>

Note:-

  • Number of line in a paragraph depends on the size of web browser window.
  • If we resize the browser windows, the number of lines in this paragraph will change.
Tagged : / / / /

HTML: Heading tag

Heading defines the format and structure of a document. There are six heading tag: –

  • <h1>…………….. </h1>
  • <h2>…………….. </h2>
  • <h3>…………….. </h3>
  • <h4>…………….. </h4>
  • <h5>…………….. </h5>
  • <h6>…………….. </h6>

Any text inside these tags is displayed differently depending on the heading number.

Note : –

  1. <h1>……………. </h1> is largest heading tag and <h6>………… </h6> is smallest.
  2. Heading get their own line on the web pages by starting from a new line.
Tagged : / / / / /

HTML Latest Version

HTML 5 enables to create more interactive websites by embedding audio, video and graphics on the web page.

The purpose of HTML5 is primarily to make it easier for web developers.

New features:

  • Browser
  • Geolocation
  • Offline Application Cache
  • Web Storage
  • Error Handling
  • New Application Programming Interface (API)
  • New Structure

Application Programming Interface

  • 2D drawing on a web page
  • Drag and Drop
  • Timed Medial Playback
  • Browser History Management

New Structure

  • <article>
  • <aside>
  • <header>
  • <details>
  • <dialog>

and more………….

<!DOCTYPE html>
<html>
	<head>
		<title> Hello </title>
	</head>
	<body>
		<h1> Body of Page </h1>
	</body>
</html>


DOCTYPE declaration

<!DOCTYPE html>

It is an instruction to the web browser about what version of HTML the page is written in.

The <!DOCTYPE> declaration is not case sensitive.

Tagged : / / / / / /

HTML

HTML 4.01

HTML 4.01 Strict

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>

HTML 4.01 Transitional

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

HTML 4.01 Frameset

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN” “http://www.w3.org/TR/html4/frameset.dtd”>

<html>
	<head>
		<title> Hello </title>
	</head>
	<body>
		<h1> Body of Page </h1>
	</body>
</html>

Tagged : / /

Title Tag

The contents of the <title> element are either shown in the top of the browser, above where you usually type in the URL of the page you want to visit, or on the tab for that page (if your browser uses tabs to allow you to view multiple pages at the same time). <title> is opening title tag and </title> closing title tag.]

<html>
	<head>
		<title> Hello </title>
	</head>
</html>
Tagged : / /

HTML Tag

<HTML>is a starting tag. To delimit the text inside, add a closing tag by adding a forward slash “/” to the starting tag. Most but not all tags have a closing tag. It is necessary to write the code for an HTML page between <HTML> and <HTML>. This <HTML> tells the browser is ‘this is the start of an HTML document’ and ‘this is the end of an HTML document’.

<html>
……………………..
………………………
………………………….
</html>

Tagged : /

Head Tag

Before the element you will often see a element. This contains information about the page, rather than information that is shown within the main part of the browser. You will usually find a element inside the <head> element. <head> is opening head tag and </head> is closing head tag.</p>

<html>
	<head>
		<title> Hello </title>
	</head>
</html>

Tagged : /