<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: premprakash yadav</title>
    <description>The latest articles on DEV Community by premprakash yadav (@premprakash8080).</description>
    <link>https://dev.to/premprakash8080</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1633747%2F2133db73-e15a-46e3-870c-ff77ea0adc86.png</url>
      <title>DEV Community: premprakash yadav</title>
      <link>https://dev.to/premprakash8080</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/premprakash8080"/>
    <language>en</language>
    <item>
      <title>Understanding CSS: Styling the Web</title>
      <dc:creator>premprakash yadav</dc:creator>
      <pubDate>Mon, 29 Jul 2024 08:26:28 +0000</pubDate>
      <link>https://dev.to/premprakash8080/understanding-css-styling-the-web-2p56</link>
      <guid>https://dev.to/premprakash8080/understanding-css-styling-the-web-2p56</guid>
      <description>&lt;p&gt;CSS, or Cascading Style Sheets, is a language used to style HTML content. It controls the layout, colors, fonts, and overall visual appearance of web pages. Here’s an overview of CSS basics, selectors, properties, and how you can use them to create beautiful, responsive designs.&lt;/p&gt;

&lt;p&gt;What is CSS?&lt;/p&gt;

&lt;p&gt;CSS separates the content of a web page from its presentation. It allows you to apply styles consistently across multiple pages and ensures that your website maintains a unified look and feel.&lt;/p&gt;

&lt;p&gt;Basic Syntax&lt;br&gt;
A CSS rule consists of a selector and a declaration block.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;selector {
property: value;
}      
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Selectors&lt;br&gt;
Element Selector: Targets HTML elements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;p {
   color: blue;
   } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Class Selector: Targets elements with a specific class attribute.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; .example {
    font-size: 20px;
  } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ID Selector: Targets a single element with a specific ID.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#unique {
        background-color: yellow;
        } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Properties&lt;br&gt;
CSS properties define the styles applied to elements. Here are a few common properties:color: Sets the text color.&lt;br&gt;
&lt;code&gt;background-color&lt;/code&gt;: Sets the background color.&lt;br&gt;
&lt;code&gt;font-size&lt;/code&gt;: Sets the size of the text.&lt;br&gt;
&lt;code&gt;margin&lt;/code&gt;: Sets the space around elements.&lt;br&gt;
&lt;code&gt;padding&lt;/code&gt;: Sets the space inside elements.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
        font-family: Arial, sans-serif;
        line-height: 1.6;
        }

        h1 {
        color: #333;
        }

        p {
        margin: 10px 0;
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;CSS is a powerful tool for web design, allowing you to create visually appealing and responsive websites. By mastering CSS, you can enhance the user experience and make your web pages stand out.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>The Essentials of HTML: Building the Backbone of the Web</title>
      <dc:creator>premprakash yadav</dc:creator>
      <pubDate>Sat, 20 Jul 2024 12:11:52 +0000</pubDate>
      <link>https://dev.to/premprakash8080/the-essentials-of-html-building-the-backbone-of-the-web-37hm</link>
      <guid>https://dev.to/premprakash8080/the-essentials-of-html-building-the-backbone-of-the-web-37hm</guid>
      <description>&lt;p&gt;HTML, or HyperText Markup Language, is the foundational language used to create and structure content material at the web. Understanding HTML is vital for absolutely everyone seeking to construct websites or develop web programs. In this blog, we will explore the basics of HTML, its factors, and the way you may start the use of it to create your web pages.&lt;/p&gt;

&lt;p&gt;What is HTML?&lt;/p&gt;

&lt;p&gt;HTML is a markup language that structures the content of a web site. It uses a system of tags to outline elements such as headings, paragraphs, links, images, and other types of content. These tags tell the net browser how to display the content material on the web page.&lt;/p&gt;

&lt;p&gt;Basic Structure of an HTML Document&lt;/p&gt;

&lt;p&gt;An HTML report has a basic shape that includes several crucial elements. Here’s a simple example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;

&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;

    &amp;lt;meta charset="UTF-8"&amp;gt;

    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;

    &amp;lt;title&amp;gt;My First HTML Page&amp;lt;/title&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

    &amp;lt;h1&amp;gt;Welcome to My Website&amp;lt;/h1&amp;gt;

    &amp;lt;p&amp;gt;This is my first paragraph of content.&amp;lt;/p&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Breaking Down the Structure&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt;: This assertion defines the document kind and model of HTML. It's essential for ensuring that the browser efficaciously translates the report.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;html lang="en"&amp;gt;&lt;/code&gt;: The root detail of the HTML report. The lang attribute specifies the language of the file.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;: Contains meta-records about the document, consisting of its person set, viewport settings, and name.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta charset="UTF-8"&amp;gt;&lt;/code&gt;: Specifies the man or woman encoding for the report.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;&lt;/code&gt;: Ensures that the page is responsive and adjusts to distinctive display sizes.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;: Sets the identify of the website, which appears in the browser tab.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;: Contains the actual content material of the web site, inclusive of headings, paragraphs, images, and hyperlinks.&lt;/p&gt;

&lt;p&gt;Common HTML Elements&lt;/p&gt;

&lt;p&gt;Headings&lt;/p&gt;

&lt;p&gt;HTML affords six degrees of headings, from &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;, with &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; being the maximum vital and &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; the least.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Main Heading&amp;lt;/h1&amp;gt;

&amp;lt;h2&amp;gt;Subheading&amp;lt;/h2&amp;gt;

&amp;lt;h3&amp;gt;Sub-subheading&amp;lt;/h3&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paragraphs&lt;/p&gt;

&lt;p&gt;Paragraphs are described the use of the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;This is a paragraph of text.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Links&lt;/p&gt;

&lt;p&gt;Links are created the usage of the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag, with the href characteristic specifying the vacation spot URL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="https://www.Example.Com"&amp;gt;Visit Example&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Images&lt;/p&gt;

&lt;p&gt;Images are embedded using the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag, with the src attribute specifying the route to the image document and the alt attribute supplying alternative text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="image.Jpg" alt="A description of the image"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lists&lt;/p&gt;

&lt;p&gt;HTML helps ordered (numbered) lists and unordered (bulleted) lists.&lt;/p&gt;

&lt;p&gt;Unordered list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul&amp;gt;
    &amp;lt;li&amp;gt;Item 1&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Item 2&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Item 3&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ordered listing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ol&amp;gt;
    &amp;lt;li&amp;gt;First object&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Second item&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Third item&amp;lt;/li&amp;gt;

&amp;lt;/ol&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HTML Forms&lt;/p&gt;

&lt;p&gt;Forms are used to collect person input. A easy shape would possibly seem like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;form action="/submit-form" method="post"&amp;gt;
    &amp;lt;label for="name"&amp;gt;Name:&amp;lt;/label&amp;gt;
    &amp;lt;input type="text" id="name" name="name"&amp;gt;
    &amp;lt;input type="submit" value="Submit"&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Form Elements&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt;: Defines the shape.&lt;br&gt;
&lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;: Defines a label for an input element.&lt;br&gt;
&lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;: Defines an enter area.&lt;/p&gt;

&lt;p&gt;Kind attribute: Specifies the type of enter (e.G., text, put up).&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;HTML is the spine of net development, supplying the shape and content material for webpages. By expertise the simple elements and shape of HTML, you could start creating your personal web pages and build a sturdy basis for mastering greater advanced net technologies like CSS and JavaScript.&lt;/p&gt;

&lt;p&gt;Start experimenting with HTML today, and you may be properly on your way to turning into a talented net developer! &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
