Indeed, a webpage is simple without designs but how exactly do we design it? We use CSS - Cascading Style Sheet. From what I learnt, it is a formatted text which includes the background design and almost everything you want to design. When we finally finish typing our the style sheet, we must save it as an external.css file.
The most amazing thing is that once we link it to our html file, no matter how we change the css file, our html page will change accordingly too. Another point - once we link it to 2 or more pages and edit the css file, all of them will change accordingly without us lifting a finger!
When we type out our css, we must have the font family, font size, backgrond colour, text alignment and colour. Perhaps there are many more additional things which make our website more beautiful and colourful. But the most important thing is that we put the link tag between the "head" tag, after the "title" tag, then we can link it properly.
I almost forgot we must put the DOCTYPE above everything! It must be above the "head", "title", "html" and all the other tags!
Now for my reflection, I think that learning CSS is a very tedious process but the programmers actually spent time learning all these for us to enjoy the websites we visit. I did not know anything at first when I heard the word CSS. I thought that a webpage was there mainly because of the fact that there is a html file. However, after this lesson, I have learnt that CSS files make up the other important component of creating a beautiful webpage!
Yours Sincerely,
Jack Tan (1O307)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment