preview

P1 Explain How HTML File Access Css Essay

Decent Essays

P1 Explain how HTML files access CSS

How CSS code is linked to HTML (Inline, Internal and External) -

HTML and CSS can be used together to have the ability to create websites. Although HTML and CSS do different things within the construction of the website ultimately they both work together to create a website.

HTML should be entirely for the structure of the website, this will declare to the browser which part is a heading and which part of the website is content.

CSS will be used within a web pages and will inform the browser how the HTML elements should actually look, for example: The font size and the colour of the font. It will also tell the user where these elements should be positioned on the different webpages.

The 3 main …show more content…

This is mean it is easy to maintain websites, also fixing any problems is easy meaning there is less chance that your website will crash. Using internal coding can only affect the code which will go onto the actual homepage, it will not affect any other pages. This means you will be able to edit a single page without worrying about changing any other pages. This is internal code within my website.

External -

I used a large amount of external coding within my website, this is what my external code looks like:

This is what my particular external sheet looks like.

External styles are one of the most powerful of styles which a user can use. External styles will include: style rules, these are usually placed within the head section of a web-page but placed within a separate file in my case it is: hobbies1.css. You can link multiple websites together, this is typically used by users if the person wants to create a website that will contain a large amount of webpages. Although some errors can occur if the user tries to change the .css.

Client Side Ass 1 Task 2 - P2 Explain the features of a box model for CSS.

Within the box model there are some design areas which are as follows: Margin, Border, Padding and Content.

This is what a box model looks like:

In this image this displays on of the areas of the box model, which is: Border. As you can see

Get Access