Академический Документы
Профессиональный Документы
Культура Документы
Internet
History and evolution of Internet .Internet &intranet ,Basic concept of www , HTTP,
FTP, URL, domain name, IP address, web browser, web server, webpage, web site,
Portals, email, Usenet, telnet,. Searching, downloading, uploading, files on
internet ,Search Engines, Internet Protocol :TCP/IP, dialup access, direct access,
three levels of Internet connectivity. ISPs, Introduction to DNS, Web Browser
Architecture
------------------------------------------------------------------------------------------------------
----------------------------
History and evolution of Internet
The history of the Internet has its origin in the efforts to interconnect computer
networks that arose from research and development in the United States and
involved international collaboration, particularly with researchers in the United
Kingdom and France.
Computer science was an emerging discipline in the late 1950s that began to
consider time-sharing between computer users and, later, the possibility of
achieving this over wide area networks. Independently, Paul Baran proposed a
distributed network based on data in message blocks in the early 1960s
and Donald Davies conceived of packet switching in 1965 at the National Physics
Laboratory (NPL) in the UK, which became a testbed for research for two
decades.The U.S. Department of Defense awarded contracts in 1969 for the
development of the ARPANET project, directed by Robert Taylor and managed
by Lawrence Roberts. ARPANET adopted the packet switching technology proposed
by Davies and Baran,[7] underpinned by mathematical work in the early 1970s
by Leonard Kleinrock. The network was built by Bolt, Beranek, and Newman.
Early packet switching networks such as the NPL network, ARPANET, Merit
Network, and CYCLADES in the early 1970s researched and provided data
networking. The ARPANET project and international working groups led to the
development of protocols for internetworking, in which multiple separate networks
could be joined into a network of networks, which produced various
standards. Vint Cerf, at Stanford University, and Bob Kahn, at ARPA, published
research in 1973 that evolved into the Transmission Control Protocol (TCP)
and Internet Protocol (IP), the two protocols of the Internet protocol suite. The
design included concepts from the French CYCLADES project directed by Louis
Pouzin.
In the early 1980s the NSF funded national supercomputing centers at several
universities in the United States and provided interconnectivity in 1986 with
the NSFNET project, which created network access to these supercomputer sites
for research and academic organizations in the United States. International
connections to NSFNET, the emergence of architecture such as the Domain Name
System, and the adoption of TCP/IP internationally marked the beginnings of
the Internet. Commercial Internet service providers (ISPs) began to emerge in the
very late 1980s. The ARPANET was decommissioned in 1990. Limited private
connections to parts of the Internet by officially commercial entities emerged in
several American cities by late 1989 and 1990. [9] The NSFNET was decommissioned
in 1995, removing the last restrictions on the use of the Internet to carry
commercial traffic.
Research at CERN in Switzerland by British computer scientist Tim Berners-Lee in
1989-90 resulted in the World Wide Web, linking hypertext documents into an
information system, accessible from any node on the network. [10] Since the mid-
1990s, the Internet has had a revolutionary impact on culture, commerce, and
technology, including the rise of near-instant communication by electronic
mail, instant messaging, voice over Internet Protocol (VoIP) telephone calls, two-
way interactive video calls, and the World Wide Web with its discussion
forums, blogs, social networking, and online shopping sites. Increasing amounts of
data are transmitted at higher and higher speeds over fiber optic
networks operating at 1 Gbit/s, 10 Gbit/s, or more. The Internet's takeover of the
global communication landscape was rapid in historical terms: it only
communicated 1% of the information flowing through two-
way telecommunications networks in the year 1993, 51% by 2000, and more than
97% of the telecommunicated information by 2007Today, the Internet continues to
grow, driven by ever greater amounts of online information, commerce,
entertainment, and social networking. However, the future of the global network
may be shaped by regional differences.
Internet &intranet
Let’s consider these simple definitions:
The Internet is a globally-connected network of computers that enables people to
share information and communicate with each other.
An intranet, on the other hand, is a local or restricted network that enables people
to store, organize, and share information within an organization.
Besides the spelling and pronunciation (which might sound forced and awkward at
times), there are key differences between the two, one of the most important being
that an intranet is a platform that can be bought and sold (or built, in some cases),
while the Internet is the underlying technology that enables its connectivity.
Internet
It is a worldwide/global system of interconnected computer networks. It uses the
standard Internet Protocol (TCP/IP). Every computer in Internet is identified by a
unique IP address. IP Address is a unique set of numbers (such as 110.22.33.114)
which identifies a computer’s location.
A special computer DNS (Domain Name Server) is used to provide a name to the IP
Address so that the user can locate a computer by a name. For example, a DNS
server will resolve a name https://www.tutorialspoint.com to a particular IP
address to uniquely identify the computer on which this website is hosted.
Internet is accessible to every user all over the world.
Intranet
Intranet is the system in which multiple PCs are connected to each other. PCs in
intranet are not available to the world outside the intranet. Usually each
organization has its own Intranet network and members/employees of that
organization can access the computers in their intranet.
S.N
O INTERNET INTRANET
Internet is used to
connect different
network of computers Intranet is owned
1. simultaneously. by private firms.
In intranet,
There are less
In internet, There are number of
4. more number of visitors. visitors.
In this, anyone
Anyone can access can’t access the
6. Internet. Intranet.
Intranet provides
Internet provides limited
7. unlimited information. information.
Internet-Based Services
Some of the basic services available to Internet users are −
Email − A fast, easy, and inexpensive way to communicate with other Internet
users around the world.
Telnet − Allows a user to log into a remote computer as though it were a local
system.
FTP − Allows a user to transfer virtually every kind of file that can be stored on a
computer from one Internet-connected computer to another.
UseNet news − A distributed bulletin board that offers a combination news and
discussion service on thousands of topics.
World Wide Web (WWW) − A hypertext interface to Internet information resources.
What is WWW?
WWW stands for World Wide Web. A technical definition of the World Wide Web is −
All the resources and users on the Internet that are using the Hypertext Transfer
Protocol (HTTP).
A broader definition comes from the organization that Web inventor Tim Berners-
Lee helped found, the World Wide Web Consortium (W3C): The World Wide Web is
the universe of network-accessible information, an embodiment of human
knowledge.
In simple terms, The World Wide Web is a way of exchanging information between
computers on the Internet, tying them together into a vast collection of interactive
multimedia resources.
What is HTTP?
HTTP stands for Hypertext Transfer Protocol. This is the protocol being used to
transfer hypertext documents that makes the World Wide Web possible.
A standard web address such as Yahoo.com is called a URL and here the
prefix http indicates its protocol
What is URL?
URL stands for Uniform Resource Locator, and is used to specify addresses on the
World Wide Web. A URL is the fundamental network identification for any resource
connected to the web (e.g., hypertext pages, images, and sound files).
A URL will have the following format −
protocol://hostname/other_information
The protocol specifies how information is transferred from a link. The protocol used
for web resources is HyperText Transfer Protocol (HTTP). Other protocols
compatible with most web browsers include FTP, telnet, newsgroups, and Gopher.
The protocol is followed by a colon, two slashes, and then the domain name. The
domain name is the computer on which the resource is located.
Links to particular files or subdirectories may be further specified after the domain
name. The directory names are separated by single forward slashes.
What is Website?
Currently you are on our website Tutorialspoint.com which is a collection of
various pages written in HTML markup language. This is a location on the web
where people can find tutorials on latest technologies. Similarly, there are millions
of websites available on the web.
Each page available on the website is called a web page and first page of any
website is called home page for that site.
What is Web Server?
Every Website sits on a computer known as a Web server. This server is always
connected to the internet. Every Web server that is connected to the Internet is
given a unique address made up of a series of four numbers between 0 and 256
separated by periods. For example, 68.178.157.132 or 68.122.35.127.
When you register a Web address, also known as a domain name, such as
tutorialspoint.com you have to specify the IP address of the Web server that will
host the site.
We will see different type of Web servers in a separate chapter.
What is Web Browser?
Web Browsers are software installed on your PC. To access the Web you need a web
browsers, such as Netscape Navigator, Microsoft Internet Explorer or Mozilla
Firefox.
Currently you must be using any sort of Web browser while you are navigating
through my site tutorialspoint.com. On the Web, when you navigate through pages
of information this is commonly known as browsing or surfing.
We will see different type of Web browsers in a separate chapter.
What is SMTP Server?
SMTP stands for Simple Mail Transfer Protocol Server. This server takes care of
delivering emails from one server to another server. When you send an email to an
email address, it is delivered to its recipient by a SMTP Server.
What is ISP?
ISP stands for Internet Service Provider. They are the companies who provide you
service in terms of internet connection to connect to the internet.
You will buy space on a Web Server from any Internet Service Provider. This space
will be used to host your Website.
What is HTML?
HTML stands for Hyper Text Markup Language. This is the language in which we
write web pages for any Website. Even the page you are reading right now is written
in HTML.
This is a subset of Standard Generalized Mark-Up Language (SGML) for electronic
publishing, the specific standard used for the World Wide Web.
What is Hyperlink?
A hyperlink or simply a link is a selectable element in an electronic document that
serves as an access point to other electronic resources. Typically, you click the
hyperlink to access the linked resource. Familiar hyperlinks include buttons, icons,
image maps, and clickable text links.
What is DNS?
DNS stands for Domain Name System. When someone types in your domain name,
www.example.com, your browser will ask the Domain Name System to find the IP
that hosts your site. When you register your domain name, your IP address should
be put in a DNS along with your domain name. Without doing it your domain name
will not be functioning properly.
What is W3C?
W3C stands for World Wide Web Consortium which is an international consortium
of companies involved with the Internet and the Web.
The W3C was founded in 1994 by Tim Berners-Lee, the original architect of the
World Wide Web. The organization's purpose is to develop open standards so that
the Web evolves in a single direction rather than being splintered among competing
factions. The W3C is the chief standards body for HTTP and HTML.
domain name
A domain name is the part of your Internet address that comes after "www". For
example, in Tutorialspoint.com the domain name is tutorialspoint.com.
A domain name becomes your Business Address so care should be taken to select a
domain name. Your domain name should be easy to remember and easy to type.
How to Get a Domain Name?
When you plan to put a site online, this is one of the important steps to buy a
domain name. This is always not necessary that whatever domain name you are
looking that is available so in that case you will have to opt for any other good
domain name.
When you buy a domain name it is registered and when domain names are
registered they are added to a large domain name register, and information about
your site − including your Internet IP address is stored on a DNS server and your
contact information etc. is registered with your registrar.
You can buy domain name from any domain registrar like GoDaddy
Domain Extension Types
There are many types of domain extensions you can choose for your domain name.
This depends on your business nature.
For example, if you are going to register a domain name for education purpose then
you can choose .edu extension.
Below is a reference of the correct usage of certain extensions. But there is no hard
and fast rule to go for any extension. Most commonly used is .com
.com − Stands for company/commercial, but it can be used for any website.
.net − Stands for network and is usually used for a network of sites.
.org − Stands for organization and is supposed to be for non-profit bodies.
.us, .in − They are based on your country names so that you can go for country
specific domain extensions
.biz − A newer extension on the Internet and can be used to indicate that this site
is purely related to business.
.info − Stands for information. This domain name extension can be very useful,
and as a new comer it's doing well.
.tv − Stands for Television and are more appropriate for TV channel sites.
Newer domain extensions such as .biz .info and .us etc. have more name choices
available as many of the popular domains have yet to be taken and most of the
them are available at very nominal prices.
Choosing a Domain Name
The domain name will be your business address. Hence, it is imperative that you
choose the domain name with utmost care.
Many people think it is important to have keywords in a domain. Keywords in the
domain name are usually important, but it usually can be done while keeping the
domain name short, memorable, and free of hyphens.
Using keywords in your domain name gives you a strong competitive advantage
over your competitors. Having your keywords in your domain name can increase
click through rates on search engine listings and paid ads as well as make it easier
to using your keywords in get keyword rich descriptive inbound links.
Avoid buying long and confusing domain names. May people separate the words in
their domain names using dashes or hyphen. In the past the domain name itself
was a significant ranking factor but now with advanced search engines, it is not a
significant factor anymore.
Keep two to three words in your domain name − it will be more memorable. Some of
the most memorable websites do a great job of branding by creating their own
words. Examples include eBay, Yahoo!, Expedia, Slashdot, Fark, Wikipedia,
Google...
You should be able to say it over the telephone once and the other person should
know how to spell it and they should know what you sell. If you can do that AND
work keywords in there, good for you. If you can't, skip the keywords.
What are Sub-Domains
You can divide your domain into many sub domains based on your requirement. If
you are doing multiple business using the same domain, then it would be useful to
have sub-domains for every business. Following are examples of some sub-domains
−
You must have seen google.com as a main domain but google has created many
subdomains based on their business. Some of them are as follows −
adwords.google.com − This sub domain is being used for Google Adwords.
groups.google.com − This sub domain is being used for Google Groups.
images.google.com − This sub domain is being used for Google Images.
This way, you can present your different business sections in a very good
segregated way. It is not a big thing to create a sub-domains. If you already have
registered a domain, then your registrar will provide you a way to create sub-
domains. You may need to talk to your registrar for more detail.
IP address
IP (Internet Protocol) Address is an address of your network hardware. It helps in
connecting your computer to other devices on your network and all over the world.
An IP Address is made up of numbers or characters.
An example of an IP address would be: 506.457.14.512
All devices that are connected to an internet connection have a unique IP address
which means there’s a need of billions of IP addresses. This requirement is fulfilled
by the new IP version IPv6.
There are are two IP versions: IPv4 and IPv6. IPv4 is the older version which has an
space of over 4 billion IP addresses. However, the new IPv6 version can provide up
to trillions of IP addresses to fulfill the need of all internet users and devices.
The IPv4 version used to configure IP addresses in numerical value (numbers)
which may conflict with other IP addresses. That’s why IPv6 adopted the
hexadecimal method to provide unique IP addresses to billions of users in the
world.
Example of an IPv6 IP address would be:
4ggr:1925:5656:7:600:t4tt:tc54:98vt
There are a few types of IP addresses like private IP addresses, public IP addresses,
static IP addresses and dynamic IP addresses. Let’s talk about these different types
of IP addresses one by one:
Private IP Address
A private IP address is the address of your device connected on the home or
business network. If you have a few different devices connected to one ISP (Internet
Service Provider), then all your devices will have a unique private IP address. This
IP address cannot be accessed from devices outside your home or business
network.
For example: 192.168.1.1
Private IP addresses are not unique because there are limited number of devices on
your network.
You can find out the private IP address of your device using a few techniques. If
you are a Windows user, then simply go to the command prompt and enter the
command ipconfig. If you’re a mac users, then you need to enter the following
command ifconfig in your Terminal app
If you are using the internet on a mobile phone, then you can go to your WiFi
settings to find out the IP address. iOS users can find the IP address by clicking on
the ‘i‘ button next to the network they are connected to. Android users can click on
the network name in their WiFi settings, and it will show the IP address.
Public IP Address
Your public IP address is the main IP address to which your home or business
network is connected. This IP address connects you to the world, and it’s unique
for all users.
To find out your public IP address, simply go to SupportAlly site in your browser,
and it will display the public IP, and other browser information.
Static and Dynamic IP Addresses
All private and public IP addresses can be either static or dynamic. IP addresses
that you configure manually and fix them to the network of your device are called
static IP addresses. Static IP addresses cannot change automatically.
The dynamic IP address configures automatically and assign an IP to your network
when you set up the router with internet. This distribution of IP addresses is
managed by Dynamic Host Configuration Protocol (DHCP). DHCP can be your
internet router that assigns an IP address to your network in your home or
business environment.
Webpage
A web page or webpage is a document, commonly written in HTML, that is viewed
in an Internet browser. A web page can be accessed by entering a URL address into
a browser's address bar. A web page may contain text, graphics, and hyperlinks to
other web pages and files.
A web page is often used to provide information to viewers, including pictures or
videos to help illustrate important topics. A web page may also be used as a
method to sell products or services to viewers. Multiple web pages make up
a website, like our Computer Hope website.
When you click a link provided by a search engine, you are accessing a web page.
The Internet consists of millions of web pages, with more being added every day.
How to open a web page
Viewing a web page requires a browser, like Internet Explorer, Edge, Safari, Firefox,
or Chrome. For example, you are reading this web page using a browser. Once in a
browser, you can open a web page by entering the URL in the address bar. For
example, typing "https://www.computerhope.com/esd.htm" (or copying and
pasting) opens the Computer Hope ESD page. If you don't know the URL of the site
you'd like to visit, you can use a search engine to find it.
When was the first web page created?
The first web page was created at CERN by Tim Berners-Lee on August 6, 1991.
You can visit and browse the first website and the first web page at
the info.cern.ch address.
In the example URL above, the web page is "url.htm" and is always the last part of
the URL. For URLs not having an ending of .htm, .html, .php, .cgi, .pl, or
another file extension, the server loads the default index.htm web page in that
directory. For example, on our contact page URL
(https://www.computerhope.com/contact/), there is no web page. In this case, the
default index file loads from the contact/ directory.
Examples of a web page
The page you are reading now is an example of a web page. It comprises several
web technologies, including HTML, CSS, and JavaScript.
Tip
You can view all of the code by viewing the source code of the web page. See: How
to view the HTML source code of a web page.
Although the body of a web page is created using HTML, that HTML code can be
created using an HTML editor and written by a human or generated using server-
side scripts or other scripts. A web page created by a human ends with
a .htm or .html file extension. For example, this page uses "webpage.htm" as its file
name. Pages generated by a script can end in .cgi, .php, .pl, and other extensions.
What are the elements of a web page?
Every web page is different. However, most pages contain some or all of the
elements contained on this web page. Below is an overview of the major elements of
a web page.
The website, blog name, logo, or company name is often in the top-left corner of
each web page. The logo may also include a slogan or brief statement about the site
to give visitors an instant understanding of the site. Also, this section of the web
page is usually a link that may link back to the homepage.
The search allows a visitor to search a website for related information and should
be available on every page.
The navigation bar, or menu for a web page, is often found on the top or left side of
each web page. It should include links to each of the major sections of the website.
Advertisement banners can be shown in different places on a web page and help
pay for the expenses of running a website and company. Ad banners are often
found at the top, left, right, or bottom of a page and may also be included in the
content.
Social share links allow visitors to share your site with other co-workers, friends,
and family on social networking sites.
The breadcrumbs help the user know where they are on the website. They also
provide a way for the user to return to, or explore, other main sections of the
website.
The heading should be included on the top of every web page and should be
created using the <h1> HTML tag.
The opening paragraph is one of the most important paragraphs on the web page
and should help draw the visitor into reading the web page. One way to help draw
the visitors eyes is to include a hero image near the opening paragraph.
Each web page should be broken up into other headings that allow the visitor to
easily skim and find what is most interesting on the page. When creating a web
page these can be done using the <h2> to <h6> HTML tags.
Having a method of allowing a visitor to provide feedback is also a requirement for
most web pages. Giving the visitor links or buttons to click for feedback is a good
step to let you know if a web page is helpful or not.
Additional information and tools such as a button to print the page can also be
helpful for users on most web pages.
The footer should include any other important company or website information and
be included on all web pages to help the visitor continue using the site.
The Copyright and any legal or privacy notice should also be on all web pages. Not
only can this link to relevant legal information it is an indication for most visitors
that they have reached the end of the web page.
Finally, a "back to the top" button or link at the bottom of the page helps the visitor
return to the menu links or other tools.
Tip
If you are designing a web page and want more visitors, we also suggest reading
our web page promotion tips for a full listing of tips to use when creating a web
page.
What can you do on a web page?
On most websites, you read the information contained on the page, and if there are
any interesting hyperlinks, you follow those links to find more information or
perform a task. You can also listen to music, watch videos, shop, communicate,
and much more on many websites.
Tip
If you are bored or looking for other fun web pages to visit, see: What things to do
when bored on the Internet.
Web site
A site or website is a central location of web pages that are related and accessed
by visiting the home page of the website using a browser. For example, the
Computer Hope website address URL (Uniform Resource Locator)
is https://www.computerhope.com. From our home page, you could get access to
any of the web pages (like this one) contained on our website. The image shows
how the Computer Hope website looked in 2011.
How to open a website
To view a website requires a browser (e.g., Internet Explorer, Edge, Safari, Firefox,
or Chrome). For example, you are reading this web page using a browser. Once in a
browser, you can open a website by entering the URL in the address bar. For
example, typing "https://www.computerhope.com" opens the Computer Hope home
page. If you don't know the URL of the website you want to visit, you can use
a search engine to find the website on the Internet.
When was the first website created?
The first website was built at CERN by Tim Berners-Lee and launched on August
6, 1991. Visit and browse the first website.
How many websites are on the Internet?
As of January 2018, depending on which survey or hosting company being
referenced, there are between 1.3 and 1.8 billion websites on the Internet. Many of
these websites are unused or not visited by many people, but the websites still
exist and included in the count.
What is the difference between a website and a web page?
A website refers to a central location that contains more than one web page or a
series of web pages. For example, Computer Hope is considered a website, which
contains thousands of different web pages, including the page you're reading now.
A media sharing website is any website that specializes in allowing visitors to share
one or more types of media. For example, YouTube is a site for sharing video
media. SoundCloud is a site for sharing music. Flickr is a place to share photos.
DeviantArt is a page for sharing art.
Mirror website
A mirror website is a complete duplicate of another website that is used when a
website becomes overloaded. It helps with a website's speed in different parts of the
world. See our mirror definition for further information. Also, although similar, a
mirror site should not be confused with a scraper website or a CDN.
News website
A news website is a site dedicated to giving the latest local or world news. A news
site may also be dedicated to a specific topic. For example, many computer-related
news websites are dedicated to talking about the latest computer and technology
related news.
P2P website and Torrent website
A P2P website and Torrent website are sites created to list available torrents that
can be downloaded using a file-sharing program.
A warez website is similar to a torrent website, except that it stores and hosts
music, video, and software that anyone can download to their computer. When
referring to a warez website, it is describing a site where copyrighted material is
illegally downloaded.
Personal website
A personal website is a site created by an individual that talks about their personal
life, family, life experiences, and maybe contains a résumé. Today, many people are
creating personal websites as a blog or using a social networking website as a place
to store information about themselves.
Personality website
A personality website is any website that covers an individual, such as an artist,
celebrity, musician, author, or any other person. These types of websites are set up
by someone affiliated with the person, such as a publicist, agency, or fan of the
personality.
Review website
A review website is any site that focuses on reviews about a product or service. For
example, Yelp allows consumers to review businesses in their area. Other review
sites may review other things such as movies or products. Also, many e-commerce
sites have reviews from people who've purchased the product they're selling.
School website
A school website is a site created to represent a local school or college. School sites
have an overview of a school and give students and parents a place to log in and
review grades and other school-related information.
Scraper website
A scraper website is a website that is illegally stealing (scraping) another website's
content. Doing this could allow the person to generate advertising revenue if
enough traffic was driven to the scraper website. However, these types of sites are
against all advertisers' TOS (terms of service) and, when caught, they are blocked
by the company providing the advertising. A scraper website should not be
confused with a mirror website, which is a copy of a site set up with permission.
Search engine website
A search engine website is a website dedicated to helping people find information
on the Internet. Google is an example of a search engine website. See our search
engine definition for further information on search engines and related links.
Social networking website
A social networking website connects users with friends, family, celebrities, groups,
and organizations. The service is usually free, on the condition that the website
may collect and use the users information. Facebook and Twitter are examples of a
social networking website. See our social networking definition for other examples
of social networks and further information.
Social news website
A social news website is a site that generates its content from its members and,
once posted, all other members can vote if they enjoyed or liked the story. Reddit is
an example of a social news website that allows everyone to post almost anything.
It is a great place to find things that would most interest you on the Internet.
Webcomic website
A webcomic website is a site that posts a comic strip daily, weekly, or monthly.
Webmail website
A webmail website is a website that a person to view, send, and receive e-mail
without the need for software. An example of a webmail program is Gmail. See
our webmail definition for other examples, information, and related links.
Wiki website
A wiki website is a site that is created using Wiki software, and is often edited and
updated by more than one person.
Portals
Portal is a term, generally synonymous with gateway, for a World Wide Web site
that is or proposes to be a major starting site for users when they get connected to
the Web or that users tend to visit as an anchor site. There are general portals and
specialized or niche portals. Some major general portals include Yahoo, Excite,
Netscape, Lycos, CNET, Microsoft Network, and America Online's AOL.com.
Examples of niche portals include Garden.com (for gardeners), Fool.com (for
investors), and SearchNetworking.com (for network administrators).
A number of large access providers offer portals to the Web for their own users.
Most portals have adopted the Yahoo style of content categories with a text-
intensive, faster loading page that visitors will find easy to use and to return to.
Companies with portal sites have attracted much stock market investor interest
because portals are viewed as able to command large audiences and numbers of
advertising viewers.
Typical services offered by portal sites include a directory of Web sites, a facility to
search for other sites, news, weather information, e-mail, stock quotes, phone and
map information, and sometimes a community forum. Excite is among the first
portals to offer users the ability to create a site that is personalized for individual
interests.
The term portal space is used to mean the total number of major sites competing to
be one of the portals.
2) In fantasy games, science-fiction, and some "New Age" philosophies, a portal is a
gateway to another world of the past, present, or future, or to an expanded
awareness.
3) In 3-D graphics development, portal rendering is a technique that increases the
effect of realism and speeds up presentation.
Usenet
Usenet can be defined as a network where people exchange news. It is used for
several purposes by people and support groups for sharing information. Its' main
purpose is to offer a network where users can post information freely, which is then
distributed. This allows others to access the information easily and as quickly as
possible.
Usenet is regarded as one of the oldest networks. In fact, it was conceived in 1979.
This means that it was implemented before the World Wide Web. The fact that it is
a distributed network means it is not controlled by any single source. It also means
that it remains largely uncensored.In order to access Usenet Newsgroups you will
need Best Usenet Provider. We have done the research for you so it is easy to get
started
Usenet was created by two graduate students of Duke University in North Carolina,
Jim Ellis and Tom Truscott worked on their idea of connecting different computers
to exchange information within the UNIX community, and thus created a network
that allowed the exchange of information and served as a bulletin-board.
It began as a small, restricted communication network between some of the
universities in the United States. It was used for news, trade information and
research results. Over the last 3 decades, Usenet has evolved considerably and has
grown from a simple restricted communication network to a well-structured logical
network connecting hundreds of millions of people and computers to 100,000 and
more newsgroups and millions of articles.
Usenet became popular in university campuses and early Usenet users enjoyed
discussing a broad range of ideas with fellow students and discussed Politics,
Technology, Science, Philosophy, Music, Science Fiction and much more. Students
from the universities would meet in various newsgroups via their computers and
freely voice their opinions, seek advice / consultation, and also interact with other
users from different universities who shared the same interests.
For many years, Usenet was mainly accessed by university students and faculty
and tech-savvy home users just like the internet itself. It provided forums or what
they call newsgroups to discuss several topics that are of interest to users. Just like
message boards, newsgroup users post messages or articles as they are known for
other users to read.
The fact that there are thousands of such newsgroups, it means you are likely to
access nearly any topic you can think about. Some newsgroups have individuals
who act as administrators and moderators. They ensure that content posted is
relevant to the newsgroup topics and eliminate inflammatory content.
What is Usenet Today
Today, Usenet is a frequently updated collection of user-submitted notes /
messages on a variety of subjects that are posted frequently to servers on a
worldwide network. Each of these collections comprising of posted notes is called a
newsgroup. There are hundreds of thousands of newsgroups on the server and it is
possible for any user to create a new one. Most of these newsgroups are hosted on
servers that are connected to the Internet, but these newsgroups can also be
hosted from servers that are not connected to the Internet. Usenet continues to be
an unrestricted, worldwide forum for debate and information exchange.
As new advancements continue to shape the internet world and challenge usenet
as a way of communication, its popularity continues to increase. People require
peer-moderated, uncensored communication, which will keep usenet alive long into
the future.
Usenet's original protocol in the early 1980's was UNIX-to-UNIX Copy (UUCP), but
today it's protocol is Network News Transfer Protocol (NNTP). So this is Usenet.
What is a Newsgroup?
A newsgroup is an active online discussion forum that is easily accessible through
Usenet. Each newsgroup on the server contains discussions about some specific
topic, which is often indicated in the name or title of the newsgroup. Users who are
looking for a particular newsgroup can browse and follow them. Users can also
post or reply to the topics they are interested in, using a newsreader software.
Access to these newsgroups also requires a Usenet subscription. Most of the
Usenet Providers have monthly subscription for $10 USD a month. These are our
choices of Best Usenet Providers.
A newsgroups can be either moderated or unmoderated. In moderated newsgroups,
all posts must be approved by a moderator first if the user wants to become a part
of the discussion. In unmoderated group, there is no restriction of any sort, and
everything posted by users becomes part of the discussion. Some of the
newsgroups also use bots to moderate the content. These bots can automatically
eliminate posts that are deemed as offensive or off topic.
Below are a few examples of active online newsgroups. The first part that is before
the first dot tells users about the primary category or the newsgroup.
politics
binaries.multimedia.comedy
religion
software.testing
physics
binaries.documentaries
Joining and subscribing to a newsgroups on Usenet may sound complicated to
some but it's quite simple and much more secure than other online discussion
platforms on the Internet. In Usenet, it is quite easy to keep your anonymity.
Anyone can join in and once you are part of the newsgroup, you are connected to
the Usenet provider’s server and can easily select the newsgroups that you wish to
subscribe to with just a click on the “Subscribe” button of your newsreader. When
you join the newsgroups, you can visit and post whenever you want or read the
content that is recently shared.
How to Get Started with Usenet
In order to get started with Usenet, you will need four things:
Newshosting is without doubt the most efficient of all Usenet Provider. It offers
great value for money with fast speed, reliable service, a free newsgroup browser,
as well as, a large number of newsgroups (100,000). It also offers classic NNTP
access / a modern web-based newsreader option. Users can also avail a free trial
account of 30 GB for the first 14 days.
Tweaknews is a Usenet provider which offers Usenet access in both block and flat
rate payment options. It’s affordable and a wise choice for the tech-savvy. There are
Usenet providers all over the world. TweakNews – the company is based in the
Netherlands, and it’s an affordable Usenet service that put quality as their prime
goal.
EasyNews is considered to be the best web browser for Usenet and one that is ideal
for beginners. It has a web-based interface that enables thumbnail viewing for
people who are interested in searching with images and video binaries. This
newsreader a large user base and offers the best customer service.
Giganews is another great Usenet provider but is comparative most expensive and
slickest of all providers. It offers a good customer service and comes with a free
bundled newsgroup browser, known as, Mimo. It also has the largest number of
newsgroups (110,000). and offers a free trial of 10 GB to new users.
telnet
A terminal emulation that enables a user to connect to a
remote host or device using a telnet client, usually over port 23. For example,
typing telnet hostname would connect a user to
a hostname named hostname. Telnet enables a user to manage an account or
device remotely. For example, a user may telnet into a computer that hosts
their website to manage his or her files remotely. In the image is an example of a
telnet session. As can be seen from this example, a telnet session is a command
line interface.
Searching,
The most productive way to conduct a search on the internet is through a search
engine. A web search engine is a software system designed to search for
information on the World Wide Web. The search results are generally presented in a
line of results often referred to as search engine results pages (SEROs). The
information may be a mix of web pages, images, and other types of files. Some
search engines also mine data available in databases or open directories.
There are a number of various search engines available and some of them may
seem familiar to you. The top web search engines are Google, Bing, Yahoo,
Ask.com, and AOL.com. For the purpose of this course, we will be searching using
the Google Chrome web browser, and search first with the Google search engine
and then Microsoft’s Bing search engine.
Searching on Chrome
Your supervisor at Rowan Retail asked you to find out what the most popular kids
toys are this year. He wants to have those toys stocked in the store for the
upcoming holiday season. In order for you to find out that information, you turn on
a computer and get ready to conduct a search on the internet.
The first step is to open a Chrome browser by clicking on the desktop icon or the
icon on the computer desktop’s taskbar. Once the browser window is open,
type www.google.com into the address bar on the top of the browser window and
press the Enter (or Return) key on the keyboard.
The browser now displays the large Google search bar. As you begin to enter the
phrase most popular toys of 2017 into the search bar, notice how the search bar
moves to the top of the screen as the words are typed. This movement is normal;
continue to type the phrase.
As the words are typed, the search engine will display a dropdown list of suggested
search options. At this point either continue typing the phrase or select the option
of most popular toys 2017. Selecting a suggestion option is done in two ways; either
by using the mouse to click on the desired option, or by using the down arrow key
on the keyboard to select an option, then pushing the Enter (or Return) key.
The search is now entered and the webpage displays the results of your search.
Notice how the results are displayed. Box #1 is the first page of the search results.
Box #2 is an advertisement targeted to be relevant to the search. The search results
in the list are titled by hyperlinks in a larger font and in a blue color. These links
direct you to a website with information about the search. The advertisements on
the right side are linked to something to buy. When conducting a search for
information, the primary focus is on the list of search results, not the
advertisements.
Read through the search results title and select the one most closely matching the
information you are searching for to give your boss. Click on the results which
seem most relevant to the search. Using these results, you can tell your boss what
the top toys are for the season.
PRACTICE QUESTION
Microsoft Bing Search
Now search in a different search engine—Bing.
The general manager of the Rowen Retail asks you for ideas to improve the store’s
customer service experiences. She wants to be able to hear about customers’
experiences in a timely manner and address any service issues that are discovered.
She would also like to generate ideas for creating delightful experiences for the
store customers. You decide to try searching for ideas on the Bing search engine,
so you turn on a computer and get ready to conduct search on the internet.
The first step is to open a Chrome browser by clicking on the desktop icon or the
icon on the computer desktop’s taskbar. With the browser window now open,
type www.bing.com in the browser’s address bar and press the Enter (or Return)
key. Notice that with Bing, the main web page is always a photograph or picture.
Now that the Bing search page is open, type in your key words, retail customer
service improvement, into the search bar. You see suggestions begin to appear, but
none of them are what you are searching for so keep typing.
Now that you have typed in your full search phrase, push the Enter (or Return)
button or click on the blue magnifying glass to the right of the search box. The
search results will look like this:
This search displays similarity to the Google search display, with one difference. To
the right on the page are suggestions for related searches which you can click on to
search with similar yet different keywords and phrases. Like the Google search, the
first few search results are ads for companies or software related to your search.
These are indicated by the “Ad” label placed before the web address. In order to
discover more results, pull the scroll bar down the page.
Downloading
Usually, when you download a file you will start the download by clicking a link to
that file. Many of our tutorials contain links to files, like this:
If you click the link, your browser should prompt you to select one of two methods
for downloading the file.
Once the download is complete, either the file will be saved to your computer or it
will open in the program you selected. If you have trouble finding the file after
you’ve downloaded it, check out our Finding Your Downloads lesson.
Some browsers don’t always start this download process when you click the link to
a file. In these cases, you can right-click the link, then click Save Link As, then
select a location to download the file.
Uploading
If a site allows uploads, it will have an upload utility to help perform the file
transfer. Each site handles this process differently, but we’ll give some common
examples. Usually, the site will have help pages to walk you through the upload
process.
Many sites have an upload button that opens a dialog box. For example, Facebook
has a camera icon that begins the upload process.
A dialog box will appear, prompting you to select a file. Browse to the location
where your file is stored, select it, then click the Open button. Afterward, a
progress bar tracking the upload process will appear on the page.
Search Engines
A search engine is software, usually accessed on the Internet, that searches
a database of information according to the user's query. The engine provides a list
of results that best match what the user is trying to find. Today, there are many
different search engines available on the Internet, each with their own abilities and
features. The first search engine ever developed is considered Archie, which was
used to search for FTP files and the first text-based search engine is
considered Veronica. Currently, the most popular and well-known search engine
is Google. Other popular search engines include AOL, Ask.com, Baidu, Bing,
and Yahoo.
How to access a search engine
For users, a search engine is accessed through a browser on their computer,
smartphone, tablet, or another device. Today, most new browsers use an omnibox,
which is a text box at the top of the browser. The omnibox allows users to type in a
URL or a search query. You can also visit one of the major search engines home
page to perform a search.
How a search engine works
Because large search engines contain millions and sometimes billions of pages,
many search engines not only search the pages but also display the results
depending on their importance. This importance is commonly determined by using
various algorithms.
As illustrated in the image on the right, the source of all search engine data is
a spider or crawler, which automatically visits pages and indexes their contents.
Once a page is crawled, the data contained in the page is processed and indexed.
Often, this can involve the steps below.
Strip out stop words.
Record the remaining words in the page and the frequency they occur.
Record links to other pages.
Record information about any images, audio, and embedded media on the page.
The data collected is used to rank each page. These rankings then determine which
pages to show in the search results and in what order.
Finally, once the data is processed, it is broken up into one or more files, moved to
different computers, or loaded into memory where it can be accessed when a
search is performed.
Do all search engines give the same results?
Not necessarily. Search engines use proprietary algorithms to index and correlate
data, so every search engine has its own approach to finding what you're trying to
find. Its results may be based on where you're located, what else you've searched
for, and what results were preferred by other users searching for the same thing,
for example. Each search engines will weigh these factors in a unique way, and
offer you different results.
What is the best search engine?
There isn't one search engine that is better than all the others. Some people could
argue that Google's search engine is the best and it is probably the most popular
and well-known. Often, if someone asks how to do something, or what something
is, another person will suggest they "Google it." "Google," used as a verb, means to
search for results using the Google search engine.
Microsoft's Bing search engine is also popular and used by many people. Bing does
an excellent job of finding information and answering questions. Yahoo's search
engine, while not quite as popular as it used to be, still does an excellent job of
searching for information.
Direct access
DirectAccess, also known as Unified Remote Access, is a VPN-like technology that
provides intranet connectivity to client computers when they are connected to the
Internet. Unlike many traditional VPN connections, which must be initiated and
terminated by explicit user action, DirectAccess connections are designed to
connect automatically as soon as the computer connects to the Internet.
DirectAccess was introduced in Windows Server 2008 R2, providing this service
to Windows 7 and Windows 8 "Enterprise" edition clients. In 2010, Microsoft
Forefront Unified Access Gateway (UAG) was released, which simplifies [1] the
deployment of DirectAccess for Windows 2008 R2, and includes additional
components that make it easier to integrate without the need to deploy IPv6 on the
network, and with a dedicated user interface for the configuration and monitoring.
Some requirements and limitations that were part of the design of DirectAccess
with Windows Server 2008 R2 and UAG have been changed (see requirements
below). While DirectAccess is based on Microsoft technology, third-party solutions
exist for accessing internal UNIX and Linux servers through DirectAccess.
With Windows Server 2012, DirectAccess is fully integrated into the operating
system, providing a user interface to configure and native IPv6 and IPv4 support.
Three levels of Internet connectivity.
Level 1 Connectivity
Level 2 Connectivity
Isp
An Internet service provider (ISP) is an organization that provides services for
accessing, using, or participating in the Internet. Internet service providers can be
organized in various forms, such as commercial, community-owned, non-profit, or
otherwise privately owned.
Internet services typically provided by ISPs include Internet access, Internet
transit, domain name registration, web hosting, Usenet service, and colocation.
Classifications
Access providers
Access provider ISPs provide Internet access, employing a range of technologies to
connect users to their network. [40] Available technologies have ranged from
computer modems with acoustic couplers to telephone lines, to television cable
(CATV), Wi-Fi, and fiber optics.
For users and small businesses, traditional options include copper wires to
provide dial-up, DSL, typically asymmetric digital subscriber line (ADSL), cable
modem or Integrated Services Digital Network (ISDN) (typically basic rate interface).
Using fiber-optics to end users is called Fiber To The Home or similar names.[41]
For customers with more demanding requirements (such as medium-to-large
businesses, or other ISPs) can use higher-speed DSL (such as single-pair high-
speed digital subscriber line), Ethernet, metropolitan Ethernet, gigabit
Ethernet, Frame Relay, ISDN Primary Rate Interface, ATM (Asynchronous Transfer
Mode) and synchronous optical networking (SONET).[42]
Wireless access is another option, including cellular and satellite Internet access.
Mailbox providers
A mailbox provider is an organization that provides services for hosting electronic
mail domains with access to storage for mail boxes. It provides email servers to
send, receive, accept, and store email for end users or other organizations.
Many mailbox providers are also access providers, [43] while others are not
(e.g., Gmail, Yahoo! Mail, Outlook.com, AOL Mail, Po box). The definition given
in RFC 6650 covers email hosting services, as well as the relevant department of
companies, universities, organizations, groups, and individuals that manage their
mail servers themselves. The task is typically accomplished by
implementing Simple Mail Transfer Protocol (SMTP) and possibly providing access
to messages through Internet Message Access Protocol (IMAP), the Post Office
Protocol, Webmail, or a proprietary protocol.[44]
Hosting ISPs
Internet hosting services provide email, web-hosting, or online storage services.
Other services include virtual server, cloud services, or physical server operation.
Transit ISPs
Peering
ISPs may engage in peering, where multiple ISPs interconnect at peering
points or Internet exchange points (IXPs), allowing routing of data between each
network, without charging one another for the data transmitted—data that would
otherwise have passed through a third upstream ISP, incurring charges from the
upstream ISP.[45]
ISPs requiring no upstream and having only customers (end customers or peer
ISPs) are called Tier 1 ISPs.
Network hardware, software and specifications, as well as the expertise of network
management personnel are important in ensuring that data follows the most
efficient route, and upstream connections work reliably. A tradeoff between cost
and efficiency is possible.
Introduction to DNS
DNS, or the Domain Name System, translates human readable domain names (for
example, www.amazon.com) to machine readable IP addresses (for example,
192.0.2.44).
DNS Basics
All computers on the Internet, from your smart phone or laptop to the servers that
serve content for massive retail websites, find and communicate with one another
by using numbers. These numbers are known as IP addresses. When you open a
web browser and go to a website, you don't have to remember and enter a long
number. Instead, you can enter a domain name like example.com and still end up
in the right place.
A DNS service such as Amazon Route 53 is a globally distributed service that
translates human readable names like www.example.com into the numeric IP
addresses like 192.0.2.1 that computers use to connect to each other. The
Internet’s DNS system works much like a phone book by managing the mapping
between names and numbers. DNS servers translate requests for names into IP
addresses, controlling which server an end user will reach when they type a
domain name into their web browser. These requests are called queries.
URLs are location dependent and contain four distinct parts: the
protocol type, the machine name, the directory path and the file
name.
which provides the interface to platform specific system calls, and the
cross-platform component object model (COM) objects. COM allows
applications to be built from binary components.
Unit # 2
Introduction to HTML
Introduction to HTML – Introduction ,History, Structure, Elements of
an HTML Document: Text Elements, Tag Elements., Paragraphs,
Image tags, HTML Table tags, Lists: Numbered and non-numbered
list, Hyperlinks, Buttons, Formatting: Text fontsand styles,
Background color, Marquee., Forms related tags (action, method,
name, input, submit etc)
-----------------------------------------------------------------------------------------------
Introduction to HTML
HTML stands for Hyper Text Markup Language, which is the most widely used
language on Web to develop web pages. HTML was created by Berners-Lee in late
1991 but "HTML 2.0" was the first standard HTML specification which was
published in 1995. HTML 4.01 was a major version of HTML and it was published
in late 1999. Though HTML 4.01 version is widely used but currently we are
having HTML-5 version which is an extension to HTML 4.01, and this version was
published in 2012.
Just to give you a little excitement about HTML, I'm going to give you a small
conventional HTML Hello World program, You can try it using Demo link.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Hello World!</p>
</body>
</html>
Applications of HTML
As mentioned before, HTML is one of the most widely used language over the web.
I'm going to list few of them here:
Web pages development - HTML is used to create pages which are
rendered over the web. Almost every page of web is having html tags in it to
render its details in browser.
Internet Navigation - HTML provides tags which are used to navigate from
one page to another and is heavily used in internet navigation.
Responsive UI - HTML pages now-a-days works well on all platform,
mobile, tabs, desktop or laptops owing to responsive design strategy.
Offline support HTML pages once loaded can be made available offline on
the machine without any need of internet.
Game development- HTML5 has native support for rich experience and is
now useful in gaming developent arena as well.
Audience
This HTML tutorial is designed for the aspiring Web Designers and Developers
with a need to understand the HTML in enough detail along with its simple
overview, and practical examples. This tutorial will give you enough ingredients to
start with HTML from where you can take yourself at higher level of expertise.
Prerequisites
Experience with any text editor like notepad, notepad++, or Edit plus etc.
How to create directories and files on your computer.
How to navigate through different directories.
How to type content in a file and save them on a computer.
Understanding about images in different formats like JPEG, PNG format.
History,
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.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Document content goes here.....</p>
</body>
</html>
HTML Tags
As told earlier, HTML is a markup language and makes use of various tags to
format the content. These tags are enclosed within angle braces <Tag Name>.
Except few tags, most of the tags have their corresponding closing tags. For
example, <html> has its closing tag </html> and <body> tag has its closing
tag </body> tag etc.
Above example of HTML document uses the following tags −
1 <!DOCTYPE...>
This tag defines the document type and HTML version.
2 <html>
This tag encloses the complete HTML document and mainly comprises of
document header which is represented by <head>...</head> and
document body which is represented by <body>...</body> tags.
3 <head>
This tag represents the document's header which can keep other HTML
tags like <title>, <link> etc.
4 <title>
The <title> tag is used inside the <head> tag to mention the document
title.
5 <body>
This tag represents the document's body which keeps other HTML tags
like <h1>, <div>, <p> etc.
6 <h1>
This tag represents the heading.
7 <p>
This tag represents a paragraph.
To learn HTML, you will need to study various tags and understand how they
behave, while formatting a textual document. Learning HTML is simple as users
have to learn the usage of different tags in order to format the text or images to
make a beautiful webpage.
World Wide Web Consortium (W3C) recommends to use lowercase tags starting
from HTML 4.
<html>
<head>
Document header related tags
</head>
<body>
Document body related tags
</body>
</html>
We will study all the header and body tags in subsequent chapters, but for now
let's see what is document declaration tag.
The <!DOCTYPE> declaration tag is used by the web browser to understand the
version of the HTML used in the document. Current version of HTML is 5 and it
makes use of the following declaration −
<!DOCTYPE html>
There are many other declaration types which can be used in HTML document
depending on what version of HTML is being used. We will see more details on this
while discussing <!DOCTYPE...> tag along with other HTML tags.
Structure,
<br />
<!DOCTYPE html>
<html>
<head>
<title>Nested Elements Example</title>
</head>
<body>
<h1>This is <i>italic</i> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Align Attribute Example</title>
</head>
<body>
<p align = "left">This is left aligned</p>
<p align = "center">This is center aligned</p>
<p align = "right">This is right aligned</p>
</body>
</html>
Core Attributes
The four core attributes that can be used on the majority of HTML elements
(although not all) are −
Id
Title
Class
Style
The Id Attribute
The id attribute of an HTML tag can be used to uniquely identify any element within
an HTML page. There are two primary reasons that you might want to use an id
attribute on an element −
If an element carries an id attribute as a unique identifier, it is possible to identify just that
element and its content.
If you have two elements of the same name within a Web page (or style sheet), you can
use the id attribute to distinguish between elements that have the same name.
We will discuss style sheet in separate tutorial. For now, let's use the id attribute to
distinguish between two paragraph elements as shown below.
Example
<p id = "html">This para explains what is HTML</p>
<p id = "css">This para explains what is Cascading Style
Sheet</p>
The title Attribute
The title attribute gives a suggested title for the element. They syntax for
the title attribute is similar as explained for id attribute −
The behavior of this attribute will depend upon the element that carries it, although it
is often displayed as a tooltip when cursor comes over the element or while the
element is loading.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>The title Attribute Example</title>
</head>
<body>
<h3 title = "Hello HTML!">Titled Heading Tag Example</h3>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The style Attribute</title>
</head>
<body>
<p style = "font-family:arial; color:#FF0000;">Some
text...</p>
</body>
</html>
dir
lang
xml:lang
The dir Attribute
The dir attribute allows you to indicate to the browser about the direction in which
the text should flow. The dir attribute can take one of two values, as you can see in
the table that follows −
Value Meaning
rtl Right to left (for languages such as Hebrew or Arabic that are read right to left)
Example
Live Demo
<!DOCTYPE html>
<html dir = "rtl">
<head>
<title>Display Directions</title>
</head>
<body>
This is how IE 5 renders right-to-left directed text.
</body>
</html>
<!DOCTYPE html>
<html lang = "en">
<head>
<title>English Language Page</title>
</head>
<body>
This page is using English Language
</body>
</html>
valign top, middle, bottom Vertically aligns tags within an HTML element.
We will see related examples as we will proceed to study other HTML tags. For a
complete list of HTML Tags and related attributes please check reference to HTML
Tags List.
If you use a word processor, you must be familiar with the ability to make text bold,
italicized, or underlined; these are just three of the ten options available to indicate
how text can appear in HTML and XHTML.
Bold Text
Anything that appears within <b>...</b> element, is displayed in bold as shown
below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bold Text Example</title>
</head>
<body>
<p>The following word uses a <b>bold</b> typeface.</p>
</body>
</html>
Italic Text
Anything that appears within <i>...</i> element is displayed in italicized as shown
below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Italic Text Example</title>
</head>
<body>
<p>The following word uses an <i>italicized</i>
typeface.</p>
</body>
</html>
Underlined Text
Anything that appears within <u>...</u> element, is displayed with underline as
shown below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Underlined Text Example</title>
</head>
<body>
<p>The following word uses an <u>underlined</u>
typeface.</p>
</body>
</html>
Strike Text
Anything that appears within <strike>...</strike> element is displayed with
strikethrough, which is a thin line through the text as shown below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Strike Text Example</title>
</head>
<body>
<p>The following word uses a <strike>strikethrough</strike>
typeface.</p>
</body>
</html>
Monospaced Font
The content of a <tt>...</tt> element is written in monospaced font. Most of the
fonts are known as variable-width fonts because different letters are of different
widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced font,
however, each letter has the same width.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Monospaced Font Example</title>
</head>
<body>
<p>The following word uses a <tt>monospaced</tt>
typeface.</p>
</body>
</html>
Superscript Text
The content of a <sup>...</sup> element is written in superscript; the font size used
is the same size as the characters surrounding it but is displayed half a character's
height above the other characters.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Superscript Text Example</title>
</head>
<body>
<p>The following word uses a <sup>superscript</sup>
typeface.</p>
</body>
</html>
Subscript Text
The content of a <sub>...</sub> element is written in subscript; the font size used
is the same as the characters surrounding it, but is displayed half a character's
height beneath the other characters.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Subscript Text Example</title>
</head>
<body>
<p>The following word uses a <sub>subscript</sub>
typeface.</p>
</body>
</html>
Inserted Text
Anything that appears within <ins>...</ins> element is displayed as inserted text.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Inserted Text Example</title>
</head>
<body>
<p>I want to drink <del>cola</del> <ins>wine</ins></p>
</body>
</html>
Deleted Text
Anything that appears within <del>...</del> element, is displayed as deleted text.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Deleted Text Example</title>
</head>
<body>
<p>I want to drink <del>cola</del> <ins>wine</ins></p>
</body>
</html>
Larger Text
The content of the <big>...</big> element is displayed one font size larger than the
rest of the text surrounding it as shown below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Larger Text Example</title>
</head>
<body>
<p>The following word uses a <big>big</big> typeface.</p>
</body>
</html>
This will produce the following result −
Smaller Text
The content of the <small>...</small> element is displayed one font size smaller
than the rest of the text surrounding it as shown below −
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Smaller Text Example</title>
</head>
<body>
<p>The following word uses a <small>small</small>
typeface.</p>
</body>
</html>
Grouping Content
The <div> and <span> elements allow you to group together several elements to
create sections or subsections of a page.
For example, you might want to put all of the footnotes on a page within a <div>
element to indicate that all of the elements within that <div> element relate to the
footnotes. You might then attach a style to this <div> element so that they appear
using a special set of style rules.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Div Tag Example</title>
</head>
<body>
<div id = "menu" align = "middle" >
<a href = "/index.htm">HOME</a> |
<a href = "/about/contact_us.htm">CONTACT</a> |
<a href = "/about/index.htm">ABOUT</a>
</div>
<div id = "content" align = "left" bgcolor = "white">
<h5>Content Articles</h5>
<p>Actual content goes here.....</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Span Tag Example</title>
</head>
<body>
<p>This is the example of <span style = "color:green">span
tag</span>
and the <span style = "color:red">div tag</span>
alongwith CSS</p>
</body>
</html>
Emphasized Text
Anything that appears within <em>...</em> element is displayed as emphasized
text.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Emphasized Text Example</title>
</head>
<body>
<p>The following word uses an <em>emphasized</em>
typeface.</p>
</body>
</html>
Marked Text
Anything that appears with-in <mark>...</mark> element, is displayed as marked
with yellow ink.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Marked Text Example</title>
</head>
<body>
<p>The following word has been <mark>marked</mark> with
yellow</p>
</body>
</html>
Strong Text
Anything that appears within <strong>...</strong> element is displayed as
important text.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Strong Text Example</title>
</head>
<body>
<p>The following word uses a <strong>strong</strong>
typeface.</p>
</body>
</html>
Text Abbreviation
You can abbreviate a text by putting it inside opening <abbr> and closing </abbr>
tags. If present, the title attribute must contain this full description and nothing else.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Text Abbreviation</title>
</head>
<body>
<p>My best friend's name is <abbr title =
"Abhishek">Abhy</abbr>.</p>
</body>
</html>
Acronym Element
The <acronym> element allows you to indicate that the text between <acronym>
and </acronym> tags is an acronym.
At present, the major browsers do not change the appearance of the content of the
<acronym> element.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Acronym Example</title>
</head>
<body>
<p>This chapter covers marking up text in
<acronym>XHTML</acronym>.</p>
</body>
</html>
Text Direction
The <bdo>...</bdo> element stands for Bi-Directional Override and it is used to
override the current text direction.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Text Direction Example</title>
</head>
<body>
<p>This text will go left to right.</p>
<p><bdo dir = "rtl">This text will go right to
left.</bdo></p>
</body>
</html>
Special Terms
The <dfn>...</dfn> element (or HTML Definition Element) allows you to specify that
you are introducing a special term. It's usage is similar to italic words in the midst of
a paragraph.
Typically, you would use the <dfn> element the first time you introduce a key term.
Most recent browsers render the content of a <dfn> element in an italic font.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Special Terms Example</title>
</head>
<body>
<p>The following word is a <dfn>special</dfn> term.</p>
</body>
</html>
Quoting Text
When you want to quote a passage from another source, you should put it in
between <blockquote>...</blockquote> tags.
Text inside a <blockquote> element is usually indented from the left and right edges
of the surrounding text, and sometimes uses an italicized font.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Blockquote Example</title>
</head>
<body>
<p>The following description of XHTML is taken from the W3C
Web site:</p>
</html>
Short Quotations
The <q>...</q> element is used when you want to add a double quote within a
sentence.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Double Quote Example</title>
</head>
<body>
<p>Amit is in Spain, <q>I think I am wrong</q>.</p>
</body>
</html>
Text Citations
If you are quoting a text, you can indicate the source placing it between an
opening <cite> tag and closing </cite> tag
As you would expect in a print publication, the content of the <cite> element is
rendered in italicized text by default.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Citations Example</title>
</head>
<body>
<p>This HTML tutorial is derived from <cite>W3 Standard for
HTML</cite>.</p>
</body>
</html>
Computer Code
Any programming code to appear on a Web page should be placed
inside <code>...</code> tags. Usually the content of the <code> element is
presented in a monospaced font, just like the code in most programming books.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Computer Code Example</title>
</head>
<body>
<p>Regular text. <code>This is code.</code> Regular
text.</p>
</body>
</html>
Keyboard Text
When you are talking about computers, if you want to tell a reader to enter some
text, you can use the <kbd>...</kbd> element to indicate what should be typed in,
as in this example.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Keyboard Text Example</title>
</head>
<body>
<p>Regular text. <kbd>This is inside kbd element</kbd>
Regular text.</p>
</body>
</html>
Programming Variables
This element is usually used in conjunction with the <pre> and <code> elements to
indicate that the content of that element is a variable.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Variable Text Example</title>
</head>
<body>
<p><code>document.write("<var>user-name</var>")</code></p>
</body>
</html>
Program Output
The <samp>...</samp> element indicates sample output from a program, and
script etc. Again, it is mainly used when documenting programming or coding
concepts.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Program Output Example</title>
</head>
<body>
<p>Result produced by the program is <samp>Hello World!
</samp></p>
</body>
</html>
Address Text
The <address>...</address> element is used to contain any address.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Address Example</title>
</head>
<body>
<address>388A, Road No 22, Jubilee Hills -
Hyderabad</address>
</body>
</html>
1
Name
Name for the property. Can be anything. Examples include, keywords, description,
author, revised, generator etc.
2
content
Specifies the property's value.
3
scheme
Specifies a scheme to interpret the property's value (as declared in the content
attribute).
4
http-equiv
Used for http response message headers. For example, http-equiv can be used to
refresh the page or to set a cookie. Values include content-type, expires, refresh and
set-cookie.
Specifying Keywords
You can use <meta> tag to specify important keywords related to the document and
later these keywords are used by the search engines while indexing your webpage
for searching purpose.
Example
Following is an example, where we are adding HTML, Meta Tags, Metadata as
important keywords about the document.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
Document Description
You can use <meta> tag to give a short description about the document. This again
can be used by various search engines while indexing your webpage for searching
purpose.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "revised" content = "Tutorialspoint, 3/7/2014"
/>
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
Document Refreshing
A <meta> tag can be used to specify a duration after which your web page will keep
refreshing automatically.
Example
If you want your page keep refreshing after every 5 seconds then use the following
syntax.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "revised" content = "Tutorialspoint, 3/7/2014"
/>
<meta http-equiv = "refresh" content = "5" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
Page Redirection
You can use <meta> tag to redirect your page to any other webpage. You can also
specify a duration if you want to redirect the page after a certain number of
seconds.
Example
Following is an example of redirecting current page to another page after 5
seconds. If you want to redirect page immediately then do not
specify content attribute.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "revised" content = "Tutorialspoint, 3/7/2014"
/>
<meta http-equiv = "refresh" content = "5; url =
http://www.tutorialspoint.com" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
Setting Cookies
Cookies are data, stored in small text files on your computer and it is exchanged
between web browser and web server to keep track of various information based on
your web application need.
You can use <meta> tag to store cookies on client side and later this information
can be used by the Web Server to track a site visitor.
Example
Following is an example of redirecting current page to another page after 5
seconds. If you want to redirect page immediately then do not
specify content attribute.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta http-equiv = "cookie" content = "userid = xyz;
expires = Wednesday, 08-Aug-15 23:59:59 GMT;" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
If you do not include the expiration date and time, the cookie is considered a
session cookie and will be deleted when the user exits the browser.
Note − You can check PHP and Cookies tutorial for a complete detail on Cookies.
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "author" content = "Mahnaz Mohtashim" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "author" content = "Mahnaz Mohtashim" />
<meta http-equiv = "Content-Type" content = "text/html;
charset = UTF-8" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
To serve the static page with traditional Chinese characters, the webpage must
contain a <meta> tag to set Big5 encoding −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags,
Metadata" />
<meta name = "description" content = "Learning about Meta
Tags." />
<meta name = "author" content = "Mahnaz Mohtashim" />
<meta http-equiv = "Content-Type" content = "text/html;
charset = Big5" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
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.
Example
Live Demo
<!DOCTYPE html>
<html>
<body>
<p>Document content goes here.....</p>
</body>
</html>
This will produce the following result without displaying the content given as a part
of comments −
<!DOCTYPE html>
<html>
<head>
<title>Valid Comment Example</title>
</head>
<body>
<!-- This is valid comment -->
<p>Document content goes here.....</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Invalid Comment Example</title>
</head>
<body>
< !-- This is not a valid comment -->
<p>Document content goes here.....</p>
</body>
</html>
Multiline Comments
So far we have seen single line comments, but HTML supports multi-line comments
as well.
You can comment multiple lines by the special beginning tag <!-- and ending tag -->
placed before the first line and end of the last line as shown in the given example
below.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Multiline Comments</title>
</head>
<body>
<!--
This is a multiline comment and it can
span through as many as lines you like.
-->
Conditional Comments
Conditional comments only work in Internet Explorer (IE) on Windows but they are
ignored by other browsers. They are supported from Explorer 5 onwards, and you
can use them to give conditional instructions to different versions of IE.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Conditional Comments</title>
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
</head>
<body>
<p>Document content goes here.....</p>
</body>
</html>
You will come across a situation where you will need to apply a different style sheet
based on different versions of Internet Explorer, in such situation conditional
comments will be helpful.
<!DOCTYPE html>
<html>
<head>
<title>Using Comment Tag</title>
</head>
<body>
<p>This is <comment>not</comment> Internet Explorer.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Commenting Script Code</title>
<script>
<!--
document.write("Hello World!")
//-->
</script>
</head>
<body>
<p>Hello , World!</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Commenting Style Sheets</title>
<style>
<!--
.example {
border:1px solid #4a7d49;
}
//-->
</style>
</head>
<body>
<div class = "example">Hello , World!</div>
</body>
</html>
Images are very important to beautify as well as to depict many complex concepts
in simple way on your web page. This tutorial will take you through simple steps to
use images in your web pages.
Insert Image
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.
Example
To try following example, let's keep our HTML file test.htm and image file test.png in
the same directory −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Using Image in Webpage</title>
</head>
<body>
<p>Simple Image Insert</p>
<img src = "/html/images/test.png" alt = "Test Image" />
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Using Image in Webpage</title>
</head>
<body>
<p>Simple Image Insert</p>
<img src = "/html/images/test.png" alt = "Test Image" />
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Set Image Width and Height</title>
</head>
<body>
<p>Setting image width and height</p>
<img src = "/html/images/test.png" alt = "Test Image" width
= "150" height = "100"/>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Set Image Border</title>
</head>
<body>
<p>Setting image Border</p>
<img src = "/html/images/test.png" alt = "Test Image"
border = "3"/>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Set Image Alignment</title>
</head>
<body>
<p>Setting image Alignment</p>
<img src = "/html/images/test.png" alt = "Test Image"
border = "3" align = "right"/>
</body>
</html>
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables</title>
</head>
<body>
<table border = "1">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
Table Heading
Table heading can be defined using <th> tag. This tag will be put to replace <td>
tag, which is used to represent actual data cell. Normally you will put your top row
as table heading as shown below, otherwise you can use <th> element in any row.
Headings, which are defined in <th> tag are centered and bold by default.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Header</title>
</head>
<body>
<table border = "1">
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ramesh Raman</td>
<td>5000</td>
</tr>
<tr>
<td>Shabbir Hussein</td>
<td>7000</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Cellpadding</title>
</head>
<body>
<table border = "1" cellpadding = "5" cellspacing = "5">
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ramesh Raman</td>
<td>5000</td>
</tr>
<tr>
<td>Shabbir Hussein</td>
<td>7000</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Colspan/Rowspan</title>
</head>
<body>
<table border = "1">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td rowspan = "2">Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
</tr>
<tr>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td colspan = "3">Row 3 Cell 1</td>
</tr>
</table>
</body>
</html>
Tables Backgrounds
You can set table background using one of the following two ways −
bgcolor attribute − You can set background color for whole table or just for one cell.
background attribute − You can set background image for whole table or just for one
cell.
You can also set border color also using bordercolor attribute.
Note − The bgcolor, background, and bordercolor attributes deprecated in HTML5. Do not use
these attributes.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Background</title>
</head>
<body>
<table border = "1" bordercolor = "green" bgcolor =
"yellow">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td rowspan = "2">Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
</tr>
<tr>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td colspan = "3">Row 3 Cell 1</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Background</title>
</head>
<body>
<table border = "1" bordercolor = "green" background =
"/images/test.png">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td rowspan = "2">Row 1 Cell 1</td>
<td>Row 1 Cell 2</td><td>Row 1 Cell 3</td>
</tr>
<tr>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td colspan = "3">Row 3 Cell 1</td>
</tr>
</table>
</body>
</html>
This will produce the following result. Here background image did not apply to
table's header.
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Width/Height</title>
</head>
<body>
<table border = "1" width = "400" height = "150">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
Table Caption
The caption tag will serve as a title or explanation for the table and it shows up at
the top of the table. This tag is deprecated in newer version of HTML/XHTML.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Caption</title>
</head>
<body>
<table border = "1" width = "100%">
<caption>This is the caption</caption>
<tr>
<td>row 1, column 1</td><td>row 1, columnn 2</td>
</tr>
<tr>
<td>row 2, column 1</td><td>row 2, columnn 2</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border = "1" width = "100%">
<thead>
<tr>
<td colspan = "4">This is the head of the
table</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan = "4">This is the foot of the
table</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
</body>
</html>
Nested Tables
You can use one table inside another table. Not only tables you can use almost all
the tags inside table data tag <td>.
Example
Following is the example of using another table and other tags inside a table cell.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border = "1" width = "100%">
<tr>
<td>
<table border = "1" width = "100%">
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ramesh Raman</td>
<td>5000</td>
</tr>
<tr>
<td>Shabbir Hussein</td>
<td>7000</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Name Salary
Ramesh Raman 5000
Shabbir Hussein 7000
HTML offers web authors three ways for specifying lists of information. All lists must
contain one or more list elements. Lists may contain −
<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.
<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type = "square">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type = "disc">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>
This will produce the following result −
Example
Following is an example where we used <ul type = "circle"> −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type = "circle">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "1">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "I">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "i">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "A">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "a">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type = "i" start = "4">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Definition List</title>
</head>
<body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language</dd>
<dt><b>HTTP</b></dt>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>
A webpage can contain various links that take you directly to other pages and even
specific parts of a given page. These links are known as hyperlinks.
Hyperlinks allow visitors to navigate between Web sites by clicking on words,
phrases, and images. Thus you can create hyperlinks using text or images available
on a webpage.
Note − I recommend you to go through a short tutorial on Understanding URL
Linking Documents
A link is specified using HTML tag <a>. This tag is called anchor tag and anything
between the opening <a> tag and the closing </a> tag becomes part of the link and
a user can click that part to reach to the linked document. Following is the simple
syntax to use <a> tag.
<a href = "Document URL" ... attributes-list>Link Text</a>
Example
Let's try following example which links http://www.tutorialspoint.com at your page −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<p>Click following link</p>
<a href = "https://www.tutorialspoint.com" target =
"_self">Tutorials Point</a>
</body>
</html>
This will produce the following result, where you can click on the link generated to
reach to the home page of Tutorials Point (in this example).
2
_self
Opens the linked document in the same frame.
3
_parent
Opens the linked document in the parent frame.
4
_top
Opens the linked document in the full body of the window.
5
targetframe
Opens the linked document in a named targetframe.
Example
Try following example to understand basic difference in few options given for target
attribute.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
<base href = "https://www.tutorialspoint.com/">
</head>
<body>
<p>Click any of the following links</p>
<a href = "/html/index.htm" target = "_blank">Opens in
New</a> |
<a href = "/html/index.htm" target = "_self">Opens in
Self</a> |
<a href = "/html/index.htm" target = "_parent">Opens in
Parent</a> |
<a href = "/html/index.htm" target = "_top">Opens in
Body</a>
</body>
</html>
This will produce the following result, where you can click on different links to
understand the difference between various options given for target attribute.
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
<base href = "https://www.tutorialspoint.com/">
</head>
<body>
<p>Click following link</p>
<a href = "/html/index.htm" target = "_blank">HTML
Tutorial</a>
</body>
</html>
This will produce the following result, where you can click on the link
generated HTML Tutorial to reach to the HTML tutorial.
Now given URL <a href = "/html/index.htm" is being considered as <ahref =
"http://www.tutorialspoint.com/html/index.htm"
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
<base href = "https://www.tutorialspoint.com/">
</head>
</html>
This will produce the following result. Just check color of the link before clicking on
it, next check its color when you activate it and when the link has been visited.
Download Links
You can create text link to make your PDF, or DOC or ZIP files downloadable. This
is very simple; you just need to give complete URL of the downloadable file as
follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<a href =
"https://www.tutorialspoint.com/page.pdf">Download PDF File</a>
</body>
</html>
This will produce following link and will be used to download a file.
# Open the target file and list down its content as follows
open( FILE, "<FileName" );
We have seen how to create hypertext link using text and we also learnt how to use
images in our webpages. Now, we will learn how to use images to create
hyperlinks.
Example
It's simple to use an image as hyperlink. We just need to use an image inside
hyperlink at the place of text as shown below −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Image Hyperlink Example</title>
</head>
<body>
<p>Click following link</p>
<a href = "https://www.tutorialspoint.com" target =
"_self">
<img src = "/images/logo.png" alt = "Tutorials Point"
border = "0"/>
</a>
</body>
</html>
This will produce the following result, where you can click on the images to reach to
the home page of Tutorials Point.
This was the simplest way of creating hyperlinks using images. Next we will see
how we can create Mouse-Sensitive Image Links.
Mouse-Sensitive Images
The HTML and XHTML standards provides a feature that lets you embed many
different links inside a single image. You can create different links on the single
image based on different coordinates available on the image. Once different links
are attached to different coordinates, we can click different parts of the image to
open target documents. Such mouse-sensitive images are known as image maps.
There are two ways to create image maps −
Server-side image maps − This is enabled by the ismap attribute of the <img> tag and
requires access to a server and related image-map processing applications.
Client-side image maps − This is created with the usemap attribute of the <img> tag,
along with corresponding <map> and <area> tags.
<head>
<title>ISMAP Hyperlink Example</title>
</head>
<body>
<p>Click following link</p>
</html>
Then the browser sends the following search parameters to the web server which
can be processed by ismap.cgi script or map file and you can link whatever
documents you like to these coordinates −
/cgi-bin/ismap.cgi?20,30
This way you can assign different links to different coordinates of the image and
when those coordinates are clicked, you can open corresponding linked document.
To learn more about ismap attribute, you can check How to use Image ismap?
Note − You will learn CGI programming when you will study Perl programming. You can write
your script to process these passed coordinates using PHP or any other script as well. For now,
let's concentrate on learning HTML and later you can revisit this section.
<!DOCTYPE html>
<html>
<head>
<title>USEMAP Hyperlink Example</title>
</head>
<body>
<p>Search and click the hotspot</p>
<img src = /images/html.gif alt = "HTML Map" border = "0"
usemap = "#html"/>
<!-- Create Mappings -->
</html>
Coordinate System
The actual value of coords is totally dependent on the shape in question. Here is a
summary, to be followed by detailed examples −
rect = x , y , x , y
1 1 2 2
x and y1 are the coordinates of the upper left corner of the rectangle; x and y are the
1 2 2
x and y are the coordinates of the center of the circle, and radius is the circle's radius.
c c
The various x-y pairs define vertices (points) of the polygon, with a "line" being drawn
from one point to the next point. A diamond-shaped polygon with its top point at 20,20
and 40 pixels across at its widest points would have the attribute coords =
"20,20,40,40,20,60,0,40".
All coordinates are relative to the upper-left corner of the image (0,0). Each shape
has a related URL. You can use any image software to know the coordinates of
different positions.
It is not difficult to put an HTML email link on your webpage but it can cause
unnecessary spamming problem for your email account. There are people, who can
run programs to harvest these types of emails and later use them for spamming in
various ways.
You can have another option to facilitate people to send you emails. One option
could be to use HTML forms to collect user data and then use PHP or CGI script to
send an email.
A simple example, check our Contact Us Form. We take user feedback using this
form and then we are using one CGI program which is collecting this information
and sending us email to the one given email ID.
Note − You will learn about HTML Forms in HTML Forms and you will learn about
CGI in our another tutorial Perl CGI Programming.
Default Settings
You can specify a default email subject and email body along with your email
address. Following is the example to use default subject and body.
<a href = "mailto:abc@example.com?subject = Feedback&body =
Message">
Send Feedback
</a>
This code will generate the following link which you can use to send email.
Send Feedback
Hyperlinks,
Buttons,
Formatting: Text fontsand styles,
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, color, and face to customize your
fonts. To change any of the font attributes at any time within your webpage, simply
use the <font> tag. The text that follows will remain changed until you close with the
</font> tag. You can change one or all of the font attributes within one <font> tag.
Note −The font and basefont tags are deprecated and it is supposed to be removed in a future
version of HTML. So they should not be used rather, it's suggested to use CSS styles to
manipulate your fonts. But still for learning purpose, this chapter will explain font and basefont
tags in detail.
<!DOCTYPE html>
<html>
<head>
<title>Setting Font Size</title>
</head>
<body>
<font size = "1">Font size = "1"</font><br />
<font size = "2">Font size = "2"</font><br />
<font size = "3">Font size = "3"</font><br />
<font size = "4">Font size = "4"</font><br />
<font size = "5">Font size = "5"</font><br />
<font size = "6">Font size = "6"</font><br />
<font size = "7">Font size = "7"</font>
</body>
</html>
<head>
<title>Relative Font Size</title>
</head>
<body>
<font size = "-1">Font size = "-1"</font><br />
<font size = "+1">Font size = "+1"</font><br />
<font size = "+2">Font size = "+2"</font><br />
<font size = "+3">Font size = "+3"</font><br />
<font size = "+4">Font size = "+4"</font>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Font Face</title>
</head>
<body>
<font face = "Times New Roman" size = "5">Times New
Roman</font><br />
<font face = "Verdana" size = "5">Verdana</font><br />
<font face = "Comic sans MS" size =" 5">Comic Sans
MS</font><br />
<font face = "WildWest" size = "5">WildWest</font><br />
<font face = "Bedrock" size = "5">Bedrock</font><br />
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Setting Font Color</title>
</head>
<body>
<font color = "#FF00FF">This text is in pink</font><br />
<font color = "red">This text is red</font>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Setting Basefont Color</title>
</head>
<body>
<basefont face = "arial, verdana, sans-serif" size = "2"
color = "#ff0000">
<p>This is the page's default font.</p>
<h2>Example of the <basefont> Element</h2>
</html>
Background color,
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.
The <body> tag has following attributes which can be used to set different colors −
bgcolor − sets a color for the background of the page.
text − sets a color for the body text.
alink − sets a color for active links or selected links.
link − sets a color for linked text.
vlink − sets a color for visited links − that is, for linked text that you have already clicked
on.
Example
Here are the examples to set background of an HTML tag by color name −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Colors by Name</title>
</head>
</html>
#000000
#FF0000
#00FF00
#0000FF
#FFFF00
#00FFFF
#FF00FF
#C0C0C0
#FFFFFF
Example
Here are the examples to set background of an HTML tag by color code in
hexadecimal −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Colors by Hex</title>
</head>
</html>
rgb(0,0,0)
rgb(255,0,0)
rgb(0,255,0)
rgb(0,0,255)
rgb(255,255,0)
rgb(0,255,255)
rgb(255,0,255)
rgb(192,192,192)
rgb(255,255,255)
Example
Here are the examples to set background of an HTML tag by color code using rgb()
values −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Colors by RGB code</title>
</head>
</html>
Marquee.,
Syntax
A simple syntax to use HTML <marquee> tag is as follows −
<marquee attribute_name = "attribute_value"....more attributes>
One or more lines or text message or image
</marquee>
1
width
This specifies the width of the marquee. This can be a value like 10 or 20% etc.
2
height
This specifies the height of the marquee. This can be a value like 10 or 20% etc.
3
direction
This specifies the direction in which marquee should scroll. This can be a value
like up, down, left or right.
4
behavior
This specifies the type of scrolling of the marquee. This can have a value like scroll,
slide and alternate.
5
scrolldelay
This specifies how long to delay between each jump. This will have a value like 10
etc.
6
scrollamount
This specifies the speed of marquee text. This can have a value like 10 etc.
7
loop
This specifies how many times to loop. The default value is INFINITE, which means
that the marquee loops endlessly.
8
bgcolor
This specifies background color in terms of color name or color hex value.
9
hspace
This specifies horizontal space around the marquee. This can be a value like 10 or
20% etc.
10
vspace
This specifies vertical space around the marquee. This can be a value like 10 or 20%
etc.
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee>This is basic example of marquee</marquee>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee width = "50%">This example will take only 50%
width</marquee>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee direction = "right">This text will scroll from
left to right</marquee>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee direction = "up">This text will scroll from bottom
to up</marquee>
</body>
</html>
Buttons:
Description
The HTML <button> tag is used for creating a button within HTML form. You can
also use <input> tag to create similar buttons.
Example
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Button Tag</title>
</head>
<body>
<form>
<button name = "button" value = "OK" type =
"button">Click Me</button>
</form>
</body>
</html>
Global Attributes
This tag supports all the global attributes described in HTML Attribute Reference
Specific Attributes
The HTML <button> tag also supports the following additional attributes −
autofocus autofocus Specifies that the button should have input focus
when the page loads.
formnovalidate formnovalidate Specifies that the form data should not be validated.
Event Attributes
This tag supports all the event attributes described in HTML Events Reference
Browser Support
Chrome Firefox IE Opera Safari
Form Attributes
Apart from common attributes, following is a list of the most frequently used form
attributes −
1
action
Backend script ready to process your passed data.
2
method
Method to be used to upload data. The most frequently used are GET and POST
methods.
3
target
Specify the target window or frame where the result of the script will be displayed. It
takes values like _blank, _self, _parent etc.
4
enctype
You can use the enctype attribute to specify how the browser encodes the data
before it sends it to the server. Possible values are −
application/x-www-form-urlencoded − This is the standard method most forms use
in simple scenarios.
mutlipart/form-data − This is used when you want to upload binary data in the form
of files like image, word file etc.
Note − You can refer to Perl & CGI for a detail on how form data upload works.
HTML Form Controls
There are different types of form controls that you can use to collect data using
HTML form −
<!DOCTYPE html>
<html>
<head>
<title>Text Input Control</title>
</head>
<body>
<form >
First name: <input type = "text" name = "first_name" />
<br>
Last name: <input type = "text" name = "last_name" />
</form>
</body>
</html>
Attributes
Following is the list of attributes for <input> tag for creating text field.
1
type
Indicates the type of input control and for text input control it will be set to text.
2
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
3
value
This can be used to provide an initial value inside the control.
4
size
Allows to specify the width of the text-input control in terms of characters.
5
maxlength
Allows to specify the maximum number of characters a user can enter into the text
box.
<head>
<title>Password Input Control</title>
</head>
<body>
<form >
User ID : <input type = "text" name = "user_id" />
<br>
Password: <input type = "password" name = "password" />
</form>
</body>
</html>
Attributes
Following is the list of attributes for <input> tag for creating password field.
1
type
Indicates the type of input control and for password input control it will be set
to password.
2
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
3
value
This can be used to provide an initial value inside the control.
4
size
Allows to specify the width of the text-input control in terms of characters.
5
maxlength
Allows to specify the maximum number of characters a user can enter into the text
box.
<!DOCTYPE html>
<html>
<head>
<title>Multiple-Line Input Control</title>
</head>
<body>
<form>
Description : <br />
<textarea rows = "5" cols = "50" name = "description">
Enter description here...
</textarea>
</form>
</body>
</html>
Attributes
Following is the list of attributes for <textarea> tag.
1
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
2
rows
Indicates the number of rows of text area box.
3
cols
Indicates the number of columns of text area box
Checkbox Control
Checkboxes are used when more than one option is required to be selected. They
are also created using HTML <input> tag but type attribute is set to checkbox..
Example
Here is an example HTML code for a form with two checkboxes −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Checkbox Control</title>
</head>
<body>
<form>
<input type = "checkbox" name = "maths" value = "on">
Maths
<input type = "checkbox" name = "physics" value = "on">
Physics
</form>
</body>
</html>
Attributes
Following is the list of attributes for <checkbox> tag.
1
type
Indicates the type of input control and for checkbox input control it will be set
to checkbox..
2
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
3
value
The value that will be used if the checkbox is selected.
4
checked
Set to checked if you want to select it by default.
<!DOCTYPE html>
<html>
<head>
<title>Radio Box Control</title>
</head>
<body>
<form>
<input type = "radio" name = "subject" value = "maths">
Maths
<input type = "radio" name = "subject" value =
"physics"> Physics
</form>
</body>
</html>
Attributes
Following is the list of attributes for radio button.
1
type
Indicates the type of input control and for checkbox input control it will be set to radio.
2
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
3
value
The value that will be used if the radio box is selected.
4
checked
Set to checked if you want to select it by default.
<!DOCTYPE html>
<html>
<head>
<title>Select Box Control</title>
</head>
<body>
<form>
<select name = "dropdown">
<option value = "Maths" selected>Maths</option>
<option value = "Physics">Physics</option>
</select>
</form>
</body>
</html>
Attributes
Following is the list of important attributes of <select> tag −
1
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
2
size
This can be used to present a scrolling list box.
3
multiple
If set to "multiple" then allows a user to select multiple items from the menu.
1
value
The value that will be used if an option in the select box box is selected.
2
selected
Specifies that this option should be the initially selected value when the page loads.
3
label
An alternative way of labeling options
<!DOCTYPE html>
<html>
<head>
<title>File Upload Box</title>
</head>
<body>
<form>
<input type = "file" name = "fileupload" accept =
"image/*" />
</form>
</body>
</html>
Attributes
Following is the list of important attributes of file upload box −
1
name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
2
accept
Specifies the types of files that the server accepts.
Button Controls
There are various ways in HTML to create clickable buttons. You can also create a
clickable button using <input>tag by setting its type attribute to button. The type
attribute can take the following values −
1
submit
This creates a button that automatically submits a form.
2
reset
This creates a button that automatically resets form controls to their initial values.
3
button
This creates a button that is used to trigger a client-side script when the user clicks
that button.
4
image
This creates a clickable button but we can use an image as background of the
button.
Example
Here is example HTML code for a form with three types of buttons −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>File Upload Box</title>
</head>
<body>
<form>
<input type = "submit" name = "submit" value = "Submit"
/>
<input type = "reset" name = "reset" value = "Reset" />
<input type = "button" name = "ok" value = "OK" />
<input type = "image" name = "imagebutton" src =
"/html/images/logo.png" />
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>File Upload Box</title>
</head>
<body>
<form>
<p>This is page 10</p>
<input type = "hidden" name = "pagename" value = "10" />
<input type = "submit" name = "submit" value = "Submit"
/>
<input type = "reset" name = "reset" value = "Reset" />
</form>
</body>
</html>
This is page 10
Submit Reset