You are on page 1of 9

HTML is the language for describing the structure of Web pages.

HTML gives authors the means


to:
Publish online documents with headings, text, tables, lists, photos, etc.
Retrieve online information via hypertext links, at the click of a button.
Design forms for conducting transactions with remote services, for use in searching for
information, making reservations, ordering products, etc.
Include spread-sheets, video clips, sound clips, and other applications directly in their
documents.
Text, video, audio, images, etc...
Extension of the file is .html
Within the html tag normally we write the html elements
The text between <html> and </html> describes an HTML document
The text between <head> and </head> provides information about the document
The text between <title> and </title> provides a title for the document
The text between <body> and </body> describes the visible page content
The text between <h1> and </h1> describes a heading
The text between <p> and </p> describes a paragraph
If you want to change the font color we have to use the tag font color tag
Example
<font color=appropriate color></font>

Unordered Lists
An unordered list is simply a list of related items whose order does not matter. Creating an
unordered list in HTML is accomplished using the unordered list block-level element,<ul>. Each
item within an unordered list is individually marked up using the list item element, <li>.

Ordered Lists
The ordered list element, <ol>, works very much likes the unordered list element; individual list
items are created in the same manner. The main difference between an ordered list and an
unordered list is that with an ordered list, the order in which items are presented is important.

Description Lists
Another type of list seen online (but not as often as unordered or ordered lists) is the description
list. Description lists are used to outline multiple terms and their descriptions, as in a glossary,
for example.
Creating a description list in HTML is accomplished using the description list block-level
element, <dl>. Instead of using a <li> element to mark up list items, the description list requires
two block-level elements: the description term element, <dt>, and the description element, <dd>.

What is CSS?
CSS is the language for describing the presentation of Web pages, including colors, layout, and
fonts. It allows one to adapt the presentation to different types of devices, such as large screens,
small screens, or printers. CSS is independent of HTML and can be used with any XML-based
markup language. The separation of HTML from CSS makes it easier to maintain sites, share
style sheets across pages, and tailor pages to different environments. This is referred to as
the separation of structure (or: content) from presentation.
What Is CSS?
CSS is a form of communication used to dilate the display of a website markup language like HTML or
XHTML as it determines such features as its fonts, layouts, spacing and colors, to name just a few.
Basically, CSS is used to take the content you already have and make it look more attractive; it is a
language used to increase expressive style and creativity.
One of the favored features is its ability to allow the sorting of document content written in markup
languages (like HTML) from document presentation written in CSS. Here are five more advantages of
CSS in website design:

Easier to maintain and update


Greater consistency in design
More formatting options
Lightweight code
Faster download times
Search engine optimization benefits
Ease of presenting different styles to different viewers
Greater accessibility

CSS saves time


With CSS, you only have to specify these details once for any element. CSS will automatically apply
the specified styles whenever that element occurs.
Pages load faster
Less code means faster download times.
Easy maintenance
To change the style of an element looks across the whole site, you only have to make an edit in one
place.
Superior styles to HTML
CSS was built for styles. HTML was not. While browsers usually display HTML elements in a certain
way, you can override this with CSS.

External Style Sheet


With an external style sheet, you can change the look of an entire website by
changing just one file!
Each page must include a reference to the external style sheet file inside the
<link> element. The <link> element goes inside the <head> section:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

Internal Style Sheet


An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head>
section of an HTML page:
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon; margin-left: 40px;

}
</style>
</head>

Inline Styles
An inline style may be used to apply a unique style for a single element.
To use inline styles, add the style attribute to the relevant element. The style
attribute can contain any CSS property.
The example below shows how to change the color and the left margin of a
<h1> element:
<h1 style="color:blue;margin-left:30px;">This is a heading.</h1>
What is XML?

Extensible Markup Language (XML) provides a foundation for creating documents


and document systems. XML operates on two main levels: first, it provides syntax for
document markup; and second, it provides syntax for declaring the structures of
documents. XML is clearly targeted at the Web, though it certainly has applications
beyond it. Users who have worked with HTML before should be able to learn the
basics of XML without too much difficulty. XML's simplicity is its key selling point,
perhaps even its strongest feature.
XML is derived from (and is technically a subset of) the Standard Generalized
Markup Language (SGML). SGML has found its main customer base in organizations
handling enormous quantities of documents - the U.S. Government Printing Office,
IBM, the U.S. Department of Defense and Internal Revenue Service, and many
publishers. SGML's development provides the foundations for XML, but XML has a
smaller and simpler syntax, targeted at web developers and others who need a simple
solution to document creation, management, and display.
Web developers are the initial target audience, but database developers, document
managers, desktop publishers, programmers, scientists, and other academics are all
getting involved. XML provides a simple format that is flexible enough to
accommodate wildly diverse needs. Even developers performing tasks on different
types of applications with different interfaces and different data structures can share

