Assignment On Classes and Ids
Assignment On Classes and Ids
Open the text editor or WYSIWYG and copy paste the HTML code. See the output.
Understand the impact of each and every tag on the web page. Learn how the different tags are
used. Don’t discuss the text given in the paragraph. It is ‘lorem ipsum’ (dummy text)
<html>
<head>
<meta charset="UTF-8">
<title>Selectors Exercise</title>
<link rel="stylesheet" type="text/css" href="selectors.css">
</head>
<body>
<h1>Selectors Exercise</h1>
<div>
<p class="hello">I am a paragraph with a class</p>
<p id="special">I am a paragraph with an ID</p>
<p>Roof party yr hella synth, Wes Anderson narwhal four dollar toast before they sold out retro lo-fi.
Austin iPhone pop-up farm-to-table, PBR&B McSweeney's ennui messenger bag distillery before
they sold out Portland wolf fanny pack YOLO. Locavore slow-carb trust fund farm-to-table. Pinterest
gastropub lo-fi, McSweeney's trust fund VHS shabby chic ugh Austin twee. Messenger bag banjo,
whatever 3 wolf moon XOXO normcore. Pug fanny pack 3 wolf moon, typewriter organic chia
mustache scenester seitan shabby chic Blue Bottle salvia ugh iPhone. Fanny pack Williamsburg direct
trade, cold-pressed disrupt flannel listicle health goth asymmetrical freegan mixtape street art pour-
over whatever.</p>
</div>
<div>
<h2>Things I need to do</h2>
<ul>
<li>Walk Dog <input type="checkbox" checked> </li>
<li>Feed Dog <input type="checkbox" checked> </li>
<li>Wash Dog <input type="checkbox"></li>
</ul>
</div>
<div>
<h2>I am another awesome h2</h2>
<p>Cardigan Tumblr mlkshk, fap tilde 3 wolf moon Portland. Heirloom health goth taxidermy blog
lo-fi selfies, post-ironic master cleanse fingerstache normcore. Kickstarter plaid twee, bespoke
single-origin coffee sustainable lo-fi vinyl Pinterest pork belly <em>cronut skateboard</em> 3 wolf
moon. Normcore single-origin coffee salvia, bespoke Austin swag Godard before they sold out kogi
disrupt locavore. Artisan American Apparel master cleanse yr salvia vegan. Bespoke letterpress
heirloom kale chips deep v four loko. Lomo sustainable put a bird on it trust fund post-ironic</p>
<div>
<h2>A less awesome h2</h2>
<p>Roof party yr hella synth, Wes Anderson narwhal four dollar toast before they sold out retro lo-fi.
Austin iPhone pop-up farm-to-table, PBR&B McSweeney's ennui messenger bag distillery before
they sold out Portland wolf fanny pack YOLO. Locavore slow-carb trust fund farm-to-table. Pinterest
gastropub lo-fi, McSweeney's trust fund VHS shabby chic ugh Austin twee. Messenger bag banjo
whatever 3 wolf moon XOXO normcore. Pug fanny pack 3 wolf moon, typewriter organic chia
mustache scenester seitan shabby chic Blue Bottle salvia ugh iPhone. Fanny pack Williamsburg direct
trade, cold-pressed disrupt flannel listicle health goth asymmetrical freegan mixtape street art pour-
over whatever</p>
</div>
</body>
</html>
Use the following instructions to apply styles to the page above.
/*………….*/ is the single line comment.
Use classes and ids wherever necessary.
/* Give the element with id 'special' a 2px solid blue border(pick your own rgb blue)*/
/*Make all the <p>'s that are nested inside of divs 25px font(font-size: 25px)*/
/* Give the 2nd <p> inside the 3rd <div> a 5px white border*/
/* Make the <em> in the 3rd <div> element white and 20px font(font-size:20px)*/
/*BONUS CHALLENGES*/
/*You may need to research some other selectors and properties*/
/* Make the <label> elements all UPPERCASE without changing the HTML(definitely look this one
up*/
/*Make the first letter of the element with id 'special' green and 100px font size(font-size: 100)*/
/*Make the <h1> element's color change to blue when hovered over */