COMP 2057 Lecture Notes - Lecture 2: Html5

56 views8 pages
HTML – Part 2
Contents
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in
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
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in
Text Color
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions