We went more in depth with styling but we learnt how to style the html by using cascading style sheets( c.s.s) you can change where things appear on the page by positioning it,add background images and change colour of the fonts etc. In other words you can control the appearance of every element on the page.The first thing to bare in mind is to include the link tour c.s.s in the html.about this example is the presence of
In c.s.s the selector indicates which of the elements the rule applies to and the rule changes the properties of those elements. C.S.S has the ability to style several elements at once each rule is separated by a semi-colon and is in a curly bracket.Note just as you are able to style multiple elements at once a style sheet can server multiple html documents having this saves time.
Some c.s.s. properties include:font-size,font-color,padding-top,padding-left etc.The color property allows you to select the color of the text.For example, the following rule would make the content of paragraph elements violet:
p {color:#8D38C9;}
No comments:
Post a Comment