Features of CSS: Task 1
Features of CSS: Task 1
Features of CSS
Task 1:
HTML files access CSS in three different ways. The first is by using an external style sheet linked at the top of the HTML code page. The second is Document CSS. Document CSS is code at the top of a HTML page and is accessed from within the document. The third is inline CSS, inline CSS is put in the line of HTML code that you want to edit and is assessed from within the document.
Task 2:
Every bit of content in CSS/HTML has a series of boxs around them, called elements, the Padding, Border and Margin. The padding is an area around the content, it can have a colour. The border goes around the padding. The margin has no colour and goes around the border
Task 3:
Each of the three methods of CSS has their own uses and benefits. An external CSS style sheet Is useful because it can edit every page you have while only being written once, e.g. you have a 100 page website and you want all the backgrounds to be blue, you can just change the style sheet and it changes all of the pages. Even though the style sheet can edit all of the pages at once, it is the least powerful of the three CSS methods, all of the other CSS methods overwrite external CSS when they are used. Document CSS is used to edit a single page of HTML, it is put at the top and the rest of the page uses it, but only that page. It is the second most powerful method of CSS because it overwrites any external CSS but it is still overwritten by inline CSS. Inline CSS is used to edit a single line of HTML code from within the document. It is the most powerful form of CSS because it overwrites all other methods.
George Mitchell