<!doctype html> <html lang='en-us'> <head> <title>Giant Pink Red</title> <style> .red {color:red} .giant {font-size:3in} .giantred {background-color:pink} </style> </head> <body> <p>Hello, world!</p> <p class="red">Hello, world!</p> <p class="giant">Hello, world!</p> <p class="giantred">Hello, world!</p> <p class="red">Hello, world! <span class="giant"> Hello, world! </span></p> <p class="giant">Hello, world!
<span class="red"> Hello, world! </span></p> </body> </html>
<title>exercise</title><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="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>
<!--one without a class attribute, one with class attribute value red one with class attribute giant, one with both, one with class attribute red which a nested span tag with class attribute giant, and finally, one with class attribute giant which a nested span tag with class attribute red.</--><p class ="red">hello world</p> <p style="color: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>
<!DOCTYPE html> <html> <head> <title>feb17 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)
<head> <title> Web page </title> <style> .giant .red { font-size:3in; background-color: pink; } .giant { font-size: 3in; } .red { color: red; } </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>
<meta name="viewport" , content="width=device-width, initial-scale= 1.0"> <meta charset="UTF-8"> <title>Title</title></head>
<style type="text/css"> .red{ color: red; } .giant{ font-size: 3in; } .red.giant{ background-color: pink; } </style>
<meta charset="utf-8"> <title>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="giant">hello world</spant></p> </body> </html
<!DOCTYPE html> <html> <head> <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>