HTML Tutorial

Next Page

What is the HyperText

Hypertext is the text that contains other texts inside the text.

Markup Language: It is a language that gives structure to our text documents and makes them more presentable and stands out on GUI. It also includes links, images, table formats, fonts, etc.

HTML uses javascript and CSS to give advanced styling and functionalities to the web application. 

Features:

  • It is easy to understand, easy to implement.
  • HTML is platform-independent.
  • It can work with many images, videos, and SVGs.
  • It is supported by all browsers.
  • It can use JavaScript and CSS.

Drawbacks:

  • We cannot create a dynamic webpage using only HTML.
  • Not very secure in today’s world.

Elements and Tags: 

  • There are pre-defined tags in HTML we used to help the browser read the code and display the content accordingly.
  • <>: this tag defines the opening of a tag.
  • </>: this tag shows the closing of our tag
  • Syntax: <Predefined-Element> </Predefined-Element>
  • Example: <p> there can be some text or other tags inside the tag. <p/>

Example :

<!DOCTYPE html>
<html>
	<head>
		<title>Title of our page</title>
	</head>

	<body>
		<h1>First Heading</h1>
		 <p>paragraph.</p>
	</body>
</html>

Let’s read the document carefully and go into a detailed explanation of every point here.

Attributes

Working

<! DOCTYPE html> 

HTML doctype defines that the form belongs to HTML5.

<html> 

<html> states the beginning of our HTML document. And </html> is  the end of our document.

<head>

The HTML head holds miner information about the document.

<title>

As the name suggests TITLE, the HTML title is our document title.

<body>

The body tag contains all the main contents of our document.

<h1> 

<h1> is a type of heading to our document that goes up to <h5>.

<p> 

P stands for a paragraph here. And </p> is the closing of a paragraph.

Summary:

  • HTML is a Simple Hypertext markup language.
  • HTML is used to create static websites.
  • HTML is very easy to learn and implements.

 

Next Page

Treding Tutorial

Popular Tutorials

to Learn now