Tuesday 8 October 2013

Explain how HTML files access CSS


Explain how HTML files access CSS

HTML

HTML stands for Hyper Text Mark-up Language used to create files on the internet; it defines the structure of a web document with the help of different tags. For example the <HTML> OR <BODY> tags. HTML lays out a basic outline for the website so other complicated languages (such as JavaScript and CSS) can manipulate the code. HTML can be used to create simple websites however for more complicated websites; other advanced programs would be used.

 

After the text has been saved as an HTML file, the browser reads then reads the file and translates the code into to visible form. This means that the user can create their own HTML coding on demand by using the tags correctly and produce their own vision inform of a website. HTML concentrates on the content of the website, HTML tags most commonly come in pairs like <h1> and </h1>, although some tags represent empty elements and so are unpaired, for example <img>.

CSS

CSS stands for Cascading Style Sheets, CSS concentrates on the formatting of the website for example layout, font and colour. CSS can modify or replace any of the layers without having to change the others; one change will affect many pages (separate CSS) therefore we do not have to change the same thing in many pages. It’s most common application is to style web pages written in HTML and XHTML. CSS enables multiple pages to share formatting therefore it reduces complexity and repetition of code.

For example:

Font-size: 30px

Background-color: green

Comparison

CSS concentrates on the layout, for a variety of devices. Along with graphics and scripting, HTML and CSS are the basis of building Web pages and Web Applications.CSS is much better for layout than HTML; however HTML is the foundation for all websites. HTML is seen as "mother tongue" of your browser, HTML is used for content.

Reference

http://abdullahassignment2.blogspot.co.uk/2013/01/p1-explain-how-html-files-access-css.html

Website- blogspot.co.uk

Time- 10:34 pm

Date- 02/12/2013

http://bizbtec.blogspot.co.uk/2012/11/unit-20-p1-explain-how-html-files.html

Website- blogspot.co.uk

Time- 10:40 pm

Date- 02/12/2013
 

No comments:

Post a Comment