<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1830978898014252266</id><updated>2024-09-08T23:49:33.227-07:00</updated><category term="HTML/CSS"/><category term="DATA STRUCTURES"/><title type='text'>web tutorials++</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-3882290882568736214</id><published>2013-10-19T02:49:00.001-07:00</published><updated>2013-10-19T11:45:17.480-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DATA STRUCTURES"/><title type='text'>Analysis of algorithm and data structure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;div&gt;
In the last post I told you about data structures and algorithms. In this post we will see how can we do the analysis of algorithm. I write all my posts are in question and answer format I hope you can understand what I am trying to explain to you but if anyone have any doubts/question please do ask it in comments column and in case if you like my posts please share it on Facebook or tell your friends about it.&lt;br /&gt;
What is an &lt;b&gt;algorithm&lt;/b&gt;? An &lt;b&gt;algorithm&lt;/b&gt; is a step-by-step instruction to a given problem&lt;br /&gt;
.&lt;br /&gt;
Why do we do analysis of algorithm? Suppose we want to go from city A to city B. There are many ways of doing this: by flight,by bus, by train and also by cycle. Depending on the availability and convenience we choose the one which suits us. Similarly in computer science there can be many algorithms there can be many algorithms that exist for solving the same problem(for example sorting algorithm has lot of algorithms like insertion sort, selection sort, quick sort and many more). Algorithm analysis help us determine which of them is efficient in terms of time and space consumed.&lt;br /&gt;
&lt;br /&gt;
What are the goals of analyzing and algorithm? The goal of analysis of algorithm is to compare algorithms/solutions mainly in terms of running time but also in terms of other factors(e.g memory, developer&#39;s effort etc).&lt;br /&gt;
&lt;br /&gt;
What is running time analysis? It is the process to determine how processing time increases as the size of the problem(input size) increases. Input size is the number of elements in the input and depending on the problem type the input may be of different types.&lt;br /&gt;
&lt;br /&gt;
How to compare algorithms? If we express running time of a given algorithm as a function of input size n(i.e, f(n) ) we can compare these different functions corresponding to running time and this kind of comparison is independent of machine time,programming style etc.&lt;br /&gt;
What is rate of growth? The rate at which running time increases as the function of input is called rate of growth.&lt;br /&gt;
What are different type of analysis?There are three different type of analysis and these are:&lt;br /&gt;
1.&lt;b&gt;worst case analysis:&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;defines the input for which algorithm takes huge time&lt;/li&gt;
&lt;li&gt;input is the one for which algorithm runs slower. &lt;/li&gt;
&lt;/ul&gt;
2. &lt;b&gt;best case analysis:&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;defines the input for which algorithm takes the lowest time&lt;/li&gt;
&lt;li&gt;Input is the one for which algorithm runs the fastest.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
3. &lt;b&gt;Average case analysis:&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;provides the prediction about running time of algorithm&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Assumes that input is random.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;So what is &lt;b&gt;complexity &lt;/b&gt;of an algorithm&lt;b&gt;?&lt;/b&gt; The complexity of a algorithm is a f(n) which measures the time and space used by an algorithm in terms of its input size n.&lt;br /&gt;
&lt;h4 class=&quot;title&quot;&gt;
Time complexity
                     &lt;/h4&gt;
How long does this sorting program run? It possibly takes
                     a very long time on large inputs (that is many strings) until the
                     program has completed its work and gives a sign of life
                     again. Sometimes it makes sense to be able to estimate the
                     running time &lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;before&lt;/i&gt;&lt;/span&gt; starting a program.
                     Nobody wants to wait for a sorted phone book for years!
                     Obviously, the running time depends on the number n of the
                     strings to be sorted. Can we find a formula for the running time
                     which depends on n?
            &lt;br /&gt;
Having a close look at the program we notice that it consists of
               two nested for-loops. In both loops the variables run from 0 to n, but
               the inner variable starts right from where the outer one just
               stands. An &lt;tt class=&quot;literal&quot;&gt;if&lt;/tt&gt; with a comparison and some
               assignments not necessarily executed reside inside the two
               loops. A good measure for the running time is the number of
               executed comparisons.
               
               
               
               
               
               In the first iteration n comparisons take place, in the second n-1,
               then n-2, then n-3 &lt;span class=&quot;abbrev&quot;&gt;etc.&lt;/span&gt; So 1+2+&lt;span class=&quot;abbrev&quot;&gt;...&lt;/span&gt;+n comparisons are performed
               altogether. According to the well known Gaussian sum formula these are
               exactly 1/2·(n-1)·n comparisons.  Figure 2.8 illustrates this. The
               screened area corresponds to the number of comparisons executed. It
               apparently corresponds &lt;span class=&quot;abbrev&quot;&gt;approx.&lt;/span&gt; to half of the area of a square with a
               side length of n. So it amounts to &lt;span class=&quot;abbrev&quot;&gt;approx.&lt;/span&gt;
               1/2·n&lt;sup&gt;2&lt;/sup&gt;.
               
            &lt;br /&gt;
&lt;div class=&quot;figure&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;fig.SortingByMinimumSearchAnalysis&quot;&gt;&lt;/a&gt;
               &lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;
&lt;img align=&quot;middle&quot; alt=&quot;Running time analysis of sorting by minimum search&quot; src=&quot;http://www.leda-tutorial.org/en/official/Pictures/SortingByMinimumSearchAnalysis.png&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;caption&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
How does this expression have to be judged? Is this good
                     or bad?  If we double the number of strings to be sorted, the
                     computing time quadruples!  If we increase it ten-fold, it takes
                     even 100 = 10&lt;sup&gt;2&lt;/sup&gt; times longer until the
                     program will have terminated! All this is caused by the
                     expression n&lt;sup&gt;2&lt;/sup&gt;. One says: Sorting by
                     minimum search has &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.QuadraticComplexity&quot;&gt;&lt;/a&gt;quadratic
                        complexity&lt;/i&gt;. This gives us a forefeeling that this
                     method is unsuitable for large amounts of data because it simply
                     takes far too much time.
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e3969&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
So it would be a fallacy here to say: “&lt;span class=&quot;quote&quot;&gt;For a lot of
                        money, we&#39;ll simply buy a machine which is twice as fast, then we
                        can sort twice as many strings (in the same
                        time).&lt;/span&gt;” Theoretical running time considerations offer
                     protection against such fallacies.
            &lt;br /&gt;
The number of (machine) instructions which a program
                     executes during its running time is called its &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.TimeComplexity&quot;&gt;&lt;/a&gt;time complexity&lt;/i&gt; in computer
                     science.  This number depends primarily on the size of the
                     program&#39;s input, that is approximately on the number of the strings
                     to be sorted (and their length) and the algorithm used. So
                     approximately, the time complexity of the program “&lt;span class=&quot;quote&quot;&gt;sort an
                        array of n strings by minimum search&lt;/span&gt;” is described by the
                     expression &lt;span class=&quot;math&quot;&gt;c·n&lt;sup&gt;2&lt;/sup&gt;&lt;/span&gt;.
               
            &lt;br /&gt;
c is a constant which depends on the programming language
                     used, on the quality of the compiler or interpreter, on the CPU,
                     on the size of the main memory and the access time to it, on the
                     knowledge of the programmer, and last but not least on the
                     algorithm itself, which may require simple but also time
                     consuming machine instructions.  (For the sake of simplicity we
                     have drawn the factor 1/2 into c here.)
               
               
               
               
               So while one can make c smaller by improvement of external
               circumstances (and thereby often investing a lot of money), the
               term n&lt;sup&gt;2&lt;/sup&gt;, however, always remains unchanged.
               
               
               
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e3998&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4002&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
&lt;div class=&quot;sect3&quot; lang=&quot;en&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h4 class=&quot;title&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4008&quot;&gt;&lt;/a&gt;The O-notation
                     &lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
In other words: c is not really important for the
                      description of the running time! To take this circumstance into
                      account, running time complexities are always specified in the
                      so-called &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.ONotation&quot;&gt;&lt;/a&gt;O-notation&lt;/i&gt;
                      in computer science. One says: The sorting method has running
                      time &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.Onsquare&quot;&gt;&lt;/a&gt;O(n&lt;sup&gt;2&lt;/sup&gt;)&lt;/i&gt;. The
                      expression O is also called &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.LandausSymbol&quot;&gt;&lt;/a&gt;Landau&#39;s symbol&lt;/i&gt;.
               
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4025&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4029&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4033&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
Mathematically speaking, O(n&lt;sup&gt;2&lt;/sup&gt;)
                       stands for a set of functions, exactly for all
                       those functions which, “&lt;span class=&quot;quote&quot;&gt;in the long run&lt;/span&gt;”, do not
                       grow faster than the function n&lt;sup&gt;2&lt;/sup&gt;,
                       that is for those functions for which the function
                       n&lt;sup&gt;2&lt;/sup&gt; is an upper bound (apart from a
                       constant factor.) To be precise, the following holds true: A
                       function f is an element of the set
                       O(n&lt;sup&gt;2&lt;/sup&gt;) if there are a factor c and an integer number
                       n&lt;sub&gt;0&lt;/sub&gt; such that for all n equal to or
                       greater than this n&lt;sub&gt;0&lt;/sub&gt; the following
                       holds:
               
               
            &lt;br /&gt;
&lt;div class=&quot;informalequation&quot;&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
f(n) ≤ c·n&lt;sup&gt;2&lt;/sup&gt;.
                  &lt;/div&gt;
&lt;/div&gt;
The function n&lt;sup&gt;2&lt;/sup&gt; is then called an
               &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.AsymptoticUpperBound&quot;&gt;&lt;/a&gt;asymptotically upper
                  bound&lt;/i&gt; for f.  Generally, the notation &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.fneOgn&quot;&gt;&lt;/a&gt;f(n)=O(g(n))&lt;/i&gt; says that the function f is
               asymptotically bounded from above by the function
               g.&lt;sup&gt;&lt;a href=&quot;http://www.leda-tutorial.org/en/official/ch02s02s03.html#ftn.d0e4081&quot; name=&quot;d0e4081&quot;&gt;&lt;/a&gt;&lt;/sup&gt;
               
               
                       &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4085&quot;&gt;&lt;/a&gt;
                       &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4089&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4095&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4099&quot;&gt;&lt;/a&gt;
               
               
               
            &lt;br /&gt;
A function f from O(n&lt;sup&gt;2&lt;/sup&gt;) may
                       grow considerably more slowly than
                       n&lt;sup&gt;2&lt;/sup&gt; so that, 
                       mathematically speaking, the quotient f / n&lt;sup&gt;2&lt;/sup&gt;
                       converges to 0 with growing n. An example of this is the
                       function f(n)=n. However, this does not hold for the function
                       f which describes the running time of our sorting method. This
                       method &lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;always&lt;/i&gt;&lt;/span&gt; requires
                       n&lt;sup&gt;2&lt;/sup&gt; comparisons (apart from a
                       constant factor of 1/2). n&lt;sup&gt;2&lt;/sup&gt; is
                       therefore also an &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.AsymptoticLowerBound&quot;&gt;&lt;/a&gt;asymptotically lower
                          bound&lt;/i&gt; for f. This f behaves in the long run
                       &lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;exactly&lt;/i&gt;&lt;/span&gt; like
                       n&lt;sup&gt;2&lt;/sup&gt;. Expressed mathematically: There
                       are factors c&lt;sub&gt;1&lt;/sub&gt; and
                       c&lt;sub&gt;2&lt;/sub&gt; and an integer number
                       n&lt;sub&gt;0&lt;/sub&gt; such that for all n equal to or
                       larger than n&lt;sub&gt;0&lt;/sub&gt; the following holds:
               
               
               
            &lt;br /&gt;
&lt;div class=&quot;informalequation&quot;&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
c&lt;sub&gt;1&lt;/sub&gt;·n&lt;sup&gt;2&lt;/sup&gt; ≤ f(n)
                                   ≤ c&lt;sub&gt;2&lt;/sub&gt;·n&lt;sup&gt;2&lt;/sup&gt;.
                     
                  &lt;/div&gt;
&lt;/div&gt;
So f is bounded by n&lt;sup&gt;2&lt;/sup&gt; from above 
               &lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;and&lt;/i&gt;&lt;/span&gt; from below. There also is a notation of its
               own for the set of these functions: &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.Theta&quot;&gt;&lt;/a&gt;Θ(n&lt;sup&gt;2&lt;/sup&gt;)&lt;/i&gt;.
               
               
            &lt;br /&gt;
Figure&amp;nbsp; contrasts a
                     function f which is bounded from above by O(g(n)) to a function
                     whose asymptotic behavior is described by Θ(g(n)): The
                     latter one lies in a tube around g(n), which results from the two
                     factors c&lt;sub&gt;1&lt;/sub&gt; and c&lt;sub&gt;2&lt;/sub&gt;.
                     
            &lt;br /&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4184&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4189&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4194&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;figure&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;fig.AsymptoticNotation&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;title&quot;&gt;
&lt;b&gt;Figure&amp;nbsp;2.9.&amp;nbsp;The asymptotical bounds  O and Θ&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;
&lt;img align=&quot;middle&quot; alt=&quot;The asymptotical bounds O and Θ&quot; src=&quot;http://www.leda-tutorial.org/en/official/Pictures/AsymptoticNotation.png&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;caption&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
Thereby
                       we can estimate the &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.Order&quot;&gt;&lt;/a&gt;order of
                          magnitude&lt;/i&gt; of the method used; in general, however,
                       we cannot make an exact running time prediction.  (Because in
                       general we do not know c, which depends on too many factors,
                       even if it can often be determined experimentally.&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4214&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
Frequently the statement is found in the manual that
                         an operation takes “&lt;span class=&quot;quote&quot;&gt;&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.ConstantTime&quot;&gt;&lt;/a&gt;constant time&lt;/i&gt;&lt;/span&gt;”.  By
                         this it is meant that this operation is executed with a
                         constant number of machine instructions, independently from the
                         size of the input. The function describing the running time
                         behavior is therefore in &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.O1&quot;&gt;&lt;/a&gt;O(1)&lt;/i&gt;.
               
               
               The expressions “&lt;span class=&quot;quote&quot;&gt;&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.LinearTime&quot;&gt;&lt;/a&gt;linear
                     time&lt;/i&gt;&lt;/span&gt;” and “&lt;span class=&quot;quote&quot;&gt;&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.LogarithmicTime&quot;&gt;&lt;/a&gt;logarithmic time&lt;/i&gt;&lt;/span&gt;” describe
               corresponding running time behaviors: By means of the O-notation this is
               often expressed as “&lt;span class=&quot;quote&quot;&gt;takes time &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.On&quot;&gt;&lt;/a&gt;O(n)&lt;/i&gt; and &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.Ologn&quot;&gt;&lt;/a&gt;O(log(n))&lt;/i&gt;&lt;/span&gt;”, respectively.
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4245&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4251&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4257&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4263&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4269&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4275&quot;&gt;&lt;/a&gt;
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4279&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
Furthermore, the phrase “&lt;span class=&quot;quote&quot;&gt;&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.ExpectedTime&quot;&gt;&lt;/a&gt;expected time&lt;/i&gt;&lt;/span&gt;”
                       O(g(n)) often appears in the manual. By this it is meant
                       that the running time of an operation can vary from execution
                       to execution, that the expectation value of the running
                       time is, however, asymptotically bounded from above by the
                       function g(n).
               
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4291&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
Back to our sorting algorithm: A runtime of
                     Θ(n&lt;sup&gt;2&lt;/sup&gt;) indicates that an
                     adequately big input will always bring the system to
                     its knees concerning its running time. So instead of investing
                     a lot of money and effort in a reduction of the factor c, we
                     should rather start to search for a better algorithm.
               
            &lt;br /&gt;
To give an example, we read on the manual page of
                        &lt;tt class=&quot;classname&quot;&gt;array&lt;/tt&gt; in the section
                     “&lt;span class=&quot;quote&quot;&gt;Implementation&lt;/span&gt;” that the method
                     &lt;tt class=&quot;methodname&quot;&gt;sort()&lt;/tt&gt; of arrays implements the known
                     &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.Quicksort&quot;&gt;&lt;/a&gt;Quicksort algorithm&lt;/i&gt;
                     whose (expected) complexity is O(n·log(n)) which (seen
                     asymptotically) is fundamentally better than
                     Θ(n&lt;sup&gt;2&lt;/sup&gt;). This means that
                     Quicksort defeats sorting by minimum search in the long run: If
                     n is large enough, the expression
                     c&lt;sub&gt;1&lt;/sub&gt;·n·log(n) certainly
                     becomes smaller than the expression
                     c&lt;sub&gt;2&lt;/sub&gt;·n&lt;sup&gt;2&lt;/sup&gt;,
                     independently from how large the two system-dependent
                     constants c&lt;sub&gt;1&lt;/sub&gt; and
                     c&lt;sub&gt;2&lt;/sub&gt; of the two methods actually are; the
                     quotient of the two expressions converges to 0. (For small n,
                     however, c&lt;sub&gt;1&lt;/sub&gt;·n·log(n) may
                     definitely be larger than
                     c&lt;sub&gt;2&lt;/sub&gt;·n&lt;sup&gt;2&lt;/sup&gt;;
                     indeed, Quicksort does not pay on very small arrays compared to
                     sorting by minimum search.)
               
               
                     &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4345&quot;&gt;&lt;/a&gt;
               
               
            &lt;br /&gt;
Now back to the initial question: Can we sort phone
                       books with our sorting algorithm in acceptable time? This
                       depends, in accordance to what we said above, solely on the
                       number of entries (that is the number of inhabitants of the town)
                       and on the system-dependent constant c. Applied to today&#39;s
                       machines: the phone book of Saarbrücken in any case, the one
                       of Munich maybe in some hours, but surely not the one of
                       Germany. With the method &lt;tt class=&quot;methodname&quot;&gt;sort()&lt;/tt&gt; of
                       the class &lt;tt class=&quot;classname&quot;&gt;array&lt;/tt&gt;, however, the last
                       problem is not a problem either.
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4357&quot;&gt;&lt;/a&gt;
               
               
            &lt;/div&gt;
&lt;div class=&quot;sect3&quot; lang=&quot;en&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h4 class=&quot;title&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4365&quot;&gt;&lt;/a&gt;Space complexity
                     &lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4368&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4373&quot;&gt;&lt;/a&gt;The better the time complexity of an algorithm is, the
                        faster the algorithm will carry out his work in
                        practice. Apart from time complexity, its &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.SpaceComplexity&quot;&gt;&lt;/a&gt;space complexity&lt;/i&gt; is also
                        important: This is essentially the number of memory cells
                        which an algorithm needs. A good algorithm keeps this number
                        as small as possible, too.
               
               
               &lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4381&quot;&gt;&lt;/a&gt;
               
            &lt;br /&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/null&quot; name=&quot;d0e4385&quot;&gt;&lt;/a&gt;There is often a &lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.TimespaceTradeoff&quot;&gt;&lt;/a&gt;time-space-tradeoff&lt;/i&gt;
                     involved in a problem, that is, it cannot be solved with few
                     computing time &lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;and&lt;/i&gt;&lt;/span&gt; low memory
                     consumption. One then has to make a compromise and to exchange
                     computing time for memory consumption or vice versa, depending
                     on which algorithm one chooses and how one parameterize&lt;i&gt;s it. &lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;sect3&quot; lang=&quot;en&quot;&gt;
&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.AmortizedTime&quot;&gt;&lt;/a&gt;&lt;/i&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i class=&quot;firstterm&quot;&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; name=&quot;def.AmortizedAnalysis&quot;&gt;&lt;/a&gt;&lt;/i&gt;&lt;span class=&quot;quote&quot;&gt;&lt;/span&gt;&lt;span class=&quot;quote&quot;&gt;&lt;/span&gt;
            &lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/3882290882568736214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/analysis-of-algorithm-and-data-structure.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/3882290882568736214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/3882290882568736214'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/analysis-of-algorithm-and-data-structure.html' title='Analysis of algorithm and data structure'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>1</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-8530187811157898762</id><published>2013-10-19T00:22:00.002-07:00</published><updated>2013-10-19T00:26:37.700-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>Video tag in HTML5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;In the last post I told how to optimize images? and what are the major image file formats that are supported by leading browsers. After reading that post you may be thinking what if I want to post a video rather than an image can I do that with the help of HTML?. Are there any video formats just like image file formats? The answer to all these question lies in this post.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;We all watch videos on you tube and and admire them but what exactly a video is composed of? In general we can say that a video has some graphics/pictures and a certain audio pertaining to that particular video.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;I will first tell you how you can put a video on your page with the help of new &lt;b&gt;HTML5&lt;/b&gt; element called &lt;b&gt;&amp;lt;video&amp;gt; element&lt;/b&gt; and then I will talk about different video formats. I know I am discussing this a lot ahead but it is very similar to image element, so I decided to tell this after image element. Let&#39;s have a first look of &amp;lt;video&amp;gt; element:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;video src=&quot;video/myvideo.mp4&quot; width=&quot;500&quot; height=&quot;400&quot; controls autoplay poster=&quot;firstimage/jpg&quot;&amp;gt;&amp;lt;/video&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you analyze the above code you will find many similarity between &lt;b&gt;&amp;lt;image&amp;gt;&lt;/b&gt; element and &lt;b&gt;&amp;lt;video&amp;gt;&lt;/b&gt;element. Like &amp;lt;image&amp;gt;element it also have &#39;src&#39;,&#39;width&#39; and &#39;height&#39; attributes. You already know about these attributes but let&#39;s understand their meaning in context of &lt;b&gt;&amp;lt;video&amp;gt;&lt;/b&gt;element.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;width and height&lt;/b&gt; attributes:&lt;/span&gt;&lt;/span&gt; The width and height attributes set the width and height of the&lt;br /&gt;video display area (also known as the “viewport”). If you specify a poster, the poster image will be scaled to the width and height youspecify. The video will also be scaled, but will maintain its aspect ratio (e.g., 4:3 or 16:9), so if there’s extra room on the sides, or the top and bottom, the video will be letter‑boxed or pillar‑boxed to fit into the display area size. You should try to match the native dimensions of the video if you want the best performance (so the browser doesn’t have to scale in real time).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;src: &lt;/b&gt;The src attribute is just src attiribute of &amp;lt;image&amp;gt; element src - it is a url that tells the browser where to find the source file.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;controls: &lt;/b&gt;It&#39;s a Boolean attribute. What is a Boolean attribute? A attribute that has no value is called Boolean attribute. It is either there or not. If it is there, then the Browser will add its&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;built in controls to the video display. The controls vary by browsers, so check out each browser to see what they look like.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;autoplay:&lt;/b&gt; The autoplay Boolean attribute tells the browser to start playing the video as soon&lt;br /&gt;as it has enough data.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;poster: &lt;/b&gt;The browser will typically display one frame of the video as a “poster” image to represent the video. If you remove the autoplay attribute, you’ll see this image displayed before you click play. It’s up to the browser to pick which frame to show; often, the browser will just show the first frame of the video…which is often black. If you want to show a specific image, then it’s up to you to create an image to display, and specify it by using the poster attribute.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;preload:&lt;/b&gt; The attribute preload is typically used for fine-grained control over how video loads&lt;br /&gt;for optimization purposes. Most of the time, the browser chooses how much video to load,&lt;br /&gt;based on things like whether autoplay is set and the user’s bandwidth. You can override&lt;br /&gt;this by setting preload to “none” (none of the video is downloaded until the user “plays” it), “metadata” (the video metadata is downloaded, but no video content), or “auto”&lt;br /&gt;to let the browser make the decision.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Lets&#39; now take a look at video formats. So what is a &lt;b&gt;video format&lt;/b&gt;? Think about it this way: a video file contains two parts, a video part and an audio part, and each part is encoded (to reduce size and to allow it to be played back more efficiently) using a specific encoding&lt;br /&gt;type. That encoding, for the most part, is what no one can agree on—some browser makers are enamored with H.264 encodings, others really like VP8, and yet others like the open source alternative, Theora. And to make all this even more complicated, the file that holds the video and audio encoding (which is known as a container) has its own format with its own name.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;What is a &lt;b&gt;container&lt;/b&gt;? A &lt;b&gt;container &lt;/b&gt;is a file format that&#39;s used to package up the data video,audio and meta data information.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;What is a &lt;b&gt;codec&lt;/b&gt;? A &lt;b&gt;codec&lt;/b&gt; is a software used to encode or decode a specific encoding of video or audio. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;We will be looking at three major video formats and these are :&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. &lt;b&gt;Mp4 container&lt;/b&gt; :Mp4 video format contains H.264 video encoding and AAC audio encoding files for encoding video and audio. H.264 is licensed by MPEG-LA group. There are more more than one kind H.264; each is known as profile. Mp4/H.264 is supported by&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Safari and IE9+. You may find support in some versions of chrome. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. &lt;b&gt;WebM container&lt;/b&gt;: WebM video format contains Vp8 video encoding and vorbis audio encoding. WebM was designed by google to work with Vp8 encoded videos WebM/Vp8 is supported by Firefox, Chrome, and Opera. You will find WebM formatted videos with .webm extension&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3.&lt;b&gt;Ogg container&lt;/b&gt;: Ogg video format contains Theora video encoding and Vorbis audio encoding. Theora is an open source codec. Video encoded with Theora are usually contained in Ogg file wilth .ogv extension. Ogg/Theora is supported by Firefox, Chrome and opera.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;That was all for this post in the next post we will write a program to display video on our web page and how to use our video element so that it is accessed by all major browsers. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/8530187811157898762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/video-tag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/8530187811157898762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/8530187811157898762'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/video-tag.html' title='Video tag in HTML5'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>-1.7369510000000012 39.023279599999995 54.636797 121.6404676</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-1897059346284412533</id><published>2013-10-14T21:36:00.001-07:00</published><updated>2013-10-14T21:38:03.499-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>How to optimize images</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In the last post I discussed about &amp;lt;image&amp;gt; tag and its different attributes .We even made a program in which we used &amp;lt;image&amp;gt; tag to showcase our awesome pic of Eiffel tower in our program. But what an image really? An image is a collection of pixels.&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So what is a &lt;b&gt;pixel&lt;/b&gt;? &lt;br /&gt;
A &lt;b&gt;pixel &lt;/b&gt;is the smallest picture element containing information that makes up all digital images. &lt;br /&gt;
A &lt;b&gt;pixel&lt;/b&gt; is the building block of a digital image and typically a 
photo contains pixels that are made up from 24-bit pixels. Basically, 
this means that each pixel can be made up from 8 bits of red, blue and 
green colour information. The 8 bits from each primary colour is 
actually 256 individual tones or hues, which can be combined into a 
pixel that can be any 1 of around 16.7 Million different colours.&lt;br /&gt;
When it comes to viewing a photo on your computer screen you are also
 viewing pixels.  Your computer screen is made up of it&#39;s own pixels and
 a typical screen size is 1024 x 768 (786432 &lt;b&gt;pixels&lt;/b&gt;) or just under 0.8 
Megapixels. A computer screen can usually display either 16 bit or 24 
bit colour and as we just mentioned 24 bit is ~16.7M colours. Computer 
screens generally display at 96dpi (dots per inch)&lt;br /&gt;
.&lt;br /&gt;
What is an &lt;b&gt;image format&lt;/b&gt;?&lt;b&gt;Image file formats&lt;/b&gt; are standardized means of organizing and storing digital images. Image files are composed of digital data in one of these formats that can be rasterized for use on a computer display or printer. An image file format may store data in uncompressed, compressed, or vector
 formats. Once rasterized, an image becomes a grid of pixels, each of 
which has a number of bits to designate its color equal to the color 
depth of the device displaying it.&lt;br /&gt;
&lt;br /&gt;
What are &lt;b&gt;image file sizes&lt;/b&gt;? &lt;b&gt;Image file size&lt;/b&gt; is positively correlated to the number of pixels 
in an image and the color depth, or bits per pixel, of the image. Images
 can be compressed in various ways, however. Compression uses an algorithm
 that stores an exact representation or an approximation of the original
 image in a smaller number of bytes that can be expanded back to its 
uncompressed form with a corresponding decompression algorithm. 
Considering different compressions, it is common for two images of the 
same number of pixels and color depth to have a very different 
compressed file size. Considering exactly the same compression, number 
of pixels, and color depth for two images, different graphical 
complexity of the original images may also result in very different file
 sizes after compression due to the nature of compression algorithms. 
With some compression formats, images that are less complex may result 
in smaller compressed file sizes. This characteristic sometimes results 
in a smaller file size for some lossless formats than lossy formats. For
 example, graphically simple images (i.e. images with large continuous 
regions like line art or animation sequences) may be losslessly 
compressed into a GIF or PNG format and result in a smaller file size 
than a lossy JPEG format.&lt;br /&gt;
&lt;br /&gt;
So what are &lt;b&gt;image compressions&lt;/b&gt;? &lt;br /&gt;
There are two types of &lt;b&gt;image file compression&lt;/b&gt; algorithms: lossless and lossy.&lt;br /&gt;
&lt;b&gt;Lossless compression&lt;/b&gt; algorithms reduce file size while 
preserving a perfect copy of the original uncompressed image. Lossless 
compression generally, but not exclusively, results in larger files than
 lossy compression. Lossless compression should be used to avoid 
accumulating stages of re-compression when editing images.&lt;br /&gt;
&lt;b&gt;Lossy compression&lt;/b&gt; algorithms preserve a representation of the 
original uncompressed image that may appear to be a perfect copy, but it
 is not a perfect copy. Often lossy compression is able to achieve 
smaller file sizes than lossless compression. Most lossy compression 
algorithms allow for variable compression that trades image quality for 
file size.&lt;br /&gt;
&lt;br /&gt;
What are different &lt;b&gt;image file formats&lt;/b&gt; supported by major browsers? I will give the description of all the&lt;b&gt; image file formats &lt;/b&gt;in a plain simple trying to be as uncomplicated as possible.\&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JPEG&lt;/b&gt;(Joint Photographic Experts Group) = The&lt;b&gt; JPEG &lt;/b&gt;or jpg file format is a very popular image file format because 
it uses a lot less hard drive space then other formats, but it does have
 limitations. The&lt;b&gt; JPEG&lt;/b&gt; format compresses the picture every time it is 
saved and that means the file size and picture quality are reduced every
 time it is saved. There is nothing that you can do to stop picture 
compression in the &lt;b&gt;JPG&lt;/b&gt; or &lt;b&gt;jpg&lt;/b&gt; format. If you are interested in 
maintaining a pictures quality at the highest level, you do not want to 
use .jpg or &lt;b&gt;.JPG&lt;/b&gt;. While other formats have better text quality,&lt;b&gt; JPG/jpg&lt;/b&gt; 
does work well enough in many cases. It is Internet compatible. The 
average &lt;b&gt;JPEG&lt;/b&gt; pictures is about 1.0 mega bites (1943x1702 24-bit RGB 
color image). &lt;b&gt;jpeg &lt;/b&gt;is a lossy compression(in most cases).&lt;br /&gt;
&lt;b&gt;GIF&lt;/b&gt;(Graphics Interchange Format) = &lt;b&gt;GIF&lt;/b&gt;
 is limited to an 8-bit palette, or 256 colors. This makes the GIF 
format suitable for storing graphics with relatively few colors such as 
simple diagrams, shapes, logos and cartoon style images. The GIF format 
supports animation and is still widely used to provide image animation 
effects. It also uses a lossless compression that is more effective when
 large areas have a single color, and ineffective for detailed images or
 dithered images.&lt;br /&gt;
&lt;b&gt;PNG&lt;/b&gt;(Portable Network Graphics) = The &lt;b&gt;PNG&lt;/b&gt;&amp;nbsp;
 file format was created as the free, open-source successor to GIF. The 
PNG file format supports 8 bit paletted images (with optional 
transparency for all palette colors) and 24 bit truecolor (16 million 
colors) or 48 bit truecolor with and without alpha channel - while GIF 
supports only 256 colors and a single transparent color. Compared to 
JPEG, PNG excels when the image has large, uniformly colored areas. Thus
 lossless PNG format is best suited for pictures still under edition - 
and the lossy formats, like JPEG, are best for the final distribution of
 photographic images, because in this case JPG files are usually smaller than PNG files. The Adam7-interlacing allows an early preview, even when only a small percentage of the image data has been transmitted. PNG provides a patent-free replacement for GIF and can also replace 
many common uses of TIFF. Indexed-color, grayscale, and truecolor images
 are supported, plus an optional alpha channel. PNG is designed to work well in online viewing applications like web browsers
 so it is fully streamable with a progressive display option. PNG is 
robust, providing both full file integrity checking and simple detection
 of common transmission errors. Also, PNG can store gamma and 
chromaticity data for improved color matching on heterogeneous 
platforms. Some programs do not handle PNG gamma correctly, which can cause the images to be saved or displayed darker than they should be.&lt;sup class=&quot;reference&quot; id=&quot;cite_ref-2&quot;&gt;&lt;/sup&gt; Animated formats derived from PNG are MNG and APNG. The latter is supported by Mozilla Firefox and Opera and is backwards compatible with PNG.&lt;br /&gt;
&lt;b&gt;TIFF(Tagged Image File Format)&lt;/b&gt; = The TIFF image format uses a huge amount of disk space. A typical TIFF 
picture uses about 6MB to 18MB. TIFF pictures will fill your hard drive 
very quickly but your pictures will be and stay at an extremely high 
quality. The TIFF format is well known to support a number of 
compression types. You can create a TIFF without compression or with 
something like LZW or CCITT G4. This format is great for the images that
 you are saving for history&#39;s sake, old family pictures, etc.. Large, 
non-streaming, files may not be suitable for the Internet, but suitable 
is one thing compatible is another thing. TIFF files are Internet 
compatible. There are a number of TIFF plug ins to different web 
browser; these can easily be found on the net using google. They may or 
may not support  the same compression types or TIFF variants... but 
still, if you look around carefully you are bound to find something that
 will do the job. The average TIFF pictures is about 9.9 mega bites 
(1943x1702 24-bit RGB color image).&lt;br /&gt;
&lt;b&gt;RAW&lt;/b&gt; = The RAW image format is exactly what it says. It is the raw image 
recorded directly from the cameras image sensor with no adjustments or 
corrections. It is ready to be adjusted and edited on your computer. 
Most people don&#39;t want to do that for every picture they take. This 
format is aimed at the professional photographer who wants the absolute 
best quality from every picture and is willing to work on each and every
 picture. Every camera manufacturer has their own version of RAW. It is 
not Internet compatible.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s see the difference between major file formats through an example because a picture is worth thousand words:
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;example image&quot; height=&quot;500&quot; src=&quot;http://www.1stwebdesigner.com/wp-content/uploads/2011/03/file-comparison-image-formats-zoom-in.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Let&#39;s take a look at pros and cons of all major image file formats through an example:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;image formats&quot; height=&quot;500&quot; src=&quot;http://www.ijri.org/articles/2012/22/1/images/IndianJRadiolImaging_2012_22_1_4_95396_b10.jpg&quot; width=&quot;400&quot; /&gt;
&lt;/div&gt;
That&#39;s was all for this post. In the next post I will discuss about fonts and why they are important in making a great web page.
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/1897059346284412533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/how-to-optimize-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/1897059346284412533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/1897059346284412533'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/how-to-optimize-image.html' title='How to optimize images'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-8111890722289402520</id><published>2013-10-13T10:32:00.002-07:00</published><updated>2013-10-13T10:52:26.664-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DATA STRUCTURES"/><title type='text'>Data Structure and algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Lot&#39;s of students face problem in understanding data structures. So I decided to write on this subject. I will try to make data structure as simple as possible but if there is any simpler way to understand concepts in data structure please do tell me by commenting. I&#39;ll appreciate your effort and your feedback will help me to make this content more understanding. Before knowing data structure we should be familiar with a term called &lt;b&gt;algorithm&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
So what is an &lt;b&gt;algorithm&lt;/b&gt;? An &lt;b&gt;algorithm&lt;/b&gt; is a finite step-by-step list of well defined instruction to solve a particular problem. Let&#39;s understand algorithms by a simple example:&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;algorithm example&quot; src=&quot;http://connectingdotstogod.files.wordpress.com/2012/09/554px-movie_algorithm_svg.png&quot;width=&quot;400&quot; height=&quot;400&quot; /&gt;
&lt;br /&gt;
&lt;br /&gt;
What is the purpose studying&lt;b&gt; algorithms&lt;/b&gt;?We study &lt;b&gt;algorithms&lt;/b&gt; to make a action plan to complete a particular task.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
So what is this term &lt;b&gt;data structures&lt;/b&gt;? A data structure is a 
specialized format for organizing and storing data.  General data 
structure types include the array, the file, the record, the table,
 the tree, and so on. Any data structure is designed to organize data to
 suit a specific purpose so that it can be accessed and worked with in 
appropriate ways.  In computer programming, a data structure may be 
selected or designed to store data for the purpose of working on it with
 various algorithms. In simple terms we can say &quot;a &lt;b&gt;data structure&lt;/b&gt; is a particular way of storing and organizing data in a computer so that it can be used efficiently&quot;. &lt;br /&gt;
&lt;br /&gt;
Why do we study &lt;b&gt;data structures&lt;/b&gt;?We study &lt;b&gt;data structures&lt;/b&gt; so that we can learn to write more efficient programs. But why must programs be efficient when new computers are faster every year? The reason is that our ambitions grow with our capabilities. Instead of rendering efficiency needs obsolete, the modern revolution in computing power and storage capability merely raises the efficiency stakes as we computerize more complex tasks.Creating efficient programs has little to do with “programming tricks” but rather is based on good organization of information and good algorithms.A programmer who has not mastered the basic principles of clear design&lt;br /&gt;
is not likely to write efficient programs.&lt;br /&gt;
&lt;br /&gt;
Why a programmer should have thorough knowledge of&lt;b&gt; data structures&lt;/b&gt;? &lt;br /&gt;
1. Each data structure and each algorithm has costs and benefits. Practitioners&lt;br /&gt;
need a thorough understanding of how to assess costs and benefits to be able&lt;br /&gt;
to adapt to new design challenges. This requires an understanding of the&lt;br /&gt;
principles of algorithm analysis, and also an appreciation for the significant&lt;br /&gt;
effects of the physical medium employed (e.g., data stored on disk versus&lt;br /&gt;
main memory).&lt;br /&gt;
2. Related to costs and benefits is the notion of tradeoffs. For example, it is quite&lt;br /&gt;
common to reduce time requirements at the expense of an increase in space&lt;br /&gt;
requirements, or vice versa. Programmers face tradeoff issues regularly in all&lt;br /&gt;
phases of software design and implementation, so the concept must become&lt;br /&gt;
deeply ingrained.&lt;br /&gt;
3. Programmers should know enough about common practice to avoid reinventing&lt;br /&gt;
the wheel. Thus, programmers need to learn the commonly used&lt;br /&gt;
data structures, their related algorithms, and the most frequently encountered&lt;br /&gt;
design patterns found in programming.&lt;br /&gt;
4. Data structures follow needs. Programmers must learn to assess application&lt;br /&gt;
needs first, then find a data structure with matching capabilities. To do this&lt;br /&gt;
requires competence in principles 1, 2, and 3.&lt;br /&gt;
&lt;br /&gt;
What is the relation between an &lt;b&gt;algorithm&lt;/b&gt; and a &lt;b&gt;program&lt;/b&gt;?Look at an &lt;b&gt;algorithm&lt;/b&gt; as a formula for working something out. A&lt;b&gt; program&lt;/b&gt; 
is a series of instructions for the computer that uses algorithms to 
execute the desired task. Let&#39;s understand this through and example:&lt;br /&gt;
Simple algorithm Area of rectangle A = length times Depth &lt;br /&gt;
Program to work out area would be &lt;br /&gt;
Ask user to input length &lt;br /&gt;
Ask user to input depth &lt;br /&gt;
Use area algorithm to calculate area &lt;br /&gt;
Display answer&lt;br /&gt;
&lt;br /&gt;
So what is the relation between &lt;b&gt;data structure &lt;/b&gt;and&lt;b&gt; algorithm&lt;/b&gt;? &lt;b&gt;Data structures &lt;/b&gt;use &lt;b&gt;algorithms&lt;/b&gt; for its different operations like sorting, searching, inserting, removing, and overall manipulation of their respective data.&lt;br /&gt;
&lt;br /&gt;
What is the relation between &lt;b&gt;data structures,algorithm and programs?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Algorithms + &amp;nbsp;&lt;/b&gt; &lt;b&gt;Data structures&lt;/b&gt; = &lt;b&gt;Programs&lt;/b&gt;.This simple yet powerful expression&amp;nbsp; very aptly defines the relationship between the three above mentioned terms.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all for this post and in the next post we will learn about control structures and complexity of algorithms.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/8111890722289402520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/data-structure-and-algorithm.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/8111890722289402520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/8111890722289402520'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/data-structure-and-algorithm.html' title='Data Structure and algorithm'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>2</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-5169875458771599042</id><published>2013-10-13T00:13:00.000-07:00</published><updated>2013-10-13T00:30:57.328-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>Image tag in detail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So today we will look at image tag in detail. In the last post I told you about image tag and about it&#39;s two attributes - &#39;src&#39; and &#39;alt&#39;. Today we will make a short program in which we will use &amp;lt;img&amp;gt; tag and its different attributes. But before making our program let&#39;s take a look at &lt;b&gt;relative&lt;/b&gt; and &lt;b&gt;absolute&lt;/b&gt; addresses.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So what is a &lt;b&gt;relative&lt;/b&gt; address? A url that is&lt;b&gt; relative&lt;/b&gt; only shows a partial address - like &lt;span style=&quot;color: red;&quot;&gt;images/image.jpg&lt;/span&gt;
 - and the success or failure of finding the file is contingent on 
certain conditions being met - which means the outcome can and will 
vary, depending largely how how the directories within your website are 
structured.it&amp;nbsp; is given relative to root folder.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;What is &lt;b&gt;absolute &lt;/b&gt;address?&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;An url that is&lt;b&gt; absolute &lt;/b&gt;shows the complete address. In other words, 
there is no confusion about where this item is located, as the&lt;b&gt; absolute&lt;/b&gt; 
URL gives the entire path to that file. &lt;span style=&quot;color: red;&quot;&gt;http :// mysite.com/ images/image.jpg&lt;/span&gt; is an example of an &lt;b&gt;absolute&lt;/b&gt; url.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Let&#39;s take a case I am on a tour of France and I took a wonderful picture of Eiffel tower and I want this picture on my web page. And I even want to tell the world where is Eiffel tower. I can tell the world where is Eiffel tower by a map. So here is our map:&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;center&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;350&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;https://maps.google.co.in/maps?f=q&amp;amp;source=s_q&amp;amp;hl=en&amp;amp;geocode=+&amp;amp;q=eiffel+tower&amp;amp;ie=UTF8&amp;amp;hq=&amp;amp;hnear=&amp;amp;ll=48.858228,2.294388&amp;amp;spn=0.006295,0.006295&amp;amp;t=m&amp;amp;iwloc=A&amp;amp;output=embed&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;&lt;b&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;small&gt;&lt;a href=&quot;https://maps.google.co.in/maps?f=q&amp;amp;source=embed&amp;amp;hl=en&amp;amp;geocode=+&amp;amp;q=eiffel+tower&amp;amp;ie=UTF8&amp;amp;hq=&amp;amp;hnear=&amp;amp;ll=48.858228,2.294388&amp;amp;spn=0.006295,0.006295&amp;amp;t=m&amp;amp;iwloc=A&quot; style=&quot;color: blue; text-align: left;&quot;&gt;View Larger Map&lt;/a&gt;&lt;/small&gt;&lt;/span&gt;&lt;/b&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So we got a map in our web page by using google maps and now we want to show our awesome pic that we clicked on our tour of France. Lets write the code for it:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;html lang = &quot;en&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;meta charset = &quot;utf-8&quot;&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;My first web page.&amp;lt;/title&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt; I went on a tour of France and I clicked&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; an awesome pic of Eiffel tower. Here is my pic:&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;img src =&quot;images/eiffeltower.jpg&quot; alt=&quot;eiffel tower&quot; width=&quot;600&quot; height=&quot;800&quot; /&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;so here is our web page:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I went on a tour of France and I clicked an awesome pic of Eiffel tower.Here is my pic:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;img alt=&quot;eiffel tower&quot; height=&quot;400&quot; src=&quot;http://photovide.com/wp-content/uploads/2012/03/Photos-of-the-Eiffel-Tower-06.jpg&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;In the above program we saw two new attributes - &#39;width&#39; and height &#39;attribute&#39;. &#39;width attribute of image tag decides the width of displayed image and height attributes decides the height of a displayed image. That&#39;s all for today in the next post we will see how we can optimize our images so they are displayed according to our wish. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/5169875458771599042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/image-tag-in-detail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/5169875458771599042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/5169875458771599042'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/image-tag-in-detail.html' title='Image tag in detail'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-6391864421889218882</id><published>2013-10-12T10:15:00.001-07:00</published><updated>2013-10-12T19:26:07.861-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>HTML tags and Elements</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Last time we saw how to write HTML syntax?. Today we will look at different&amp;nbsp; HTML tags that are commonly used in web pages .I already told you about basic tags - &amp;lt;html&amp;gt;,&amp;lt;head&amp;gt;,&amp;lt;body&amp;gt; in the last post. So let&#39;s take a recap.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;html lang = &quot;en&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;meta charset = &quot;utf-8&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;My first web page.&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;Welcome to my first web page.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;That was all that we did last time. But before looking at different tags lets take a look at &lt;b&gt;block&lt;/b&gt; and&lt;b&gt; inline&lt;/b&gt; elements. I told you that an element is a combination of opening tag,closing tag and content.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Element = opening tag + content + closing tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So what are &lt;b&gt;block&lt;/b&gt; element? Browser places line breaks before and after the content of a block elements, when a web page is displayed on a web browser. Block elements have a very important role in Box model and positioning of elements which we will study a little later. Now lets take a look at inline elements. What are&lt;b&gt; inline &lt;/b&gt;elements?. A browser doesn&#39;t places any line breaks before and after the content of these elements, when a web page is displayed on a web browser. One more thing about block and inline elements is that if a web page contains more than one block and inline element then all the block elements will be displayed top to bottom in the order they appear in a HTML page and all the inline elements will be displayed left to right in the order they appear in a program or HTML page.Let&#39;s look at different tags.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;p&amp;gt; = Paragraph tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It is used for writing content in HTML pages. It is a block element. Use this tag whenever you want to write paragraphs.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;img&amp;gt; = Image tag&lt;/span&gt;.&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This tag is used for placing images on a web page. Image tag contains two attributes. First we should know what is a &lt;b&gt;attribute&lt;/b&gt;? &lt;b&gt;Attributes&lt;/b&gt; are properties of elements .Each Attribute has a value which is enclosed in double quotes. First attribute is &#39;src &#39; and the second attribute is &#39;alt&#39;. The &#39;src&#39; attribute of image tag provides the source location of a image file and &#39;alt&#39; provides the alternative name for image,this name is displayed whenever image is broken or in cases when your image is inaccessible to browser due to reasons like low bandwidth etc. Image is an inline element. So if you place multiple images in your web page they all will be displayed left to right in the order they appear in your code.Here is our full image tag:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img src=&quot;Image/image.jpg&quot; alt=&quot;image&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt;a&amp;gt; = anchor tag&lt;/span&gt;.&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;This tag is used for linking web pages. It has a attribute called &#39;href&#39; whose value stores the source address this can be relative address or absolute address.I will discuss absolute and relative address in my next post.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;for example:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;a href=&quot;adress/index.html&quot;&amp;gt;HOME&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;br&amp;gt; = Breakline tag.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;It is used whenever a line break is needed after any element. It is a&lt;b&gt; void&lt;/b&gt; element that means this element doesn&#39;t house any content.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;ol&amp;gt; = Ordered list.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;ul&amp;gt; = Unordered list.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;ol&amp;gt; tag is used whenever we want to write ordered lists in a web page. Ordered lists can be referenced in any of the following ways.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. Numerals(1,2,3,4............)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. Characters(a,b,c,d..........)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3. Roman numerals(i, ii, iii, iv,........)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;ul&amp;gt; tag is used whenever we want an unordered lists for items in a web page. Unordered lists are usually marked with bullet points but bullet points can be changed by using CSS as we will see a little later.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Example of unordered list:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ol&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;item1&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;item2&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;item3&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/ol&amp;gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;item1&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;item2&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;item3&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Both &amp;lt;ol&amp;gt; and &amp;lt;ul&amp;gt; come with a &amp;lt;li&amp;gt; tag.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Both &amp;lt;ol&amp;gt; and &amp;lt;ul&amp;gt; are block elements.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;li&amp;gt; = list items.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;form&amp;gt; = Form tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;It is used for developing forms in a web page.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Form tag have many other elements which we will look in detail when will study forms.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;div&amp;gt;= div tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It is used for grouping block elements so that they can be styled together. It is a block element.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;span&amp;gt; = span tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It is used for grouping inline element so that they can be styled together.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;blockquote&amp;gt; = blockquote tag.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This tag is used for writing quotes in HTML. It is an block element. The content written inside this tag appears as quoted when displayed in a web browser.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;That&#39;s all for today in the next post I will discuss about absolute and relative address and we will also have a glimpse of new HTML5 elements. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/6391864421889218882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/html-tags-and-elements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/6391864421889218882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/6391864421889218882'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/html-tags-and-elements.html' title='HTML tags and Elements'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-2787006412546222140</id><published>2013-10-10T07:54:00.000-07:00</published><updated>2013-10-12T19:15:14.838-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>Understanding HTML syntax</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;What is Syntax? Syntax defines the rules of writing a&amp;nbsp; particular language. Let&#39;s build our first&amp;nbsp; first web page today. During the process of building the web page we will look at the basic building blocks of a web page. We start a html document with opening &amp;lt;html&amp;gt; tag and end it with a closing &amp;lt;/html&amp;gt; tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;html&amp;gt;&amp;nbsp;&amp;nbsp; //first step in writing html page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Inside the &amp;lt;html&amp;gt; tags we include &amp;lt;head&amp;gt; tags and &amp;lt;body&amp;gt; tags.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Inside the head tag we have &amp;lt;title&amp;gt; tag. It gives title to a web page and it is displayed on the title bar when a web page is loaded on a web browser. The process of writing tags inside another tag is called nesting. The outer tag is called as parent tag and tag&#39;s inside the parent tag are called children of parent tag - first-child,second-child, ..............nth-child. So let&#39;s include &amp;lt;title&amp;gt; tag inside&amp;nbsp; &amp;lt;head&amp;gt; tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;My first web page&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;welcome to my first web page&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Let&#39;s refine our page according to latest HTML standard. To do this task let&#39;s take a look at history of html versions and DOCTYPEs. So what is a DOCTYPE? The html syntax requires a DOCTYPE to be specified to ensure that the web browser renders the page in a standard mode. Other than this DOCTYPE has no other purpose.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;There are different DOCTYPEs for different versions of html.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;1.HTML 4.01 transitional:&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://w3.org/TR/html4/strict.dtd&quot;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;2.HTML 4.01 STRICT: &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;http://w3.org/TR/html4/frameset.dtd&quot;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;3.HTML 3.2:&lt;/span&gt;&lt;br /&gt; &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;DOCTYPEs of XHTML&amp;nbsp; versions:&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;1.XHTML 1.0 transitonal&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;2.XHTML 1.0  strict:&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;3.XHTML 1.0 frameset:&amp;nbsp;&lt;/code&gt;&lt;code&gt;&lt;code&gt; &lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&lt;code&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&quot;&amp;gt;&lt;/code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;4.XHTML 2.0 transitonal:&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&amp;gt;&lt;/code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The History of HTML&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The first version of HTML didn&#39;t have a version number, it was just 
called &quot;HTML&quot; and was used to put up simple Web pages back in 1989 - 
1995. In 1995, the IETF (Internet Engineering Task Force) standardized 
HTML and numbered it &quot;HTML 2.0&quot;.
&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;code&gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;In 1997, the World Wide Web Consortium (W3C) presented the next version of HTML, HTML 3.2. It was folllowed by HTML 4.0 in 1998 and 4.01 in 1999.
&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Then the W3C announced that it would not be creating new versions
 of HTML, and would begin to focus on extensible HTML or XHTML. They 
recommend Web designers use HTML 4.01 for their HTML documents.
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Around this point, development split off. The W3C focused on 
XHTML 1.0, and things like XHTML Basic became recommendations in 2000 
and onwards. But Web designers didn&#39;t want to move to the rigid 
structure of XHTML, so in 2004, the &lt;a href=&quot;http://www.whatwg.org/&quot; target=&quot;_blank&quot;&gt;Web Hypertext Application Technology Working Group&lt;/a&gt; (WHATWG) began working on a new version of HTML that is not as strict as XHTML called HTML5.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;Difference between HTML and XHTML? &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;There are a number of differences
 between XHTML and HTML. But for now, all you need to know is that XHTML
 is HTML 4.01 re-written as an XML application. If you write XHTML, all 
your attributes will be quoted, your tags closed, and you could edit it 
in an XML editor. HTML is a lot looser than XHTML because you can leave 
quotes off attributes, leave tags like &amp;lt;p&amp;gt; without a closing tag 
&amp;lt;/p&amp;gt; and so on.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The latest version of HTML is HTML5 and DOCTYPE for it is&amp;lt;!doctype html&amp;gt;. So we don&#39;t have to write those complex doctype&#39;s as we used write in older versions of the HTML. There are many new features of HTML5 which we will see later.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Before writing our code according to HTML5 standard lets look at one more thing i.e., character encoding.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So what is character encoding?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;For the HTML syntax, Web developers are required to declare the
    character encoding. There are three ways to do that:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;At the transport level; for instance, by using the HTTP&lt;/span&gt; &lt;code&gt;Content-Type&lt;/code&gt;
      &lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;header.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Using a Unicode Byte Order Mark (BOM) character at the start of
      the file. This character provides a signature for the encoding
      used.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Using a&lt;/span&gt; &lt;code class=&quot;external&quot;&gt;&lt;a href=&quot;http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-meta-element&quot;&gt;meta&lt;/a&gt;&lt;/code&gt; &lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;element with a&lt;/span&gt; &lt;code class=&quot;external&quot; title=&quot;attr-meta-charset&quot;&gt;&lt;a href=&quot;http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-meta-charset&quot;&gt;charset&lt;/a&gt;&lt;/code&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;      attribute that specifies the encoding within the first 1024 bytes of
      the document; for instance&lt;/span&gt;, &lt;code&gt;&amp;lt;meta charset=&quot;UTF-8&quot;&amp;gt;&lt;/code&gt;
      &lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;could be used to specify&lt;/span&gt; &lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;the UTF-8 encoding. This replaces the need
      for&lt;/span&gt;
      &lt;code&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
      although that syntax is still allowed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;For the XML syntax, Web developers have to use the rules as set forth in the
    XML specification to set the character encoding.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So here is our code in HTML5 standard:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;html lang=&quot;en&quot;&amp;gt; &amp;lt;!--it tells browser that that this program is&amp;nbsp;&amp;nbsp; written in english --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;title&amp;gt;My first web page.&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;p&amp;gt;Welcome to my first web page.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;so that&#39;s all for today in the next post I will discuss about different HTML elements.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;code&gt; &lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt; &lt;/code&gt;&lt;br /&gt;
&lt;div&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/2787006412546222140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/lets-build-our-first-first-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/2787006412546222140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/2787006412546222140'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/lets-build-our-first-first-web-page.html' title='Understanding HTML syntax'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-7246735083291473557</id><published>2013-10-08T19:51:00.001-07:00</published><updated>2014-04-18T01:59:10.833-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>Comments and validation in HTML/CSS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Let&#39;s continue from where we left. So what are comments? . Comments are those portion of HTML code which are ignored by a web browser. These are written to increase the understandability of a HTML/CSS&amp;nbsp; code. Comments also help in organizing our code by putting different labels for different portions of the code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So how do we put comments in HTML?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;lt;!-- This is a comment.Comments are ignored by the browsers --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;//This is a single line comment in CSS.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;/* This is a multi line comment in CSS.*/ &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;We&amp;nbsp; should use comments in complex codes so that other people can understand our code in a better manner.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;What is validation? .Validation basically means checking your code for any errors. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;In particular, an HTML validator checks to make sure the HTML code on your web page complies with the standards set by the
W3 Consortium (the organization that issues the HTML standards). There are various types of validators — some check only for
errors, others also make suggestions about your code, telling you when a certain way of writing things might lead to (say)
unexpected results.


&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The W3 Consortium has its own online validator which you can use for free. It may be found at:
&lt;a href=&quot;http://validator.w3.org/&quot;&gt;http://validator.w3.org/&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;A CSS validator checks your Cascading Style Sheets in the same manner; basically, most will check them to make sure
that they comply with the CSS standards set by the W3 Consortium. There are a few which will also tell you which
CSS features are supported by which browsers (since not all browsers are equal in their CSS implementation).
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Again, you can get free validation for your style sheets from the W3 Consortium:
&lt;a href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;http://jigsaw.w3.org/css-validator/&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;There are numerous other validators around, both free and commercial, focusing on various aspects of ensuring that
your code will run trouble-free across browsers and platforms. You can find a list of free ones (including specialized
validators like those that check your code for accessibility) from
Free HTML Validators, CSS Validators,
Accessibility Validators at http://www.thefreecountry.com/webmaster/htmlvalidators.shtml
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note that validating your web page does not ensure that it will appear as you want in various browsers. It merely ensures
that your code is without HTML or CSS syntax errors. Ensuring that your code appears correctly in different browsers require
cross browser testing.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Why Validate Your HTML Code?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The proponents of HTML validation (and CSS validation, of course) say that there are a number of reasons why you should
validate your code:
&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
It Helps Cross-Browser, Cross-Platform and Future Compatibility&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Although you may be able to create a web page that appears to work on your favourite browser (whatever that may be),
your page may contain HTML errors (or CSS errors) that do not show up with that browser due to an existing quirk or
bug. Another person using a different browser that does not share that particular bug will end up viewing a page that
does not show up correctly. It is also possible that later versions of your browser will fix that bug, and
your page will be broken when people use the latest incarnation of the browser.
&lt;br /&gt;


Coding your pages so that it is correct without errors will result in pages that are more likely to work across browsers and
platforms (ie, different systems). It is also a form of insurance against future versions of browsers, since all
browsers aim towards compliance with the existing HTML and CSS standards.
&lt;/span&gt;

&lt;/li&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Search Engine Visibility&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
When there are errors in a web page, browsers typically try to compensate in different ways. Hence some browsers may
ignore the broken elements while others make assumptions about what the web designer was trying to achieve. The problem is
that when search engines obtain your page and try to parse them for keywords, they will also have to make certain decisions
about what to do with the errors. Like browsers, different search engines will probably make different decisions about
those errors in the page, resulting in certain parts of your web page (or perhaps even the entire page if your error is
early in the page) not being indexed.
&lt;br /&gt;


The safest way, it is held, is to make sure that your web page validates error-free. That way, there is no dispute about
which part of your page should be scanned for keywords and the like.
&lt;/span&gt;

&lt;/li&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Professionalism&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Even if you test your web site with all the various browsers in existence on all the platforms in use (Mac, Linux, Windows,
FreeBSD, etc) and find that it works perfectly in all, errors in your site reflect poorly on your skill as a web developer.
&lt;br /&gt;


The issue is two-fold: firstly, a poorly coded web page reveals that either the web designer does not know his stuff
or is a sloppy worker; secondly, it affects his marketability.
&lt;/span&gt;&lt;br /&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Why Not Validate?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Those who are against a blanket rule about validation often cite the following reasons:
&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Validation is No Guarantee that Page Works&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Even if you validate your code, you still have to test it in the various browsers. Having code with no syntax errors does
not mean that the HTML or CSS code does what you want. Hence some of the proponents of this view argue that the main goal
when designing a web page is to make sure it is viewable and usable by your visitors, not some esoteric goal of standards
compliance.
&lt;/span&gt;

&lt;/li&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Time Constraint for Conversion&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
In an ideal world, you want all your pages to be usable and error free. In the real world however, many web designers with
thousands of existing pages will be hard-pressed to find time to convert all those pages so that they validate correctly.
Since these pages are already doing well on the web, both with existing browsers and search engines, time is better spent
doing work that is actually productive.
&lt;/span&gt;

&lt;/li&gt;
&lt;li&gt;&lt;h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
The Average Visitor Does Not Check Your Source Code&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Against the argument about professionalism is the counter-argument that the average visitor to your site is not
likely to go around your site viewing the source code to your pages in an effort to locate HTML or CSS errors. To the
visitor, how the page appears in his/her browser is the true test of the web designer&#39;s skill.
&lt;/span&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
How Often Should I Validate?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Some people validate every time they make a modification to their pages on the grounds that careless mistakes can occur
any time. Others validate only when they make a major design change.
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;I always validate the template for my pages when I make a major design change. I try to validate my pages each time
I make modifications, although I must admit that I sometimes forget to do so (with the occasional disastrous consequence;
Murphy&#39;s Law doesn&#39;t spare webmasters).
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;I find that having an offline validator helps to make sure that I remember to validate: having to go online just to
validate my pages tends to make me put off validation till later, with the result that it&#39;ll occasionally get overlooked.
For those not familiar with the terminology I use, when I say &quot;offline validator&quot; I simply mean a validator that I
can download and install in my own computer so that I can run it on my pages without having to go to the W3 Consortium&#39;s
website. You can find offline validators
on the free validators page
I mentioned earlier, that is, http://www.thefreecountry.com/webmaster/htmlvalidators.shtml
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;The HTML Tidy validator (listed on that page) is available for numerous platforms (including Linux, Mac, Windows, etc)
and has proven helpful to many webmasters the world over.
&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Conclusion&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Validating your HTML and CSS code for standards compliance has certain benefits: it protects your pages from problems
arising from syntax errors in your code due to different ways of interpreting errors by the search engines and
other browsers. If, however, you have a large number of existing pages that have not been validated and corrected,
but nonetheless work well in search engines and other browsers, you might need to consider some sort of strategy (such as
the one I used) to prevent webmaster-overload.
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/7246735083291473557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/comments-and-validation-in-htmlcss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/7246735083291473557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/7246735083291473557'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/comments-and-validation-in-htmlcss.html' title='Comments and validation in HTML/CSS'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1830978898014252266.post-2705522843031984037</id><published>2013-10-07T11:24:00.001-07:00</published><updated>2014-04-18T01:59:39.243-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS"/><title type='text'>Introduction to HTML/CSS course</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Hi! everyone my name is Deepak , I am doing my b.tech from Computer Science.Well that was my short introduction. This is my first post and I hope that you people will like my posts. I am starting this blog for all those people who want to learn how to make websites and how to do all those cool things on a web page that we all see and say Wowwwwwwwww!!!!!. For all the professionals out there I want sincere feedback&#39;s from you people on my posts . If on any occasion my concepts are wrong or there is some better way to do some particular thing please do correct me and tell the better way to do that particular thing. It&#39;s not that I am a professional , it&#39;s my journey to learn some new things and tell you all the things that I know.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;It will be a full web-designing/development course in this course I will cover HTML, CSS , JavaScript, php and adobe Photoshop concepts. Firstly we will cover basics of all these things and then we move on to advanced concepts.We will start with HTML and CSS because these are the two basic elements to build a web-page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So what is HTML? HTML stands for &#39;HyperText Markup Language&#39;. Basically HTML&amp;nbsp; is a language which is used for giving structure to a page. In HTML we use &#39;tags&#39; to enclose content that&#39;s why it&#39;s called as markup language. &#39;Tags&#39; are closely associated with &#39;elements&#39;. So what are &#39;tags&#39; and &#39;elements&#39;?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt; &amp;gt; = Keywords enclosed within angular brackets constitutes a tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt; &amp;gt; = Opening tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt; / &amp;gt; = Closing tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;/ = In HTML forward slash is used for closing of elements.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Opening tag + Content + Closing tag = Element.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;For example: &amp;lt;title&amp;gt; my homepage &amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (this tag gives title to a web page) &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;So where do we write this language? or how do we compile and run the code written in HTML?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Code written in HTML language are run on the browsers and we need a text editor to write HTML codes . The editor can be as simple as notepad present in windows or some WYSIWYG&amp;nbsp; programs like Dreamweaver, coda etc. It depends on you what you think is comfortable and apt for you. I&#39;ll suggest you to make your initial program&#39;s on notepad so you can have your concepts grounded before switching on WYSIWYG editors.All the HTML files are saved with an extension .html .All the browsers come with pre-installed programs(interpreters) to run these .html files.That&#39;s all for today in next post we will learn about comments, validators and then we will make our first web page.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdesigners-column.blogspot.com/feeds/2705522843031984037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/hi-everyone-my-name-is-deepak-i-am.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/2705522843031984037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1830978898014252266/posts/default/2705522843031984037'/><link rel='alternate' type='text/html' href='http://webdesigners-column.blogspot.com/2013/10/hi-everyone-my-name-is-deepak-i-am.html' title='Introduction to HTML/CSS course'/><author><name>charmer</name><uri>http://www.blogger.com/profile/12634549788565984111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8t4VmhwC3-uHvfPoQS8g_rgZmDhsdrgDM-i0qpezPIrQX5xuDZfvtJIa39IiyHH4ZpeRGgfKx38CNGrrpBPiJvwFTwG7CMoh1HOQIFrWLf4ADhHs0KaWHKqdc84JHQ/s1600/*'/></author><thr:total>0</thr:total><georss:featurename>Kanpur, Uttar Pradesh, India</georss:featurename><georss:point>26.449923 80.3318736</georss:point><georss:box>26.222452999999998 80.0091501 26.677393 80.654597099999989</georss:box></entry></feed>