{"id":181,"date":"2015-05-26T11:59:00","date_gmt":"2015-05-26T06:29:00","guid":{"rendered":"http:\/\/127.0.0.1\/Admec_Site\/?p=181"},"modified":"2025-01-02T13:01:04","modified_gmt":"2025-01-02T07:31:04","slug":"think-browser-cascading-specificity-and-id-css","status":"publish","type":"post","link":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/","title":{"rendered":"Think like a browser: Cascading, Specificity, and ID in CSS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<p>You use CSS and create web pages for websites and applications but if you are not clear with few terms such as Cascading, CSS Specificity, and Classes and IDs then I recommend you this post to read now or bookmark for the later read. This post is written by Bappi Das one of ADMEC Mutlimedia best students in his assessment. He tried to put his best of CSS that he learnt in his&nbsp;<a href=\"https:\/\/www.admecindia.co.in\/course\/best-html-css-master-course\/\"><strong>CSS course in this institute<\/strong><\/a>&nbsp;with us.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=1024%2C569&#038;ssl=1\" alt=\"\" class=\"wp-image-13663\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=1024%2C569&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=300%2C167&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=768%2C427&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=1536%2C854&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?resize=900%2C500&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?w=2000&amp;ssl=1 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Think like a browser: Cascading, Specificity, and ID in CSS\n<\/figcaption><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-css\"><strong>What is CSS?<\/strong><\/h2>\n\n\n\n<p>A simple one-line answer to this question is Cascading Style Sheet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"now-what-is-cascading\"><strong>Now, what is \u201cCascading\u201d?<\/strong><\/h3>\n\n\n\n<p>The dictionary meaning of Cascade is \u2013<\/p>\n\n\n\n<p><strong>(<em>noun<\/em>):&nbsp;<\/strong>A small waterfall, typically one of several that fall in stages down a steep rocky slope.<\/p>\n\n\n\n<p><strong>(verb):&nbsp;<\/strong>pass (something) on to a succession of others.<\/p>\n\n\n\n<p>Well, we all know that CSS is something that is used to style the HTML. So, why these styling elements were named as Cascading Style Sheet? Did the inventors of CSS loved waterfalls or did they made CSS like that passes on something to a succession of others?<\/p>\n\n\n\n<p>To understand this, we need to dive into the deeper world of CSS and see how the browsers think.<\/p>\n\n\n\n<p>Let\u2019s start our journey with a simple HTML document:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"304\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img1-simple-html-doc.jpg?resize=564%2C304&#038;ssl=1\" alt=\"html document\" class=\"wp-image-8259\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img1-simple-html-doc.jpg?w=564&amp;ssl=1 564w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img1-simple-html-doc.jpg?resize=300%2C162&amp;ssl=1 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img2-html-dom-structure.png?resize=800%2C600&#038;ssl=1\" alt=\"html dom\" class=\"wp-image-8260\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img2-html-dom-structure.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img2-html-dom-structure.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img2-html-dom-structure.png?resize=768%2C576&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><br>We all can understand this HTML, but the browser looks into this same HTML something like this \u2013<\/p>\n\n\n\n<p>&nbsp;This is called HTML family tree with the following members \u2013<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ancestor<\/li>\n\n\n\n<li>Descendent<\/li>\n\n\n\n<li>Parent<\/li>\n\n\n\n<li>Child<\/li>\n\n\n\n<li>Sibling<\/li>\n<\/ol>\n\n\n\n<p>where \u2013<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&lt;html> tag is the ancestor of all other tags.<\/li>\n\n\n\n<li>&lt;body> tag is the ancestor of &lt;h1>, &lt;p>, &lt;ul> and all the &lt;li> tags.<\/li>\n\n\n\n<li>&lt;body> tag is the descendent of &lt;html> tag.<\/li>\n\n\n\n<li>&lt;p> tag is the descendent of both &lt;body> and &lt;html> tag.<\/li>\n\n\n\n<li>&lt;li> tag is the descendent of &lt;ul>, &lt;body> and &lt;html> tag.<\/li>\n\n\n\n<li>&lt;title> tag is the descendent of both &lt;head> and &lt;html> tag.<\/li>\n\n\n\n<li>&lt;html> tag is the parent of both &lt;head> and &lt;body> tag.<\/li>\n\n\n\n<li>&lt;head> tag is the parent of &lt;title> tag.<\/li>\n\n\n\n<li>&lt;body> tag is the parent of &lt;h1>, &lt;p> and &lt;ul> tag.<\/li>\n\n\n\n<li>&lt;head> and &lt;body> tags are the child of &lt;html> tag.<\/li>\n\n\n\n<li>&lt;title> tag is the child of &lt;head> tag.<\/li>\n\n\n\n<li>&lt;h1>, &lt;p> and &lt;ul> tags are the child of &lt;body> tag.<\/li>\n\n\n\n<li>&lt;strong> tag is the child of &lt;p> tag.<\/li>\n\n\n\n<li>All the &lt;li> tags are the child of &lt;ul> tag.<\/li>\n\n\n\n<li>&lt;head> and &lt;body> tags are the siblings.<\/li>\n\n\n\n<li>&lt;h1>, &lt;p> and &lt;ul> are the siblings.<\/li>\n\n\n\n<li>\u00a0All the three &lt;li> tags are siblings.<\/li>\n<\/ul>\n\n\n\n<p>Now, let us come back to the term \u201ccascading\u201d which means pass on something to a succession to others. Here, we will try to understand this with another simple HTML example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"336\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img3-applying-css.jpg?resize=600%2C336&#038;ssl=1\" alt=\"applying css\" class=\"wp-image-8261\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img3-applying-css.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img3-applying-css.jpg?resize=300%2C168&amp;ssl=1 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>The browser will display this HTML page something like this \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"148\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img4.jpg?resize=441%2C148&#038;ssl=1\" alt=\"\" class=\"wp-image-8262\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img4.jpg?w=441&amp;ssl=1 441w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img4.jpg?resize=300%2C101&amp;ssl=1 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/figure>\n\n\n\n<p>Here, we see that the &lt;strong&gt; tag is accumulating the styles from it\u2019s ancestors &lt;body&gt; and &lt;p&gt; tags. Thus, we have a clear view about that \u201cStyles\u201d are passed on to a succession to the child or descendants. Now, we can understand that the inventors of CSS didn\u2019t go for the term \u201cCascading\u201d because they loved waterfalls. So, we may say that Cascading is a set of rules for determining which style gets applied to an HTML element. It also specifies how a browser should handle multiple styles that apply to a same tag and what to do when CSS properties conflict.<\/p>\n\n\n\n<p>So, we come to an important conclusion that \u2013<\/p>\n\n\n\n<p><strong><em>The inherited styles accumulate.<\/em><\/strong><\/p>\n\n\n\n<p>But, what happens when the inherited styles conflict? Who wins?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"262\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img5-inherited-style-confliction.jpg?resize=480%2C262&#038;ssl=1\" alt=\"\" class=\"wp-image-8263\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img5-inherited-style-confliction.jpg?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img5-inherited-style-confliction.jpg?resize=300%2C164&amp;ssl=1 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>Let\u2019s check this with the following example \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"163\" height=\"75\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img6.jpg?resize=163%2C75&#038;ssl=1\" alt=\"\" class=\"wp-image-8264\"\/><\/figure>\n\n\n\n<p>The browser will display this HTML like this \u2013<\/p>\n\n\n\n<p>Here, we see that the &lt;strong&gt; tag has inherited the styles from its ancestors &lt;body&gt; and &lt;p&gt; tag. But, there was a conflict on the \u201ccolor\u201d property. But, finally we see that the color property of the nearest ancestor &lt;p&gt; tag is being applied. In other words, we can say that, &lt;p&gt; tag is the nearest ancestor of the &lt;strong&gt; tag, so it has applied the \u201ccolor\u201d property from its nearest ancestor &lt;p&gt; tag to resolve the conflict.<\/p>\n\n\n\n<p>Thus, we come to an another important conclusion that \u2013<\/p>\n\n\n\n<p><strong><em>The nearest ancestor wins when there is a conflict.<\/em><\/strong><\/p>\n\n\n\n<p>Till now, things are going smooth and we are getting a clear idea how the cascading works. But, sometimes we get trapped into more awkward and unexpected situation with CSS. In the next section, we shall dive deeper into all the weird things and come out with the solution to deal with them.<\/p>\n\n\n\n<p>Let\u2019s start the things with this simple looking HTML document \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"672\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img7.jpg?resize=1024%2C672&#038;ssl=1\" alt=\"\" class=\"wp-image-8265\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img7.jpg?resize=1024%2C672&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img7.jpg?resize=300%2C197&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img7.jpg?resize=768%2C504&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img7.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As per the CSS, we have come across till now, we expect the second paragraph with class \u201cspecial\u201d should be displayed with font-family: \u201cTimes New Roman\u201d and the text color red. But it is not what we expected. Just have a look<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img8.jpg?resize=1024%2C196&#038;ssl=1\" alt=\"\" class=\"wp-image-8266\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img8.jpg?resize=1024%2C196&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img8.jpg?resize=300%2C58&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img8.jpg?resize=768%2C147&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img8.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>how the browser has displayed it for us \u2013<br>This all has happened due to the Specificity.<\/p>\n\n\n\n<p><strong>Now, what is Specificity?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A browser decides which specific style to be applied to an HTML element based on the preference or specificity of the style, when there is a conflict.<\/li>\n<\/ul>\n\n\n\n<p>Here is a simple table with a few examples for calculating the specificity of the styles \u2013<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Tag Selector<\/strong>. eg. p{ color: red;} and h1{ font-size: 32px;} etc.<\/td><td><strong>1 Point<\/strong><\/td><\/tr><tr><td><strong>Pseudo Element<\/strong>. eg.&nbsp;<strong>::<\/strong>first-line{ color:blue;}<\/td><td><strong>1 Point<\/strong><\/td><\/tr><tr><td><strong>Class Selector<\/strong>. eg.&nbsp;<strong>.<\/strong>mystyle{ font-family:Arial;}<\/td><td><strong>10 Points<\/strong><\/td><\/tr><tr><td><strong>Pseudo Class<\/strong>. eg.&nbsp;<strong>:<\/strong>hover{ background-color:red;}<\/td><td><strong>10 Points<\/strong><\/td><\/tr><tr><td><strong>ID Selector<\/strong>. eg.&nbsp;<strong>#<\/strong>sidebar{font-family:Arial;color:blue;}<\/td><td><strong>100 Points<\/strong><\/td><\/tr><tr><td><strong>Inline Style<\/strong>. eg. &lt;p style=\u201dcolor:green\u201d&gt;Some text\u2026&lt;\/p&gt;<\/td><td><strong>1000 Points<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Now, let\u2019s try to understand how the browser assigns specificity to different styles \u2013<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>SELECTORS<\/strong><\/td><td><strong>ID<\/strong><\/td><td><strong>CLASS<\/strong><\/td><td><strong>TAG<\/strong><\/td><td><strong>TOTAL SPECIFICITY<\/strong><\/td><\/tr><tr><td>p<\/td><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td><strong>.<\/strong>mystyle<\/td><td><strong>0<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>10<\/strong><\/td><\/tr><tr><td>p&nbsp;<strong>.<\/strong>mystyle<\/td><td><strong>0<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>11<\/strong><\/td><\/tr><tr><td><strong>#<\/strong>sidebar<\/td><td><strong>1<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>100<\/strong><\/td><\/tr><tr><td><strong>#<\/strong>sidebar img<\/td><td><strong>1<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>101<\/strong><\/td><\/tr><tr><td>p strong<\/td><td><strong>0<\/strong><\/td><td><strong>0<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>2<\/strong><\/td><\/tr><tr><td><strong>#<\/strong>wrapper&nbsp;&nbsp;<strong>#<\/strong>sidebar&nbsp;<strong>.<\/strong>mystyle&nbsp; a<strong>:<\/strong>hover<\/td><td><strong>2<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><td><strong>221<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Now, let\u2019s see the HTML document above and we notice that the specificity of #sidebar p is 101, whereas the specificity of&nbsp;<strong>.<\/strong>special is 10.<\/p>\n\n\n\n<p>So, the color and font-family property defined inside the style #sidebar p overrules the same inside the class&nbsp;<strong>.<\/strong>special.<\/p>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;The math involved with specificity calculation is a bit more complex then described above. But, this formula works for almost all the cases except a few weirdest cases. To know, how the browsers actually calculate specificity, please visit this link :&nbsp;<a href=\"http:\/\/www.w3.org\/TR\/css3-selectors\/#specificity\">http:\/\/www.w3.org\/TR\/css3-selectors\/#specificity<\/a><\/p>\n\n\n\n<p>Now, we move into the solution. If we get trapped in some weird situation as shown in the above example, then what should we do? There are two specific solution for this \u2013<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Change the IDs into Classes to avoid complexity.<\/li>\n\n\n\n<li>Overrule the specificity with\u00a0<strong>!<\/strong>important.<\/li>\n<\/ol>\n\n\n\n<p>&nbsp;In our example, if we change a bit of the CSS styles by converting IDs into classes then it gives us the desired result<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"667\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img9.jpg?resize=1024%2C667&#038;ssl=1\" alt=\"\" class=\"wp-image-8267\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img9.jpg?resize=1024%2C667&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img9.jpg?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img9.jpg?resize=768%2C500&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img9.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>as follows \u2013<\/p>\n\n\n\n<p>Now have a look how the browser has displayed it for us \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"212\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img10.jpg?resize=1024%2C212&#038;ssl=1\" alt=\"\" class=\"wp-image-8268\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img10.jpg?resize=1024%2C212&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img10.jpg?resize=300%2C62&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img10.jpg?resize=768%2C159&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img10.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This same result can also be achieved with the use of&nbsp;<strong><em>!important<\/em><\/strong>&nbsp;in the CSS properties as shown bellow \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"674\" src=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img11-id-class-in-css.jpg?resize=1024%2C674&#038;ssl=1\" alt=\"\" class=\"wp-image-8269\" srcset=\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img11-id-class-in-css.jpg?resize=1024%2C674&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img11-id-class-in-css.jpg?resize=300%2C198&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img11-id-class-in-css.jpg?resize=768%2C506&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2020\/01\/img11-id-class-in-css.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>At last, we end this discussion with a few things about&nbsp;<a href=\"http:\/\/www.admecindia.co.in\/blog\/what-are-css3-selectors\">CSS selectors<\/a>&nbsp;using IDs in CSS. As per many CSS experts throughout the globe, it is better to avoid using IDs so far as possible to avoid complexity. ID selectors are very powerful and therefore we require more powers to override them. This often leads to specificity conflicts in which the style-sheet gets loaded with un-necessarily long and complicated selectors.<\/p>\n\n\n\n<p>Instead, we should try to replace IDs with classes which works perfectly and removes all the limitations as well as complexities that we may face by using IDs. Basically, IDs don\u2019t provide anything special that we can\u2019t achieve with a simple class selector or a tag selector. So, it\u2019s better to avoid using IDs \u2013 to avoid complexities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You use CSS and create web pages for websites and applications but if you are not clear with few terms such as Cascading, CSS Specificity, and Classes and IDs then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[80],"tags":[97],"class_list":["post-181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-design","tag-html5-css3"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC<\/title>\n<meta name=\"description\" content=\"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC\" \/>\n<meta property=\"og:description\" content=\"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\" \/>\n<meta property=\"og:site_name\" content=\"ADMEC Multimedia Institute\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/admecInstituteOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-26T06:29:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-02T07:31:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1112\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"ADMEC Multimedia Institute\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@admecinstitute\" \/>\n<meta name=\"twitter:site\" content=\"@admecinstitute\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ADMEC Multimedia Institute\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\"},\"author\":{\"name\":\"ADMEC Multimedia Institute\",\"@id\":\"https:\/\/www.admecindia.co.in\/#\/schema\/person\/53466235b5c8703280e7b0ebab0c7dcb\"},\"headline\":\"Think like a browser: Cascading, Specificity, and ID in CSS\",\"datePublished\":\"2015-05-26T06:29:00+00:00\",\"dateModified\":\"2025-01-02T07:31:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\"},\"wordCount\":1383,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.admecindia.co.in\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1\",\"keywords\":[\"HTML5 &amp; CSS3\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\",\"url\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\",\"name\":\"Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC\",\"isPartOf\":{\"@id\":\"https:\/\/www.admecindia.co.in\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1\",\"datePublished\":\"2015-05-26T06:29:00+00:00\",\"dateModified\":\"2025-01-02T07:31:04+00:00\",\"description\":\"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1\",\"width\":2000,\"height\":1112,\"caption\":\"Think like a browser: Cascading, Specificity, and ID in CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.admecindia.co.in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Think like a browser: Cascading, Specificity, and ID in CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.admecindia.co.in\/#website\",\"url\":\"https:\/\/www.admecindia.co.in\/\",\"name\":\"ADMEC Multimedia Institute\",\"description\":\"Best Graphic Design, Web Design, UX Design, Animation Institute in Delhi\",\"publisher\":{\"@id\":\"https:\/\/www.admecindia.co.in\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.admecindia.co.in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.admecindia.co.in\/#organization\",\"name\":\"ADMEC\",\"url\":\"https:\/\/www.admecindia.co.in\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.admecindia.co.in\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2024\/11\/admec-new-logo.jpeg?fit=225%2C225&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2024\/11\/admec-new-logo.jpeg?fit=225%2C225&ssl=1\",\"width\":225,\"height\":225,\"caption\":\"ADMEC\"},\"image\":{\"@id\":\"https:\/\/www.admecindia.co.in\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/admecInstituteOfficial\/\",\"https:\/\/x.com\/admecinstitute\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.admecindia.co.in\/#\/schema\/person\/53466235b5c8703280e7b0ebab0c7dcb\",\"name\":\"ADMEC Multimedia Institute\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.admecindia.co.in\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/85595b2b8e958b60299faadf7c199061dff85db95c35c29f25ef095f173f9f2c?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/85595b2b8e958b60299faadf7c199061dff85db95c35c29f25ef095f173f9f2c?s=96&r=g\",\"caption\":\"ADMEC Multimedia Institute\"},\"sameAs\":[\"https:\/\/www.admecindia.co.in\"],\"url\":\"https:\/\/www.admecindia.co.in\/author\/admec\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC","description":"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/","og_locale":"en_US","og_type":"article","og_title":"Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC","og_description":"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.","og_url":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/","og_site_name":"ADMEC Multimedia Institute","article_publisher":"https:\/\/www.facebook.com\/admecInstituteOfficial\/","article_published_time":"2015-05-26T06:29:00+00:00","article_modified_time":"2025-01-02T07:31:04+00:00","og_image":[{"width":2000,"height":1112,"url":"https:\/\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg","type":"image\/jpeg"}],"author":"ADMEC Multimedia Institute","twitter_card":"summary_large_image","twitter_creator":"@admecinstitute","twitter_site":"@admecinstitute","twitter_misc":{"Written by":"ADMEC Multimedia Institute","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#article","isPartOf":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/"},"author":{"name":"ADMEC Multimedia Institute","@id":"https:\/\/www.admecindia.co.in\/#\/schema\/person\/53466235b5c8703280e7b0ebab0c7dcb"},"headline":"Think like a browser: Cascading, Specificity, and ID in CSS","datePublished":"2015-05-26T06:29:00+00:00","dateModified":"2025-01-02T07:31:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/"},"wordCount":1383,"commentCount":0,"publisher":{"@id":"https:\/\/www.admecindia.co.in\/#organization"},"image":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1","keywords":["HTML5 &amp; CSS3"],"articleSection":["Web Design"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/","url":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/","name":"Think like a browser: Cascading, Specificity, and ID in CSS - ADMEC","isPartOf":{"@id":"https:\/\/www.admecindia.co.in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage"},"image":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1","datePublished":"2015-05-26T06:29:00+00:00","dateModified":"2025-01-02T07:31:04+00:00","description":"Read this blog to clear your doubts with few browser related terms such as Cascading, CSS Specificity, Classes and IDs to code next generation better.","breadcrumb":{"@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#primaryimage","url":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1","width":2000,"height":1112,"caption":"Think like a browser: Cascading, Specificity, and ID in CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.admecindia.co.in\/web-design\/think-browser-cascading-specificity-and-id-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.admecindia.co.in\/"},{"@type":"ListItem","position":2,"name":"Think like a browser: Cascading, Specificity, and ID in CSS"}]},{"@type":"WebSite","@id":"https:\/\/www.admecindia.co.in\/#website","url":"https:\/\/www.admecindia.co.in\/","name":"ADMEC Multimedia Institute","description":"Best Graphic Design, Web Design, UX Design, Animation Institute in Delhi","publisher":{"@id":"https:\/\/www.admecindia.co.in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.admecindia.co.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.admecindia.co.in\/#organization","name":"ADMEC","url":"https:\/\/www.admecindia.co.in\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.admecindia.co.in\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2024\/11\/admec-new-logo.jpeg?fit=225%2C225&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2024\/11\/admec-new-logo.jpeg?fit=225%2C225&ssl=1","width":225,"height":225,"caption":"ADMEC"},"image":{"@id":"https:\/\/www.admecindia.co.in\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/admecInstituteOfficial\/","https:\/\/x.com\/admecinstitute"]},{"@type":"Person","@id":"https:\/\/www.admecindia.co.in\/#\/schema\/person\/53466235b5c8703280e7b0ebab0c7dcb","name":"ADMEC Multimedia Institute","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.admecindia.co.in\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/85595b2b8e958b60299faadf7c199061dff85db95c35c29f25ef095f173f9f2c?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/85595b2b8e958b60299faadf7c199061dff85db95c35c29f25ef095f173f9f2c?s=96&r=g","caption":"ADMEC Multimedia Institute"},"sameAs":["https:\/\/www.admecindia.co.in"],"url":"https:\/\/www.admecindia.co.in\/author\/admec\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/05\/admec-internal-think-like-a-browser-cascading-specificity-and-id-in-css.jpg?fit=2000%2C1112&ssl=1","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":147,"url":"https:\/\/www.admecindia.co.in\/web-design\/what-do-you-need-know-your-advanced-bootstrap-training\/","url_meta":{"origin":181,"position":0},"title":"What do You Need to Know before Your Advanced Bootstrap Training","author":"ADMEC Multimedia Institute","date":"December 23, 2014","format":false,"excerpt":"I know you have heard about Bootstrap earlier and may be you have used it for one or many websites. Yet let me give some introduction you about\u00a0Bootstrap. It is a framework from Twitter to create responsive website and HTML5 based applications with the great deal of ease. If you\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/12\/admec-internal-what-do-you-need-to-know-before-your-advanced-bootstrap-training.jpg?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/12\/admec-internal-what-do-you-need-to-know-before-your-advanced-bootstrap-training.jpg?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/12\/admec-internal-what-do-you-need-to-know-before-your-advanced-bootstrap-training.jpg?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/12\/admec-internal-what-do-you-need-to-know-before-your-advanced-bootstrap-training.jpg?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/12\/admec-internal-what-do-you-need-to-know-before-your-advanced-bootstrap-training.jpg?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":39,"url":"https:\/\/www.admecindia.co.in\/web-design\/learn-about-css3-and-its-advantages\/","url_meta":{"origin":181,"position":1},"title":"Learn About CSS3 and its Advantages","author":"ADMEC Multimedia Institute","date":"February 1, 2014","format":false,"excerpt":"Dear reader,\u00a0CSS3\u00a0is becoming very popular now days because of its flexible as well as advanced coding features. Our expert writers have put constrain on CSS new features, usability, cross browser issues, and some of the common fundamental issues here in this article. In this article you will be acquainted with\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/css3-advantages.jpg?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/css3-advantages.jpg?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/css3-advantages.jpg?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/css3-advantages.jpg?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/css3-advantages.jpg?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67,"url":"https:\/\/www.admecindia.co.in\/web-design\/what-are-common-cross-browser-issues-and-how-handle-them\/","url_meta":{"origin":181,"position":2},"title":"What are common Cross Browser Issues and how to handle them?","author":"ADMEC Multimedia Institute","date":"February 1, 2014","format":false,"excerpt":"All the Web designers and developers must be very much familiar with the term\u00a0cross browser issues, the below given article will surely be helpful for those who are new to web designing field or for those who are confused between some of the web terminology. What are common Cross Browser\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/admec-internal-What-are-common-Cross-Browser-Issues-and-how-to-handle-them.jpg?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/admec-internal-What-are-common-Cross-Browser-Issues-and-how-to-handle-them.jpg?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/admec-internal-What-are-common-Cross-Browser-Issues-and-how-to-handle-them.jpg?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/admec-internal-What-are-common-Cross-Browser-Issues-and-how-to-handle-them.jpg?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2014\/02\/admec-internal-What-are-common-Cross-Browser-Issues-and-how-to-handle-them.jpg?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":420,"url":"https:\/\/www.admecindia.co.in\/web-design\/display-none-vs-display-block-vs-inline-block-css3-html\/","url_meta":{"origin":181,"position":3},"title":"Display none vs Display block vs Inline block in CSS3 For HTML","author":"ADMEC Multimedia Institute","date":"April 23, 2018","format":false,"excerpt":"HTML is HyperText Markup Language which is used to structure the web page. But we can not apply styles to web pages with help of HTML. We can say that HTML is a base of web design as it involves the basic structure designing of any website. But learning essential\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2018\/04\/display-none-inline-block-block-in-html.jpg?fit=1200%2C792&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2018\/04\/display-none-inline-block-block-in-html.jpg?fit=1200%2C792&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2018\/04\/display-none-inline-block-block-in-html.jpg?fit=1200%2C792&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2018\/04\/display-none-inline-block-block-in-html.jpg?fit=1200%2C792&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2018\/04\/display-none-inline-block-block-in-html.jpg?fit=1200%2C792&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":529,"url":"https:\/\/www.admecindia.co.in\/web-design\/best-tools-and-tips-html-and-css-developers-cross-browser-compatibility\/","url_meta":{"origin":181,"position":4},"title":"Best Tools and Tips for HTML and CSS Developers for Cross Browser Compatibility","author":"ADMEC Multimedia Institute","date":"May 1, 2019","format":false,"excerpt":"Before an application goes live extensive testing is performed to avoid any glitches from appearing when it is used by the end users. An end user can access a website in any browser of his choice like Firefox, opera or chrome. Many times, we come across a situation where we\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2019\/05\/admec-internal-blog-html-tools-tips-1.jpg?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2019\/05\/admec-internal-blog-html-tools-tips-1.jpg?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2019\/05\/admec-internal-blog-html-tools-tips-1.jpg?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2019\/05\/admec-internal-blog-html-tools-tips-1.jpg?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2019\/05\/admec-internal-blog-html-tools-tips-1.jpg?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":17418,"url":"https:\/\/www.admecindia.co.in\/web-design\/you-must-not-miss-these-10-important-things-if-html-programmer\/","url_meta":{"origin":181,"position":5},"title":"You must not miss these 10 important things if an HTML programmer","author":"ADMEC Multimedia Institute","date":"April 2, 2020","format":false,"excerpt":"Today in this blog we will be discussing the Markup Language and not the programming language. Many programmers say HTML is a programming language but it\u2019s a markup language. It structures the whole web page with the help of various elements that encapsulates the various content in its different parts.\u2026","rel":"","context":"In &quot;Web Design&quot;","block_context":{"text":"Web Design","link":"https:\/\/www.admecindia.co.in\/category\/web-design\/"},"img":{"alt_text":"best-php-training-institute-delhi","src":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/01\/best-php-training-institute-delhi.jpg?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/01\/best-php-training-institute-delhi.jpg?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/01\/best-php-training-institute-delhi.jpg?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/01\/best-php-training-institute-delhi.jpg?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.admecindia.co.in\/wp-content\/uploads\/2015\/01\/best-php-training-institute-delhi.jpg?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":0,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/media\/13663"}],"wp:attachment":[{"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.admecindia.co.in\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}