COMP 2057 Lecture Notes - Lecture 2: Html5
HTML – Part 2
Contents
find more resources at oneclass.com
find more resources at oneclass.com
This is what we covered in my in-class section. You can also find these(or
similar) exercises in the tutorials provided in your notes e.g.
1. HTML 5 Tutorial - W3Schools - https://www.w3schools.com/html/default.asp
2. Make a Website – CodeAcademy - https://www.codecademy.com/learn/make-a-website
HTML Styles
The syntax of the HTML style attribute is :
<tagname style="property:value;">
There are several examples of how we use styles.
Background Color
<!DOCTYPE html>
<html>
<body style="background-color:GreenYellow;">
<h1>Example of a background color using styles</h1>
<p>GreenYellow color</p>
</body>
</html>
find more resources at oneclass.com
find more resources at oneclass.com
Text Color
find more resources at oneclass.com
find more resources at oneclass.com