HTML5: Data Attributes

HTML5 data attributes are a great alternative to classes and rel for storing data in an html tag. Creating a Custom Attribute Data attributes can be placed inside any type of tag and needs to follow the format of data-[desired_attribute]=”[value]” requiring at least one character following the dash.  Let’s look at an example: Let’s say you...
Read More

CSS – Media Queries

I came across media queries, a CSS functionality that helps to create a more responsive site, while going through General Assembly’s Dash Tutorial.  It allows you to specify attributes based on the width of the screen.  You construct a media query as follows: @media (max-width: 500px) { body { background: red; } } Essentially  once the statement...
Read More