0% found this document useful (0 votes)
41 views

Features of CSS: Task 1

The document discusses three ways that CSS can be accessed in HTML files - through external style sheets, document CSS within the HTML page, and inline CSS within specific HTML lines - and explains that each element in CSS/HTML has boxes around it called the padding, border, and margin that control spacing and appearance. Each CSS access method has different uses and power, with external being weakest but applying to all pages, document CSS for a single page, and inline CSS strongest but only applying locally.

Uploaded by

cheesseemann
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Features of CSS: Task 1

The document discusses three ways that CSS can be accessed in HTML files - through external style sheets, document CSS within the HTML page, and inline CSS within specific HTML lines - and explains that each element in CSS/HTML has boxes around it called the padding, border, and margin that control spacing and appearance. Each CSS access method has different uses and power, with external being weakest but applying to all pages, document CSS for a single page, and inline CSS strongest but only applying locally.

Uploaded by

cheesseemann
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Software Dev 24/09/2013

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

You might also like