XML formats and tools for parsing those formats into data structures that applications
can use. XML offers its users many advantages, including:
Simplicity
Extensibility
Interoperability
Openness

A core of experienced professionals


CAPABLE
It can be used to design any type of website and can handle websites with a lot of traffic. Facebook,
Twitter, Wikipedia and many other very widely visited websites use it as their framework. And because it
is server-side scripting, it can do anything that other CGI programs can do.

EASY
It has a readable and easily understandable syntax. Its code is embedded in the HTML source code and it
is based on C/C++. Therefore, it is very familiar and programmers are very comfortable coding with it.

PLATFORM INDEPENDENT
It can be run on all major operating systems like Linux, UNIX, Mac OS and Windows.

SUPPORTS ALL MAJOR WEB SERVERS


It supports all major web servers like Apache, Microsoft IIS, Netscape, personal webserver, iPlanet
server, etc.

SUPPORTS ALL MAJOR DATABASES


IT supports all major databases including MySQL, dBase, IBM DB2, InterBase, FrontBase, ODBC,
PostgreSQL, SQLite, etc.

FASTER DEVELOPMENTS
It uses its own memory space and thus decreases the loading time and workload from the server. The
processing speed is fast and web applications like Ecommerce, CRM, CMS and Forums are also
developed faster by it.

SECURE
It has multiple layers of security to prevent threats and malicious attacks.

echo () and print() are not functions but language constructs in PHP. They
are both used to output strings and there are very minor differences
between echo and print in PHP.

Comparison chart
Echo (PHP) versus Print (PHP) comparison chart

Paramet
ers

Return
value

Echo (PHP)

Print (PHP)

echo can take more than one parameter when used


without parentheses. The syntax is echo expression [,
expression[, expression] ... ]. Note that echo
($arg1,$arg2) is invalid.

print only
takes one
parameter.

echo does not return any value

print always
returns 1
(integer)

Some of the difference of PHP Vs HTML:


1. PHP is similar to HTML. Because PHP having both HTML and PHP code.
2. HTML is a Tag language but PHP is a scripting language.
3. The output of PHP is mostly in HTML code. Because the web browser only
sends HTML codes and PHP code always in background.
4. Actually web page takes two numbers, add it and present to user which
easily done by PHP but which is not possible in HTML.

A variable can have a short name (like x and y) or a more descriptive name
(age, carname, total_volume).
Rules for PHP variables:
A variable starts with the $ sign, followed by the name of the variable
A variable name must start with a letter or the underscore character
A variable name cannot start with a number
A variable name can only contain alpha-numeric characters and underscores (Az, 0-9, and _ )
Variable names are case-sensitive ($age and $AGE are two different variables)
<?php
$txt = "W3Schools.com";
echo "I love $txt!";
?>

<?php
$first_number = 10;
$second_number = 20;
$sum_total = $first_number + $second_number;
$direct_text = 'The two variables added together = ';
print ($direct_text . $sum_total);
?>

What is a Domain Name?

New computer users often confuse domain names with universal resource locators, or
URLs, and Internet Protocol, or IP, addresses. This confusion is understandable. It is worth
learning the differences between them because these terms are ubiquitous. It is also helpful
to be able to use terms correctly when communicating to technicians or other people within
a professional organization.
This naming convention is analogous to a physical address system. People find web pages
in a manner similar to the way that they use maps to find physical locations. If the Internet is
like a phone book, and a web page is like a physical building, the URL would be the precise
street address of that building. The IP address would be like the car that travels to its
destination. There are also other useful metaphors for understanding this relationship.

How do Domains Work?


Domain names work because they provide computer users with a short name that is easy to
remember. Users enter web addresses into the URL field at the top of their browser's page
from left to right. The domain name itself is read from right to left according to the naming
hierarchy discussed below. This link provides directions to the network, which ultimately
results in a successful page load at the client end of the transaction.
The common fictitious domain name, www.example.com, is comprised of three essential
parts:

.com - This is the top-level domain.


.example. - This is a sub-domain.
www. - This is a sub-domain prefix for the World Wide Web. The original use of
this prefix was partly accidental, and pronunciation difficulties raised interest in
creating viable alternatives.

Many servers use a three-letter naming convention for top-level domains, and they are
separated from sub-domains by a dot. The significance of the top-level domain is the most
important for new users to grasp. It identifies the highest part of the naming system used on
the Internet. This naming system was originally created to identify countries and
organizations as well as categories.

What is Web Hosting?

Web hosting is a service that allows organizations and individuals to post a website
or web page on to the Internet. A web host, or web hosting service provider, is a
business that provides the technologies and services needed for the website or
webpage to be viewed in the Internet. Websites are hosted, or stored, on special
computers called servers.
When Internet users want to view your website, all they need to do is type your
website address into their browser. Their computer will then connect to your server
and your webpages will be delivered to them through the browser.
Most hosting companies require that you own your domain name in order to host
with them. If you do not have a domain name, the hosting companies will help you
purchase one.

You might also like