code reading Flashcards
-!doctype html-
there is a doctype element declaration with the value html?
title - (html skeleton) -/title
There is the opening tag for the title element with the text content of html skeleton, followed by the closing tag for the title element.
-p- © Pokemon. ® Nintendo. -/p-
there’s an opening tag for a paragraph element with a text content of an escape entity ampersand copy; pokemon. Ampersand reg; Nintendo. Then a closing tag for the paragraph element.
-a href=”%E2%80%9Dindex.html%E2%80%9D”>homepage-/a-
opening tag for anchor element with an href attribute of index.html with a text content of homepage and then a closing tag for the anchor element.
input (opening input tag)
there is an input element… (not opening tag for input element, since there’s no closing tag).
h2#JS { color: blue;}
There is a selector for THE h2 element with the ID of JS. Inside of the declaration, there is a property of color with the value of blue.
Body { color: #090302; font-family: sans-serif;}
“on line 1 there is a css selector for all elements of type body/(for all article elements) and the opening curly brace for the declaration block. On line 2 there is a color property with the value of hex code seen here. On line 3 there is a font family property with the value sans serif, and on line 4 there is a closing curly brace for the declaration block.”
border: 1px solid;
“there is a border shorthand property with the value of 1px and solid”
.title
There is a css selector for all elements with the class ‘title’.
body{ background-color: rgb (200, 233, 255);}
there is a background-color property with the value of the rgb css function with the values 200, 233, 255
font-family: ‘cabin’, sans-serif.
there is a font family prop with a value cabin, and a fall back value sans-serif
.custom-button:hover
there’s a css selector all elements with the class custom button and the pseudo class hover
table.striped thead > tr
there’s a css selector for all tr elements which are direct children of a thead element that is a descendant of the table element with the class striped.
Table.striped tbody > tr:nth-child(odd)
there’s a css selector for all tr elements with the pesudo class nth child with the argument odd, which is a direct child of a tbody element which is a descendant of a table element with class striped
html (opening html tag)
there is an opening tag for the html element.
/head (closing head tag)
there is a closing tag for the head element
-img- src=”url” width=” 700px alt=”text” -
There is an image tag with a source attribute set to “url”, a width attribute set to 700pixels, and an alt attribute set to “text”.
Body { color: #090302; font-family: sans-serif;}
“on line 1 there is a css selector for all elements of type body/(for all article elements) and the opening curly brace for the declaration block. On line 2 there is a color property with the value of hex code seen here. On line 3 there is a font family property with the value sans serif, and on line 4 there is a closing curly brace for the declaration block.”
border: 1px solid;
“there is a border shorthand property with the value of 1px and solid”
.title
There is a css selector for all elements with the class ‘title’.
body{ background-color: rgb (200, 233, 255);}
there is a background-color property with the value of the rgb css function with the values 200, 233, 255
font-family: ‘cabin’, sans-serif.
there is a font family prop with a value cabin, and a fall back value sans-serif
.custom-button:hover
there’s a css selector all elements with the class custom button and the pseudo class hover
table.striped thead > tr
there’s a css selector for all tr elements which are direct child of athead element that is a descendent of the table element with the class striped.