<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Najm Ud Deen on Medium]]></title>
        <description><![CDATA[Stories by Najm Ud Deen on Medium]]></description>
        <link>https://medium.com/@najmuddeen909?source=rss-1559cce58001------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I5o8E7QsKpySPxZe9SCJeg.jpeg</url>
            <title>Stories by Najm Ud Deen on Medium</title>
            <link>https://medium.com/@najmuddeen909?source=rss-1559cce58001------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:07:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@najmuddeen909/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding the position Property in CSS]]></title>
            <link>https://medium.com/@najmuddeen909/understanding-the-position-property-in-css-72e3a8197d63?source=rss-1559cce58001------2</link>
            <guid isPermaLink="false">https://medium.com/p/72e3a8197d63</guid>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[positioning]]></category>
            <category><![CDATA[css-positioning]]></category>
            <category><![CDATA[css-position]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Najm Ud Deen]]></dc:creator>
            <pubDate>Sun, 19 May 2024 08:48:41 GMT</pubDate>
            <atom:updated>2024-05-19T08:48:41.903Z</atom:updated>
            <content:encoded><![CDATA[<h4>1. Static Positioning</h4><p>position: static is the default value for all elements. Elements with position: static are positioned according to the normal document flow. This means they appear on the web page where they are defined in the HTML, and any top, right, bottom, or left properties will have no effect on them.</p><p><strong>Example: </strong>Let’s say you have a simple HTML structure with three div elements.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Static Position Example&lt;/title&gt;<br>  &lt;style&gt;<br>    .static-element {<br>      position: static;<br>      width: 100px;<br>      height: 100px;<br>      background-color: lightblue;<br>      margin-bottom: 10px;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>  &lt;div class=&quot;static-element&quot;&gt;Element 1&lt;/div&gt;<br>  &lt;div class=&quot;static-element&quot;&gt;Element 2&lt;/div&gt;<br>  &lt;div class=&quot;static-element&quot;&gt;Element 3&lt;/div&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Explanation:</strong></p><p>In this example:</p><ul><li>Each .static-element div is given the position: static property.</li><li>They have a width of 100px, a height of 100px, and a light blue background color.</li><li>They are separated by a margin of 10px at the bottom.</li></ul><p>Since they are statically positioned, the elements will appear one after another vertically in the order they are defined in the HTML. The top, right, bottom, and left properties are not used here because they do not affect statically positioned elements.</p><h4>2. Relative Positioning</h4><p>position: relative allows you to position an element relative to its normal position in the document flow. Using the top, right, bottom, and left properties, you can move the element from where it would normally be.</p><p><strong>Example:</strong></p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Relative Position Example&lt;/title&gt;<br>  &lt;style&gt;<br>    .relative-element {<br>      position: relative;<br>      top: 20px;<br>      left: 30px;<br>      width: 100px;<br>      height: 100px;<br>      background-color: lightgreen;<br>      margin-bottom: 10px;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>  &lt;div class=&quot;relative-element&quot;&gt;Element 1&lt;/div&gt;<br>  &lt;div class=&quot;relative-element&quot;&gt;Element 2&lt;/div&gt;<br>  &lt;div class=&quot;relative-element&quot;&gt;Element 3&lt;/div&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Explanation:</strong></p><p>In this example:</p><ul><li>Each .relative-element div is given the position: relative property.</li><li>They are offset by 20px from the top and 30px from the left of their normal position.</li><li>They have a width of 100px, a height of 100px, and a light green background color.</li><li>They are separated by a margin of 10px at the bottom.</li></ul><p>The elements will appear shifted from their normal position based on the top and left values, but the space they originally occupied will still be preserved, maintaining the flow of the document.</p><h4>3. Absolute Positioning</h4><p>position: absolute allows you to position an element relative to its nearest positioned ancestor. If there is no positioned ancestor, it will be positioned relative to the initial containing block (usually the viewport).</p><p><strong>Example:</strong></p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Absolute Position Example&lt;/title&gt;<br>  &lt;style&gt;<br>    .container {<br>      position: relative;<br>      width: 300px;<br>      height: 300px;<br>      background-color: lightgray;<br>    }<br><br>    .absolute-element {<br>      position: absolute;<br>      top: 10px;<br>      right: 20px;<br>      width: 100px;<br>      height: 100px;<br>      background-color: lightcoral;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>  &lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;absolute-element&quot;&gt;Element 1&lt;/div&gt;<br>  &lt;/div&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Explanation:</strong></p><p>In this example:</p><ul><li>The .container div is given the position: relative property, making it the positioned ancestor for the .absolute-element div.</li><li>The .absolute-element div is given the position: absolute property, and it is positioned 10px from the top and 20px from the right of the .container.</li><li>The .container has a width of 300px, a height of 300px, and a light gray background color.</li><li>The .absolute-element has a width of 100px, a height of 100px, and a light coral background color.</li></ul><p>The .absolute-element will be positioned within the .container according to the top and right properties.</p><h4>4. Fixed Positioning</h4><p>position: fixed positions an element relative to the viewport, meaning it stays in the same place even when the page is scrolled.</p><p><strong>Example:</strong></p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Fixed Position Example&lt;/title&gt;<br>  &lt;style&gt;<br>    .fixed-element {<br>      position: fixed;<br>      bottom: 0;<br>      left: 0;<br>      width: 100%;<br>      height: 50px;<br>      background-color: lightyellow;<br>      text-align: center;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>  &lt;div style=&quot;height: 1500px;&quot;&gt;Scroll down to see the fixed element at the bottom&lt;/div&gt;<br>  &lt;div class=&quot;fixed-element&quot;&gt;Fixed Element&lt;/div&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Explanation:</strong></p><p>In this example:</p><ul><li>The .fixed-element div is given the position: fixed property.</li><li>It is positioned 0px from the bottom and 0px from the left of the viewport.</li><li>It has a width of 100%, a height of 50px, a light yellow background color, and centered text.</li></ul><p>The .fixed-element will remain fixed at the bottom of the viewport regardless of scrolling.</p><h4>5. Sticky Positioning</h4><p>position: sticky is a hybrid of relative and fixed positioning. The element is treated as relative until it crosses a specified threshold, at which point it is treated as fixed.</p><p><strong>Example:</strong></p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Sticky Position Example&lt;/title&gt;<br>  &lt;style&gt;<br>    .sticky-container {<br>      height: 2000px; /* Just to make scrolling possible */<br>      background-color: lightcyan;<br>    }<br><br>    .sticky-element {<br>      position: sticky;<br>      top: 0;<br>      width: 100%;<br>      height: 50px;<br>      background-color: lightpink;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>  &lt;div class=&quot;sticky-container&quot;&gt;<br>    &lt;div class=&quot;sticky-element&quot;&gt;Sticky Element&lt;/div&gt;<br>  &lt;/div&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Explanation:</strong></p><p>In this example:</p><ul><li>The .sticky-element div is given the position: sticky property.</li><li>It is positioned 0px from the top of its containing block.</li><li>It has a width of 100%, a height of 50px, and a light pink background color.</li></ul><p>The .sticky-element will act like a relatively positioned element until the page is scrolled to its top position. Once scrolled past, it will stick to the top of the viewport.</p><p>These detailed examples should help you understand how each position property value affects the layout and behavior of elements on a webpage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72e3a8197d63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Ten HTML Interview Questions/Answers]]></title>
            <link>https://medium.com/@najmuddeen909/top-ten-html-interview-questions-answers-a2b11dc3448a?source=rss-1559cce58001------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2b11dc3448a</guid>
            <category><![CDATA[html-questions]]></category>
            <category><![CDATA[html5-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[html-basic]]></category>
            <category><![CDATA[html5]]></category>
            <dc:creator><![CDATA[Najm Ud Deen]]></dc:creator>
            <pubDate>Sat, 18 May 2024 07:06:42 GMT</pubDate>
            <atom:updated>2024-05-18T11:39:37.888Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>What is HTML and what does it stand for?</strong></li></ol><ul><li><strong>Answer:</strong> HTML stands for HyperText Markup Language. It is the standard markup language used to create web pages. HTML elements form the building blocks of all websites.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;title&gt;Sample Page&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;h1&gt;Welcome to HTML&lt;/h1&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>2. <strong>What are HTML tags and attributes?</strong></p><ul><li><strong>Answer</strong>: HTML tags are used to create elements and structure content on a webpage. Attributes provide additional information about elements and are included within the opening tag.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;Image Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    <br>    &lt;img src=&quot;example.jpg&quot; alt=&quot;Example Image&quot;&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>3. <strong>What is the difference between block-level and inline elements?</strong></p><ul><li><strong>Answer</strong>: Block-level elements start on a new line and take up the full width available, while inline elements take up only as much width as needed and do not start on a new line.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;Image Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div&gt;<br>  &lt;h1&gt;This is a heading&lt;/h1&gt;<br>  &lt;p&gt;This is a paragraph inside a div.&lt;/p&gt;<br>&lt;/div&gt;<br>&lt;p&gt;This is a paragraph with &lt;a href=&quot;#&quot;&gt;a link&lt;/a&gt; and some &lt;strong&gt;bold text&lt;/strong&gt;.&lt;/p&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>4. <strong>What is the purpose of the &lt;!DOCTYPE html&gt; declaration?</strong></p><ul><li><strong>Answer</strong>: The <strong>&lt;!DOCTYPE html&gt;</strong> declaration defines the document type and version of HTML. It ensures that the document is parsed in standards-compliant mode.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;title&gt;Document Title&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;p&gt;Hello, World!&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>5. <strong>What is the difference between `&lt;div&gt; `and `&lt;span&gt;`?</strong></p><ul><li><strong>Answer</strong>: <strong>&lt;div&gt;</strong> is a block-level element used for grouping content, while <strong>&lt;span&gt;</strong> is an inline element used for styling a part of the text or content.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;title&gt;Document Title&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  <br><br>&lt;div style=&quot;background-color: lightblue; padding: 10px;&quot;&gt;<br>    This is a div element.<br>&lt;/div&gt;<br>&lt;p&gt;This is a &lt;span style=&quot;color: red;&quot;&gt;red&lt;/span&gt; word.&lt;/p&gt;<br><br><br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>6. <strong>How do you create a hyperlink in HTML?</strong></p><ul><li><strong>Answer</strong>: Use the <strong>&lt;a&gt;</strong> tag with the `<strong>href`</strong> attribute to create a hyperlink.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;Hyperlink Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;Welcome to My Website&lt;/h1&gt;<br>    &lt;p&gt;Check out our &lt;a href=&quot;https://www.example.com&quot;&gt;website&lt;/a&gt; for more information.&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>7. <strong>How can you include an image in a web page?</strong></p><ul><li><strong>Answer</strong>: Use the <strong>&lt;img&gt;</strong> tag with the <strong>`src`</strong> attribute to specify the image source and <strong>`alt`</strong> attribute for alternative text.</li><li><strong>Example</strong>:</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;Image Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;My Web Page&lt;/h1&gt;<br>    &lt;p&gt;Here is an image:&lt;/p&gt;<br>    &lt;img src=&quot;example.jpg&quot; alt=&quot;Example Image&quot;&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br></pre><p>8. <strong>What is the difference between &lt;ul&gt;, &lt;ol&gt;, and &lt;li&gt;?</strong></p><ul><li><strong>Answer</strong>: <strong>&lt;ul&gt;</strong> creates an unordered list, <strong>&lt;ol&gt;</strong> creates an ordered list, and <strong>&lt;li&gt;</strong> represents a list item within either <strong>&lt;ul&gt;</strong> or <strong>&lt;ol&gt;</strong>.</li><li><strong>Example</strong>:</li></ul><pre>&lt;ul&gt;<br>  &lt;li&gt;Item 1&lt;/li&gt;<br>  &lt;li&gt;Item 2&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;ol&gt;<br>  &lt;li&gt;First item&lt;/li&gt;<br>  &lt;li&gt;Second item&lt;/li&gt;<br>&lt;/ol&gt;<br><br></pre><p>9. <strong>What is semantic HTML and why is it important?</strong></p><ul><li><strong>Answer</strong>: Semantic HTML uses tags that clearly describe their meaning in a human- and machine-readable way. This improves accessibility, SEO, and code maintainability.</li><li><strong>Example</strong>:</li></ul><pre>&lt;header&gt;<br>  &lt;h1&gt;Page Title&lt;/h1&gt;<br>&lt;/header&gt;<br>&lt;nav&gt;<br>  &lt;ul&gt;<br>    &lt;li&gt;&lt;a href=&quot;#home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br>    &lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About&lt;/a&gt;&lt;/li&gt;<br>  &lt;/ul&gt;<br>&lt;/nav&gt;<br>&lt;main&gt;<br>  &lt;article&gt;<br>    &lt;h2&gt;Article Title&lt;/h2&gt;<br>    &lt;p&gt;Article content goes here.&lt;/p&gt;<br>  &lt;/article&gt;<br>&lt;/main&gt;<br>&lt;footer&gt;<br>  &lt;p&gt;&amp;copy; 2024 Example Company&lt;/p&gt;<br>&lt;/footer&gt;<br><br></pre><p>10. <strong>How do you create a form in HTML?</strong></p><ul><li><strong>Answer</strong>: Use the <strong>&lt;form&gt;</strong> tag to create a form, and use various input elements like <strong>&lt;input&gt;</strong>, <strong>&lt;textarea&gt;</strong>, <strong>&lt;select&gt;</strong>, etc., to gather user input.</li><li><strong>Example</strong>:</li></ul><pre>&lt;form action=&quot;/submit&quot; method=&quot;post&quot;&gt;<br>  &lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;<br>  &lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot;&gt;<br>  &lt;label for=&quot;email&quot;&gt;Email:&lt;/label&gt;<br>  &lt;input type=&quot;email&quot; id=&quot;email&quot; name=&quot;email&quot;&gt;<br>  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;<br>&lt;/form&gt;<br><br></pre><p>These questions cover a range of fundamental concepts in HTML, providing a solid basis for assessing a candidate’s knowledge and understanding of the language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2b11dc3448a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>