HTML
HTML
HTML Overview
HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages.
Hypertext refers to the way in which Web pages (HTML documents) are linked together. Thus, the link available
on a webpage is called Hypertext.
As its name suggests, HTML is a Markup Language which means you use HTML to simply "mark-up" a text
document with tags that tell a Web browser how to structure it to display.
Originally, HTML was developed with the intent of defining the structure of documents like headings, paragraphs,
lists, and so forth to facilitate the sharing of scientific information between researchers.
Now, HTML is being widely used to format web pages with the help of different tags available in HTML language.
What is HTML?
HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
Features of HTML
It is platform-independent.
It is a markup language.
The basic structure of an HTML page is shown below. It contains the essential building-block elements (i.e. doctype
declaration, HTML, head, title, and body elements) upon which all web pages are created.
<!DOCTYPE html> – This is the document type declaration (not technically a tag). It declares a document as
being an HTML document. The doctype declaration is not case-sensitive.
<html> – This is called the HTML root element. All other elements are contained within it.
<head> – The head tag contains the “behind the scenes” elements for a webpage. Elements within the
head aren’t visible on the front end of a webpage. HTML elements used inside the <head> element
include:
<title> – The title is what is displayed on the top of your browser when you visit a website and contains the
title of the webpage that you are viewing.
<body> – The body tag is used to enclose all the visible content of a webpage. In other words, the body
content is what the browser will show on the front end.
What is an HTML Element?
An HTML element is defined by a start tag, some content, and an end tag:
The HTML element is everything from the start tag to the end tag:
1) <!...............> Comment Tag is used to insert Comments in the source code in a HTML document.
2) Heading <h1> to <h6> tags: The HTML <h1> to <h6> tags are used to define HTML headings.
Example:
Attributes for heading tag is Align having a value left, center, right, justify This attribute specifies the
alignment of a heading.
12)List in HTML
In HTML, we can list out the items, subjects or menu in the form of list. HTML gives us
three different types of lists
1. Unordered Lists
2. Ordered Lists
3. Definition Lists
1. Unordered Lists: An Unordered list is a collection of related items that have no special
order or sequence. Unordered list is created by using <ul> tag. Each item in the list is
marked with the bullet. The bullet itself comes in three flavors : squares, discs and
circles.
HTML5 Semantics