<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ankit Virparia &#187; markup</title>
	<atom:link href="http://ankit.co/tag/markup/feed" rel="self" type="application/rss+xml" />
	<link>http://ankit.co</link>
	<description>A Programmer, Designer and Trainer</description>
	<lastBuildDate>Sun, 11 May 2014 04:15:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Introduction to HTML</title>
		<link>http://ankit.co/tutorials/html/introduction-to-html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=introduction-to-html</link>
		<comments>http://ankit.co/tutorials/html/introduction-to-html#comments</comments>
		<pubDate>Mon, 13 May 2013 09:46:44 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Introdcution]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[markup]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3374</guid>
		<description><![CDATA[<p>What is HTML? HTML is a language derived from XML to describe web pages. HTML stands for &#8220;Hyper Text Markup language&#8221;. Before we start learning HTML in detail let us first understand: Markup Language, XML, etc&#8230; What is Markup Language? A markup language is a system to describe data (information) in a way that is [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/introduction-to-html">Introduction to HTML</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>What is HTML?</h2>
<p>HTML is a language derived from XML to  describe web pages. HTML stands for &ldquo;Hyper Text Markup language&rdquo;. Before we  start learning HTML in detail let us first understand: Markup Language, XML,  etc&#8230;
</p>
<h2>What  is Markup Language?</h2>
<p>A markup language is a system to  describe data (information) in a way that is distinguishable from the language  syntax. For example we would like to describe/store student records in a file  named: <strong>student_database.txt</strong> then how  we can write it? And how a computer program can read the generated file later  on as and when required?<br />
  Let us decide various parameters for  the same.</p>
<ul>
<li>We would like to store student id,  name, contact no, email, gender in the file.</li>
<li>Each column is separated by space.</li>
<li>Each record is separated by new line  character. </li>
</ul>
<p>By considering above constrains in mind if we  design a sample student file then it will look like:</p>
<p>  1 <strong>Ankit</strong> 9925720005 <a href="mailto:ankit@ankit.co">ankit@ankit.co</a> male<br />
  2 Sonali 9925720005 <a href="mailto:sonali@ankit.co">sonali@ankit.co</a> female<br />
  3 Mansukh 9925720005 <a href="mailto:mansukh@ankit.co">mansukh@ankit.co</a> male</p>
<p>And here we go. Our file format is ready! But the  problem comes when we have space character in data. E.g. name of the student is  not &ldquo;Ankit&rdquo;. I would like to store name as &ldquo;Ankit Virparia&rdquo; then the 1st  line of the file will become</p>
<p>  1 <strong>Ankit Virparia</strong> 9925720005 <a href="mailto:ankit@ankit.co">ankit@ankit.co</a> male<br />
  2 Sonali 9925720005 <a href="mailto:sonali@ankit.co">sonali@ankit.co</a> female<br />
  3 Mansukh 9925720005 <a href="mailto:mansukh@ankit.co">mansukh@ankit.co</a> male</p>
<p>But this will not be detected by our stupid  computer program! And it will consider &ldquo;Virparia&rdquo; as phone number and  &ldquo;9925720005&rdquo; as email which is absolutely wrong! What&rsquo;s the solution? Let&rsquo;s try  one more approach and use &ldquo;$&rdquo; as a separator instead of space.</p>
<p>  1$<strong>Ankit Virparia</strong>$9925720005$<a href="mailto:ankit@ankit.co">ankit@ankit.co</a>$male<br />
  2$Sonali$9925720005$<a href="mailto:sonali@ankit.co">sonali@ankit.co</a>$female<br />
  3$Mansukh$9925720005$<a href="mailto:mansukh@ankit.co">mansukh@ankit.co</a>$male</p>
<p>By considering $ as a separator our program can  read the information correctly. But again what if we want to store $ as a data?  Problem&#8230; Problem&#8230; Problem&#8230;</p>
<p>The ultimate solution is standardizing a language  which is known to everybody! That is what we call as Markup Language. XML is a  most popular markup language.
</p>
<h2>What is XML?</h2>
<p><strong>XML: Extensible Markup Language</strong> is a markup  language which defines a set of rules to format information in a file that is interpretable  by human as well as machine.</p>
<p>XML is mainly divided into 2 parts. 1) Markup  syntax 2) Information/User Data to be stored<br />
<h3>How do we write markup syntax in XML?</h3>
<p>  To write markup syntax, we use several  keywords/characters such as &lt;, &gt;, space, &ldquo;, &lsquo;, etc. We represent the  information like this: &lt;tag&gt;INFORMATION GOES HERE&lt;/tag&gt;. Pair of  &lt;&gt; blocks are known as tag. XML gives freedom to introduce tag with any  name. Developer has to introduce a tag name and write the software which will  understand the meaning of the tag written. One more important aspect of tag  based language is it can also be nested. For example: student data sheet  represented in XML way.</p>
<p>&lt;allstudents&gt;<br />
  &lt;student&gt;<br />
  &lt;id&gt;1&lt;/id&gt;<br />
  &lt;name&gt;Ankit Virparia&lt;/id&gt;<br />
  &lt;contact&gt;9925720005&lt;/contact&gt;<br />
  &lt;email&gt;ankit@ankit.co&lt;/email&gt;<br />
  &lt;gender&gt;male&lt;/gender&gt;<br />
  &lt;/student&gt;<br />
  &lt;student&gt;<br />
  &lt;id&gt;2&lt;/id&gt;<br />
  &lt;name&gt;Sonali&lt;/id&gt;<br />
  &lt;contact&gt;9925720005&lt;/contact&gt;<br />
  &lt;email&gt;sonali@ankit.co&lt;/email&gt;<br />
  &lt;gender&gt;female&lt;/gender&gt;<br />
  &lt;/student&gt;<br />
  &lt;student&gt;<br />
  &lt;id&gt;3&lt;/id&gt;<br />
  &lt;name&gt;Mansukh&lt;/id&gt;<br />
  &lt;contact&gt;9925720005&lt;/contact&gt;<br />
  &lt;email&gt;mansukh@ankit.co&lt;/email&gt;<br />
  &lt;gender&gt;male&lt;/gender&gt;<br />
  &lt;/student&gt;<br />
  &lt;/allstudents&gt;</p>
