Creating a Basic HTML Page

0
Share

Build Our First Web Page

  • Now we start making a webpage by creating a file named index.html
  • Index.html is a special file name which is presented where the website root address is typed.

A Basic HTML Page

<!Doctype html> --It specifies this is a html5 document 
<html>  --Root element of an html page/document.
<head> --it contain metadata of the document(Metadata-information about the data)
<title>First webpage</title> --It define title of the document.
</head> -- Heading closing tags.
<body> -- This is the main body of the html doc.
<h1>his is a heading tag<h1> --Heading tag.
<p>This is a paragraph</p> -- This is a paragraph tag.
</body> --Body closing tag.
</html> --HTML closing tag.

A tag is like a container that have content or tags.

Important Notes

  • Head & body tags are the children of HTMl tag.
  • Some html tags have no content .This is called empty tags example – <br>(break tag).
  • Every element have both opening and closing tags with content in between opening and closing tags.
  • HTML is the parent of Head & body tag in webpage.
  • We can used (.htm or .html ) as an extension for creating html document.

Comments in HTML Documents

Comments are basically used in real life project for commenting codes.
Comments in html are used to mark text which is not showing the output to the user.
It used for better understanding purpose.
Example
<!----Html content----->

Case Sensitive

  • HTML is a case sensitive language.
  • it means <P> and <p> both tags are same meaning.
  • But we always prefer to use small case.
  • To learn all basic tags that are used in html Click Here

Read more Post

  • What are the List of CSS3 New Features ?
    CSS3 is the latest version of the normal CSS . CSS3 adds several new styling features and improvements to enhance the web presentation capabilities. Text Effect in...
  • CSS Basic Property
    What is CSS ? CSS stands for Cascading Style Sheets. CSS basically used in designing the web tags & pages. CSS is the most popular used...
  • Java Program to swap two number use 3rd variable
    In this program, you’ll learn to Program to swap 2 number with 3rd variable in Java. After write the code, the final output is displayed on...
  • Java program to multiply two floating point number
    In this program, you’ll learn to Program to multiply two floating point number in Java. After write the code, the final output is displayed on the...
  • Java Program to find the ASCII value of a character
    In this program, you’ll learn to Program to find the ASCII value of a character in Java. After write the code, the final output is displayed...
  • Java Program to calculate quotient & reminder
    In this program, you’ll learn to Given Number is even or odd in Java. After write the code, the final output is displayed on the screen....

Subscribe

Sign up for our newsletter and stay up to date

*
%d bloggers like this: