HTML TERMINOLOGIES
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.
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.
HTML Tags
Sr.No Tag & Description
<!DOCTYPE...>
1
This tag defines the document type and HTML version.
<html>
This tag encloses the complete HTML document and mainly
2 comprises of document header which is represented by
<head>...</head> and document body which is represented by
<body>...</body> tags.
<head>
3 This tag represents the document's header which can keep other
HTML tags like <title>, <link> etc.
<title>
4 The <title> tag is used inside the <head> tag to mention the
document title.
<body>
5 This tag represents the document's body which keeps other HTML
tags like <h1>, <div>, <p> etc.
<h1>
6
This tag represents the heading.
<p>
7
This tag represents a paragraph.
<p> This is paragraph content. </p>
<h1> This is heading content. </h1>
<div> This is division content. </div>
<br /
>
HTML - Lists
<ul> − An unordered list. This will list items using plain bullets.
<ol> − An ordered list. This will use different schemes of numbers to list your items.
<dl> − A definition list. This arranges your items in the same way as they are
arranged in a dictionary.
Attribute is used to define the characteristics of an HTML element and is placed inside the
element's opening tag.
HTML element is defined by a starting tag. If the element contains other content, it ends
with a closing tag. All attributes are made up of two parts − a name and a value
Example: <p align = "left">This is left aligned</p>
Comment is a piece of code which is ignored by any web browser.
Fonts play a very important role in making a website more user friendly and increasing
content readability.
<basefont> tag to set all of your text to the same size, face, and color.
FONTS ATTRIBUTE
Attribute Value Description
color rgb(x,x,x) Not supported in HTML5.
#xxxxxx Specifies the color of text
colorname
face font_family Not supported in HTML5.
Specifies the font of text
size number Not supported in HTML5.
Specifies the size of text
<body> element contains all the contents of an HTML document, such as text, hyperlinks,
images, tables, lists, etc.
BODY ATTRIBUTE
Attribute Value Description
alink color Not supported in HTML5.
Specifies the color of an active link in a document
background URL Not supported in HTML5.
Specifies a background image for a document
bgcolor color Not supported in HTML5.
Specifies the background color of a document
link color Not supported in HTML5.
Specifies the color of unvisited links in a document
text color Not supported in HTML5.
Specifies the color of the text in a document
vlink color Not supported in HTML5.
Specifies the color of visited links in a document