Code - Cheat Sheet

Monday, January 13, 2020

CSS: Cascading Style Sheets

CSS - Cascading Style Sheets

Pages that give style to HTML

Structure: 3 Main Parts

<html>

<head>

</head>

<body>

</body>

</html>

CSS - Definition

CSS - Cascading Style Sheets. Adding style to web documents. i.e. color, design, typefaces, object placement, accessibility, transitions, etc.


HTML - Definition

HTML

HyperText Markup Language. This is a file format, based on SGML, for hypertext documents on the Internet. It is very simple and allows for the embedding of images, sounds, video streams, form fields and simple text formatting. References to other objects are embedded using URLs.




SOURCE:

https://docs.oracle.com/javase/tutorial/information/glossary.html

Wednesday, January 1, 2020

CSS: Navigation

4 Different States

-visited
-active
-hover
-focus



example

a: visited     {color: #f00}

CSS - Linking to HTML

<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen"

-name of css file
-rel, type, and media

CSS: adjusting space around obejcts

padding margin border

-to have no space around objects set "padding: 0, margin: 0, border"


padding values

first value is top and bottom
second value is left and right

Panels

Panels are the items at the right side of the Photoshop window that can display layer information and text options SOURCE: https://www...