<!DOCTYPE html> <html> <head> <title>exercise2 2/17</title> <style type="text/css"> .red{ color: red; }
.giant{ font-size: 3in; }
.red.giant{ background-color: pink; } </style> </head> <body> <p>hello world</p> <p class="red">hello world</p> <p class="giant">hello world</p> <p class="red giant">hello world</p> <p class="red"><span class="giant">hello world</span></p> <p class="giant"><span class="red">hello world</span></p> </body> </html>(Edited: 2021-02-17)
<title>In-class exercise</title><style> .red {
color: red;}
font-size: 7.5cm;}
background-color: pink;}
<p>hello world</p> <p class="red">hello world</p> <p class="giant">hello world</p> <p class="red giant">hello world</p> <p class="red"><span class="giant">hello world</span></p> <p class="giant"><span class="red">hello world</span></p></body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Hello World</title>
<style> .red { color:red; } .giant { font-size: 3in; } .giant .red{ background-color: pink; } </style> </head> <body> <p>Hello world</p> <p class="red">Hello world</p> <p class="giant">Hello world</p> <p class="giant red">Hello world</p> <p class="red"><span class="giant">Hello world</span></p> <p class="giant"><span class="red">Hello world</span></p> </body> </html>(Edited: 2021-02-17)
hello world
hello world
hello world
hello world
hello world
hello world
<!DOCTYPE html> <html lang="en-US"> <head> <title>Class Selectors</title> <meta name="description" content="Experimentation with class selectors"> <meta name="author" content="Mark Silva"> <meta charset="utf-8"> <style> .red { color:red; } .giant { font-size:3in; } .giant.red { background-color: pink; } </style> </head> <body> <p>hello world</p> <p class="red">hello world</p> <p class="giant">hello world</p> <p class="giant red">hello world</p> <p class="red"><span class="giant">hello world</span></p> <p class="giant"><span class="red">hello world</span></p> </body> </html>(Edited: 2021-02-17)
<!DOCTYPE html> <html> <head> <style> .red { color: red; } .giant { font-size: 3in; } .red .giant{background-color:pink} </style> </head> <body>
<p>Hello World</p> <p class="red">Hello World</p> <p class="giant">Hello World</p> <p class="giant red">Hello World</p> <p class="red">Hello<span class="giant"> World</span></p> <p class="giant">Hello<span class="red"> World</span></p>
</body> </html>
<!DOCTYPE html> <html> <head> <title>Feb 17th In Class Exercise</title> <style> .red { color: red; } .giant { font-size: 3in; } .giant .red { background-color: pink; } </style> </head> <body> <p>hello world</p> <p class="red">hello world</p> <p class="giant">hello world</p> <p class="giant red">hello world</p> <p class="red"><span class="giant">hello world</span></p> <p class="giant"><span class="red">hello world</span></p> </body> </html>(Edited: 2021-02-17)
<title>Hello World</title> <meta charset="utf-8"/> <style> .red { color:red; } .giant { font-size:3in; } .giant .red { background-color: pink; } </style></head> <body>
<p>hello world</p> <p class="red">hello world</p> <p class="giant">hello world</p> <p class="giant red">hello world</p> <p class="red"><span class="giant">hello world</span></p> <p class="giant"><span class="red">hello world</span></p></body> </html>