<?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>HTML Archives</title>
	<atom:link href="https://www.johnpatel.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>SEO, WordPress, Make Money, Online Jobs, Reviews</description>
	<lastBuildDate>Tue, 17 Mar 2020 05:17:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">145939692</site>	<item>
		<title>HTML Span Tag &#8211; How to use span tag in HTML Coding</title>
		<link>https://www.johnpatel.com/html-span/</link>
		
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Fri, 14 Jun 2019 14:53:26 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<guid isPermaLink="false">https://www.johnpatel.com/?p=1685</guid>

					<description><![CDATA[<p>The HTML Span Tag is useful for applying custom styles to inline elements. It is a generic inline container for various inline elements. Under the span tag container, you can set the style and then implement them to different elements. There are two ways in which you can use the HTML Span tag. In a [&#8230;]</p>
<p>The post <a href="https://www.johnpatel.com/html-span/">HTML Span Tag &#8211; How to use span tag in HTML Coding</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" src="https://www.johnpatel.com/wp-content/uploads/2019/06/HTMl-Span-Tag.jpg" alt="HTML Span Tag" title="HTML Span Tag"/></p>
<p>The <strong>HTML Span Tag</strong> is useful for applying custom styles to inline elements. It is a generic inline container for various inline elements. Under the span tag container, you can set the style and then implement them to different elements.</p>
<p>There are two ways in which you can use the HTML Span tag. In a first way, you can declare the styling in a different place under the &lt;style&gt; tag. Then to use the style in elements simply put them under <strong>&lt;span&gt; &lt;/span&gt;</strong> tags.</p>
<h5>For example:</h5>
<pre>
<xmp>
<! DOCTYPE html>
<html>
<head>
<! -- it’s the first way to use span tag -->

     <style>
	span{
	  color: red;
	  text-decoration: underline;
	  font-size: 30px;
	}
     </style>

</head>

<body>
	<h4> HELLO EARTH! </h4>
	<span> This effect is due to the span </span> </br>
	<span> Follow for more </span> </br>
	<span> Interesting articles! </span> </br>
</body>
</html>
</xmp>
</pre>
<h5>OUTPUT:-</h5>
<p><strong>HELLO EARTH</strong><br />
<span class="red">This effect is due to the span<br />
Follow for more<br />
Interesting articles!</span></p>
<p>In a second way, you can define the inline style under the span tag. The syntax will be:</p>
<pre>
<xmp>
<span style=""> Text goes here </span>
</xmp>
</pre>
<p>Let’s understand it better by looking at this example.</p>
<pre>
<xmp>
<! DOCTYPE html>
<html>
<head>
<! -- it’s the second way to use span tag -->
</head>

<body>

   <h4> HELLO EARTH </h4>
   <span style="color:blue;"> First Text </span> </br>
   <span style="background-color:lightgreen;"> Second Text </span> </br>

</body>
</html>

</xmp>
</pre>
<h5>OUTPUT :-</h5>
<p><span style="color:blue;">First Text</span><br />
<span style="background-color:lightgreen;"> Second Text </span></p>
<h2>Difference between HTML Span tag and Div tag</h2>
<p>The Span HTML tag and Div HTML tag have a very handsome difference in them. First of all <span> tag is inline element whereas &lt;div&gt; tag is block-level element. However, both tags don’t require attributes with common CSS and class. Span tag takes only required width whereas the Div tag takes the whole width which is available.</p>
<p>Use Mettl to automate your <a href="https://mettl.com/coding-tests/" rel="nofollow noopener noreferrer" target="_blank">Coding Assessment</a> Test. </p>
<p><strong>More Articles:</strong></p>
<ul>
<li><a href="https://www.johnpatel.com/html-vs-css/">HTML vs CSS</a></li>
<li><a href="https://www.jpseo.co.in/clixsense-reviews/">Make money online by ClixSense</a></li>
<li><a href="https://www.gradecalculator.tech/cunyfirst/">CUNYfirst – What is it? How to Login Or Activate Account?</a></li>
</ul>
<p>The post <a href="https://www.johnpatel.com/html-span/">HTML Span Tag &#8211; How to use span tag in HTML Coding</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1685</post-id>	</item>
		<item>
		<title>HTML vs CSS &#8211; Must Know Difference Before Start Learning</title>
		<link>https://www.johnpatel.com/html-vs-css/</link>
		
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Fri, 14 Jun 2019 14:51:33 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<guid isPermaLink="false">https://www.johnpatel.com/?p=1677</guid>

					<description><![CDATA[<p>Hypertext markup language (HTML) and Cascade Styling Sheets (CSS) are the most popular programming languages for website development. Although HTML is not a programming language, for now, to compare HTML vs CSS, we can consider HTML as a programming language. However, to build a perfect website the HTML and CSS both are necessary. So, let’s [&#8230;]</p>
<p>The post <a href="https://www.johnpatel.com/html-vs-css/">HTML vs CSS &#8211; Must Know Difference Before Start Learning</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hypertext markup language (HTML) and Cascade Styling Sheets (CSS) are the most popular programming languages for website development. Although HTML is not a programming language, for now, to compare <strong>HTML vs CSS</strong>, we can consider HTML as a programming language. However, to build a perfect website the HTML and CSS both are necessary. So, let’s know how they are different from each other.</p>
<h2>HTML vs CSS</h2>
<p><img decoding="async" src="https://www.johnpatel.com/wp-content/uploads/2019/06/HTML-vs-CSS.jpg" alt="HTML vs CSS" title="HTML vs CSS" /></p>
<h4>How they are different?</h4>
<p>In simple words, both languages have their own very different functionalities. HTML is used for creating the content of the website like images, texts, pages, links, etc. CSS is responsible for styling or designing that content. To make it clearer we can tell that the doors, windows, and shacks of a house are made using HTML and the painting or designing of the home is done using CSS. </p>
<p>Another example is that, HTML is used to make our head and body. Whereas looks and appearance are the part of CSS. It makes the first point clear about CSS vs HTML.</p>
<div class="text-center">
<img decoding="async" src="https://www.johnpatel.com/wp-content/uploads/2019/06/Difference-Between-HTML-and-CSS.jpg" alt="Difference Between HTML and CSS" title="Difference Between HTML and CSS"/>
</div>
<h3>HTML</h3>
<p>After looking at the above illustration you might have got the basic idea behind both the languages. In fact, this is not only the thing in HTML vs CSS. HTML allows you to add content like paragraphs, images, hyperlinks and other information on webpages. Just like you have opened a new word document and adding stuff. </p>
<p>Moreover, HTML is also useful for linking the pages. It is the backbone of a webpage. So for creating any webpage HTML is Must. Without it, you can’t imagine a website.</p>
<h3>CSS</h3>
<p>Now talking about Cascade Styling Sheets (CSS). You have created paragraphs, headings, pictures, bullets, and much more things. Now, it’s time to style them. So, our website looks well organized. For that, you need to use CSS. All the syntaxes in CSS work hand to hand with HTML. </p>
<p>Both are like best friends. Whatever CSS tells HTML elements it follows. It changes color, background color, font size, font style depending upon what CSS tells. So there is actually no fight between CSS vs HTML. Both require for a good website.</p>
<h4>Conclusion (CSS vs HTML)</h4>
<p>To sum up all the things in one place, HTML is a markup language useful for adding content on a webpage. On the other hand, CSS is used for tailoring pages and changing fonts, colors and layouts. So, we can&#8217;t say that one is better than another. Both are very important.</p>
<p><strong>More Articles:</strong></p>
<ul>
<li><a href="https://www.johnpatel.com/html-span/">HTMl Span</a></li>
<li><a href="https://www.jpseo.co.in/neobux-reviews-strategy/">Earn money by Neobux</a></li>
</ul>
<p>The post <a href="https://www.johnpatel.com/html-vs-css/">HTML vs CSS &#8211; Must Know Difference Before Start Learning</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1677</post-id>	</item>
	</channel>
</rss>
