Skip to content

Instantly share code, notes, and snippets.

@marko-jankovic
marko-jankovic / CSS and HTML interview questions.md
Last active April 12, 2024 14:06
CSS and HTML interview questions

CSS


What is CSS?

  • CSS stands for Cascading Style Sheet.
  • Styles define how to display HTML elements
  • Styles were added to HTML 4.0 to solve a problem
  • External Style Sheets can save a lot of work
  • External Style Sheets are stored in CSS files
@marko-jankovic
marko-jankovic / stringReverse
Last active August 29, 2015 14:01
String reverse example
var text = "Gist is a simple way to share snippets and pastes with others.",
textLength = text.length,
lastItem = textLength - 1,
textToArray = text.split("");
for(var i=0; i<textLength/2; i++) {
textToArray[i] = textToArray.splice(lastItem-i, 1, textToArray[i])[0];
}
console.log(textToArray.join(""));