In this course, we will go through general HTML concepts and all mandatory topics for the beginner through which they can learn HTML online, run simple to advanced level programs, and become experts on it.
We will cover step by step topics to guide you entire issues of HTML. Stay tuned with every updated aspect.
Let's start with HTML Basics.
HTML (HyperText Markup Language) is not a programming language. It is a standard Markup Language used to create HTML Web Pages as it comprises of a markup language and a hypertext.
Recommended: A personal piece of advice, buy this book that will help you to get insights into HTML.
The function of a markup language is to define structure whereas a Hyperlink is to define website link. Every HTML page contains elements that are represented by tags. The HTML document is written in the plain text file or editor which is saved with .htm or .html extension.
The HTML file consists of small markup tags, it starts with a start tag and closes with an end tag. The whole content of the HTML file enclosed with the start and end tag.
You can see the below example, it is a simple HTML document to print the text on a web page.
<title> Sample Page of HTML Format </title>
<h1> My First Heading </h1>
<h1> My Second Heading </h1>
<p> My first paragraph. </p>
- The <html> element is root element of HTML web page
- The <head> element contains meta information
- The <title> element specifies title for document
- The <body> element contains visible page content
- The <h1> element defines heading
- The <p> element defines paragraph
HTML Supports all browsers and browsers i.e. IE, Opera, Google Chrome, Safari, Firefox - responsibility to read HTML code and display the result.
<!DOCTYPE> represents document type and helps browsers to display web pages properly.
<title> Welcome Page </title>
Hello Friends, This is my welcome page.
With the above example, you can start your practice and easily understand the concepts of HTML. A beginner can just type all the above code in any editor or notepad and save with .html extension, then run this file in a web browser.
You can see a web page with the title "Welcome Page" and text "Hello Friends, This is my welcome page."
You can easily prepare for HTML Interview Questions by implementing all examples.
Generally, HTML supports all web browsers such as Safari, Internet Explorer, Opera, Google Chrome and Mozilla Firefox.
<html> <head> <title> Welcome Page </title> </head> <body> Hello Friends, This is my welcome page. </body> </html>