<?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>how many way to write css Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/how-many-way-to-write-css/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/how-many-way-to-write-css/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Sat, 15 Apr 2023 01:38:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>What is CSS and how many types of CSS?</title>
		<link>https://www.aiuniverse.xyz/what-is-css/</link>
					<comments>https://www.aiuniverse.xyz/what-is-css/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Wed, 29 Mar 2023 11:28:54 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[external css]]></category>
		<category><![CDATA[how many way to write css]]></category>
		<category><![CDATA[Inline css]]></category>
		<category><![CDATA[Internal css]]></category>
		<category><![CDATA[Introduction to css]]></category>
		<category><![CDATA[overview to css]]></category>
		<category><![CDATA[types of css]]></category>
		<category><![CDATA[What is css]]></category>
		<category><![CDATA[what is external css]]></category>
		<category><![CDATA[what is inline css]]></category>
		<category><![CDATA[what is Internal css]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16246</guid>

					<description><![CDATA[<p>CSS stand for cascading style sheets. By using CSS we can apply style to the html document. It provides an additional feature to HTML. It is generally <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-css/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-css/">What is CSS and how many types of CSS?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo-726x1024.png" alt="" class="wp-image-16251" width="188" height="266" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo-726x1024.png 726w, https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo-213x300.png 213w, https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo-768x1083.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo-1089x1536.png 1089w, https://www.aiuniverse.xyz/wp-content/uploads/2023/03/css-logo.png 1452w" sizes="(max-width: 188px) 100vw, 188px" /></figure>
</div>


<p>CSS stand for cascading style sheets. By using CSS we can apply style to the html document. It provides an additional feature to HTML. It is generally used with HTML to change the style of web pages and user interfaces. It can also be used with any kind of XML documents including plain XML, SVG and XUL.</p>



<p>In CSS they are three way to write CSS.</p>



<ol class="wp-block-list">
<li>Inline </li>



<li>Internal</li>



<li>External</li>
</ol>



<h2 class="wp-block-heading"><strong>Inline CSS :</strong></h2>



<p>By using Inline CSS we can apply the style to the element by using style attribute inside the opening tag.</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;h1 style="color: red; text-align: center;"&gt;This is a heading&lt;/h1&gt;
&lt;p style="color: black;"&gt;This is a paragraph.&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</code></pre>



<h2 class="wp-block-heading"><strong>Internal CSS :</strong></h2>



<p>By using Internal CSS we can apply the style to the element by using style tag, Inside the head tag of html documents.</p>



<p>Syntax:   </p>



<pre class="wp-block-code"><code>&lt;style&gt;
      tag name {
               property : value
               }
&lt;/style&gt;</code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;head&gt;
       &lt;title&gt;Documents&lt;/title&gt;
&lt;style&gt;
      h1{
         color: red;
        }
       p{
         background color: yellow;
         text-align : center;
         }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Good After Noon&lt;/h1&gt;
&lt;p&gt;Hello World&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</code></pre>



<h2 class="wp-block-heading"><strong>External CSS :</strong></h2>



<p>By using External CSS we can apply the  styles and formatting of a web page separate file, his separate file, typically named with a .css extension, is then linked to the HTML document using the &lt;link&gt; tag.</p>



<p><strong>Example:-</strong></p>



<p>External styles are defined within the &lt;link&gt; element, inside the &lt;head&gt; section of an HTML page:</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;My Webpage&lt;/title&gt;
	&lt;link rel="stylesheet" href="Mystyles.css"&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;!-- content of the webpage --&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<h2 class="wp-block-heading"><strong>CSS Comments:</strong></h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/comments-in-css-1602360983-1024x576.webp" alt="" class="wp-image-16460" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/comments-in-css-1602360983-1024x576.webp 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/comments-in-css-1602360983-300x169.webp 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/comments-in-css-1602360983-768x432.webp 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/comments-in-css-1602360983.webp 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>CSS Comments are used to explain or clarify the purpose of code to other developers or to remind yourself of the code&#8217;s purpose later on. Comments are single or multiple lines statement and CSS comments start with <code>/*</code> and end with <code>*/</code>, And it will be ignored by the browser. </p>



<p><strong>For example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;  
&lt;html&gt;  
&lt;head&gt; 
&lt;style&gt;  
p {  
    color: blue;  
    /* This is a single-line comment */  
    text-align: center;  
}   
/* This is a 
multi-line comment */  

&lt;/style&gt;  
&lt;/head&gt;  
&lt;body&gt;  
&lt;p&gt;Hi Welcome to Cotocus&lt;/p&gt;  
&lt;p&gt;This statement is styled with CSS.&lt;/p&gt;  
&lt;p&gt;CSS comments are ignored by the browsers and not shown in the output.&lt;/p&gt;  
&lt;/body&gt;  
&lt;/html&gt;   </code></pre>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-css/">What is CSS and how many types of CSS?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