<p>So, Here in our example I have introduced my own  tags: &lt;allstudents&gt;, &lt;student&gt;, &lt;id&gt;, &lt;name&gt;, etc. And  I will write my program/parser/reader in such a way that it can also understand  the newly introduced tags. You must have a question on your mind that is: What  if we need to store a tag as a data/information?</p>
<p>Answer is very simple. There is a special syntax  available in XML by which we can stop the parser by processing nested tags. Syntax  is: &lt;![CDATA[&nbsp;and&nbsp;]]&gt; We  also call it as CDATA section. </p>
<p><strong>For example:</strong><br />
  &lt;tag&gt;<br />
  &lt;![CDATA[<br />
  &lt;not_in_use&gt;test&lt;/not_in_use&gt;<br />
  ]]&gt; <br />
&lt;/tag&gt;</p>
<p><strong>Note:</strong> A CDATA  section cannot contain the string <strong>&quot;]]&gt;&quot;</strong>. Nesting of CDATA sections  are not allowed. The <strong>&quot;]]&gt;&quot;</strong> that marks the end of the CDATA section  cannot contain spaces or line breaks.</p>
<h2>What is a tag?</h2>
<p>Tag is  a markup language which starts with &ldquo;&lt;&rdquo; and ends with &ldquo;&gt;&rdquo;.  There are 3 types of tags</p>
<ul>
<li><em>start-tags</em>; for example:&nbsp;&lt;section&gt; </li>
<li><em>end-tags</em>; for example:&nbsp;&lt;/section&gt; </li>
<li><em>empty tag where there is no data/nesting of tag is  possible</em>; for example:&nbsp;&lt;line-break&nbsp;/&gt; </li>
</ul>
<h2>What is attribute?</h2>
<p>It&rsquo;s also a markup syntax where  by argument in the tag can be passed. It&rsquo;s in the format of name-value pair  which can be written in start tag/empty tag.<br />
  Eg. <br />
  &lt;tag_name name=&rdquo;value&rdquo; name2=&rdquo;value2&rdquo; &gt;data&lt;/tag_name&gt;<br />
  &lt;tag_name name=&rdquo;value&rdquo; name2=&rdquo;value2&rdquo; / &gt;</p>
<h2>Use of XML:</h2>
<p>  So we can conclude that XML is useful to store user data by  introducing custom tags. </p>
<h2>Introduction to HTML (Again)? </h2>
<p> HTML is a language derived from XML to  describe web pages. HTML stands for &ldquo;Hyper Text Markup language&rdquo;. <br />
  As per our discussion, we can conclude that XML is used to store information  using custom tags. And the parser/reader for the same will also be the custom  one. But HTML is the language which has fixed set of tags (Custom tags are not  allowed) and for which we already have parser/reader programs also known as  BROWSER (Mozilla Firefox, Google Chrome, Apple Safari, Opera, Internet  Explorer, etc.). So, we as a developer will learn HTML technology which browser  already knows (how to parse) and by which we can generate a custom web page. </p>
<h3>HTML file extensions</h3>
<p><strong>.HTML<br />
.HTM</strong><br />
  Initially only 3 characters where supported as a file  extension. So &ldquo;.htm&rdquo; was used. But now a days &ldquo;.html&rdquo; is popular and supported  by all modern operating systems.</p>
<h2>HTML editors</h2>
<p>  Notepad,  Wordpad, Notepad++, Adobe Dreamweaver, Quonta Plus, Any text editor can be used  to write HTML</p>
<h2>HTML characteristics</h2>
<ul>
<li>HTML is not a case sensitive language</li>
<li>HTML is used to generate a view. It is not used to store/transport information</li>
<li>It provides the more flexible way to deign web pages along with the text.</li>
<li>Links can also be added to the web pages so it help the readers to browse the information of their interest.</li>
<li>You can display HTML documents on any platforms such as Macintosh ,Windows and Linux etc.
	</li>
</ul>
<h3>HTML Versions and Standards</h3>
<p><a href="http://www.w3.org/MarkUp/#xhtml1">XHTML 1.0</a> | <a href="http://www.w3.org/MarkUp/#html4">HTML 4.01</a> | <a href="http://www.w3.org/MarkUp/#xhtml-basic">XHTML basic</a> | <a href="http://www.w3.org/MarkUp/#xhtml-modularization">Modularization of XHTML</a> | <a href="http://www.w3.org/MarkUp/#xhtml11">XHTML 1.1</a> | <a href="http://www.w3.org/MarkUp/#xml-events">XML Events</a></p>
<h3>HTML and Browser Supports</h3>
<p>Test your browser at: <a href="http://html5test.com/">http://html5test.com/</a></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/introduction-to-html">Introduction to HTML</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/introduction-to-html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
