You are on page 1of 3

​HTML

HTML ​stands for hyper-text markup language.which 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.​ ​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.

Heading:​​Any document starts with a heading. You can use different sizes for
your headings. HTML also has six levels of headings, which use the elements
<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading,
browser adds one line before and one line after that heading.

Paragraph Tag:​​The <p> tag offers a way to structure your text into different
paragraphs. Each paragraph of text should go in between an opening <p> and
a closing </p>

Line Break:​​Whenever you use the <br /> element, anything following it starts
from the next line. This tag is an example of an empty element, where you do
not need opening and closing tags, as there is nothing to go in between them.

Element Attribute:​​An attribute is used to define the characteristics of an HTML


element and is placed inside the element's opening tag. All attributes are made
up of two parts − a name and a value.

Formatting tags:​​The ability to make text bold , underlined or italicized comes


under the category of formatting tabs.

Meta tags:​​ HTML lets you specify metadata - additional important information
about a document in a variety of ways. The META elements can be used to
include name/value pairs describing properties of the HTML document, such as
author, expiry date, a list of keywords, document author etc.meta tags do not
impact the physical appearance of the HTML document.
● You can use <meta> tag to give information about when last time the
document was updated.
● A <meta> tag can be used to specify a duration after which your web
page will keep refreshing automatically.
● You can use <meta> tag to specify character set used within the
webpage.
Comment:​​Comment is a piece of code which is ignored by any web browser. It
is a good practice to add comments into your HTML code, especially in complex
documents, to indicate sections of a document, and any other notes to anyone
looking at the code. Comments help you and others understand your code and
increases code readability.
HTML comments are placed in between <!-- ... --> tags. So, any content
placed with-in <!-- ... --> tags will be treated as comment and will be
completely ignored by the browser.

Images:​​You can insert any image in your web page by using <img> tag.
Following is the simple syntax to use this tag.​<img src = "Image URL" ...
attributes-list/> ​The <img> tag is an empty tag, which means that, it can
contain only list of attributes and it has no closing tag.

Tables: ​The HTML tables allow web authors to arrange data like text, images,
links, other tables, etc. into rows and columns of cells.
The HTML tables are created using the <table> tag in which the <tr> tag is
used to create table rows and <td> tag is used to create data cells. The
elements under <td> are regular and left aligned by default.The table heading
can be defined using the <th> tag.

● Height and width : to set table width and height


● Colspan and rowspan : to set merge rows or columns
● Cellpadding and cellspacing : to set spacing inside and between table
cells.

Frames​​:​HTML frames are used to divide your browser window into multiple
sections where each section can load a separate HTML document. A collection of
frames in the browser window is known as a frameset. The window is divided
into frames in a similar way the tables are organized: into rows and columns.
To use frames on a page we use <frameset> tag instead of <body> tag. The
<frameset> tag defines, how to divide the window into frames. The
rowsattribute of <frameset> tag defines horizontal frames and cols attribute
defines vertical frames. Each frame is indicated by <frame> tag and it defines
which HTML document shall open into the frame.
Colors :​​ Colors are very important to give a good look and feel to your website.
You can specify colors on page level using <body> tag or you can set colors for
individual tags using ​bgcolor​​ attribute.

Fonts:​​ Fonts play a very important role in making a website more user friendly
and increasing content readability. Font face and color depends entirely on the
computer and browser that is being used to view your page but you can use
HTML <font> tag to add style, size, and color to the text on your website. You
can use a <basefont> tag to set all of your text to the same size, face, and
color.The font tag is having three attributes called size and color to customize
your fonts.

Forms: ​HTML Forms are required, when you want to collect some data from the
site visitor. For example, during user registration you would like to collect
information such as name, email address, credit card, etc.
A form will take input from the site visitor and then will post it to a back-end
application such as CGI, ASP Script or PHP script etc. The back-end application
will perform required processing on the passed data based on defined business
logic inside the application.There are various form elements available like text
fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.

You might also like