Lab 10 Reflection
In Lab 10 we used external CSS to stylize our webpage about our favicon. The same way we started lab 9 we opened up a new HTML file. But instead of setting up the style tags we opened up another document, a .css file. Before continuing any further I made sure both of these files were saved in the same folder. Then, in the HTML file I linked the document to the CSS file in the head using the <link> tag. The link tag had 3 attributes; rel, type, and href. The rel, or relation to the document, was "stylesheet" and the type, for type of document, was "text/css". For href I was able to put the name of the CSS file since the CSS and HTML file were in the same folder, so it will be able to find the stylesheet.After linking the two files the way I stylized the webpage was just like how I stylized the webpage for lab 9. The way I selected items and changed the value of their property remained the same because CSS is used the same way in between <styles> and externally. The only difference between internal and external CSS is that in internal you refer to the same document to change looks while in external you switch between documents to change looks.
Comments
Post a Comment