There are many different ways for specifying attributes (e.g bgcolor) for the HTML tags (e.g TD).
1. We can specify it as attribute of the tag itself (e.g <td bgcolr="white">)
2. We can specify it using the inline style (e.g <td style="background-color:white">)
3. Style can be declared within the page itself
(e.g <style> .mycolor {
background-color:white;
</style>
<---------some other code------->
<td class="mycolor" >
4. The above style declaration can be done in external CSS file and it can be used in the td tag.
So now question is if we specify the attribute using use many of the above ways which one will be considered.
Normally inline Style declaration will take high priority, next priority it for the style declared in the page, then external CSS. Least priority is for the attribute of the HTML tag.
More Articles...
Shop at Rajamanickam.com | Birthday Gift Idea? | Hire me for $6 per Hour
Get 3 useful ebooks for Rs 99 in India and $5.99 globally
Get a 75% commission | ChatGPT and and Google Gemini for Beginners (Use Discount code QPT)
Search This Blog
Art of Talking to AI | Tech eBook | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment