Monday, December 15, 2014

Lab 14 - Article

In lab 14, we had to create an article that included blockquotes. Basically, we had to put the main quotes from our article on a block next to our paragraph. As you can see, I added 2 blockquotes inside my web design design article. I did this using jquery and javascript.

Inside, my CSS, I made my article 600px width and my blockquote to be 35% width and which color I wanted it to be. Inside the <article> tag, I wrote my article about web designing and ended it with the </article> tag. To have a blockquote, I used the <span class=co> tag and wrote inside what I wanted to include inside the blockquote and ended my tag using </span>. At the bottom, I included the jquery to make my lab work.


My JavaScript

As you can see inside my javscript, I include the function name 'span.co' that is my blockquote.

No comments:

Post a Comment