Welcome to my blog

Week 2

This week I gained a better understanding of the role that CSS plays in its relationship with HTML. It greatly enhances the layout of a website thus improving the user's online experience.

This week's lab focused on the different ways to attach a CSS file.




Embedded CSS Rules - I had to create a set of embedded CSS rules for specific properties. I had to identify the correct tags and attributes to accomplish each rule. For example I had to paint  the background a light tan, body{background-color: #FC6;}. The rules are written inside the header in the <style></style> section.





External CSS - I created a styles.css file and attached it by inserting <link rel="stylesheet" type="text/css" href="partb_styles.css" /> in the header in the HTML document. I created rules for the different tags. For example, h1{background-color: #39f; border-bottom: thin solid #003; text-align: center; margin: 35px;}.


Comments

Post a Comment