CyberStars

Web Development

Build a website of your own, page by page: write each page in HTML, style it with CSS, then bring it to life with JavaScript, and see it change as you type.

Chapters

  1. Your First Tag
  2. Paragraphs
  3. The Frame of a Page
  4. The Tab's Title
  5. Attributes and lang
  6. Any Letter
  7. Headings
  8. Headings by Meaning
  9. Spaces and Enter
  10. Line Breaks
  11. strong and em
  12. More Text Tags
  13. Inline and Block
  14. Comments
  15. Links
  16. Links That Open a New Tab
  17. Email Links
  18. Jump Links
  19. Images
  20. alt Text
  21. Image Size
  22. HTML Recap
  23. What Is CSS
  24. A CSS Rule
  25. The Browser's Own Styles
  26. Classes
  27. Ids in CSS
  28. Class or Id?
  29. Two Rules, One Element
  30. Color Names
  31. Hex Colors
  32. rgb() and See-through Colors
  33. Background Color
  34. Contrast
  35. Fonts
  36. Weight, Style and Case
  37. Line and Letter Spacing
  38. Aligning Text
  39. Pixels and font-size
  40. rem
  41. Images That Fit
  42. CSS Recap
  43. Project: Crew Profile
  44. A Second Page
  45. Paths
  46. A Menu
  47. Lists
  48. Numbered Lists
  49. Lists Inside Lists
  50. div
  51. span
  52. HTML Recap
  53. Every Element Is a Box
  54. Borders
  55. Margins
  56. One Side or Four
  57. Inspect
  58. Margins That Collapse
  59. Width and Height
  60. border-box
  61. Min and Max Sizes
  62. Centering a Box
  63. Centering Text
  64. The Body Is a Box Too
  65. display
  66. Bigger Targets
  67. overflow
  68. Cutting a Line Short
  69. Round Corners
  70. One Side's Border
  71. Shadows
  72. CSS Recap
  73. Your First Script
  74. The Console
  75. Reading an Error
  76. Comments in JavaScript
  77. When a Script Runs
  78. const
  79. let
  80. Good Names
  81. Strings
  82. Template Literals
  83. Length and Case
  84. Quotes Inside Quotes
  85. Finding an Element
  86. textContent
  87. Your First Click
  88. JavaScript Recap
  89. Numbers
  90. Rounding
  91. Numbers from the Page
  92. Arrays
  93. Changing an Array
  94. querySelectorAll
  95. For Loops
  96. Looping Through an Array
  97. Building a String
  98. A Loop That Never Ends
  99. for...of
  100. Adding Up
  101. Functions
  102. Parameters
  103. return
  104. Doing or Working Out
  105. Adding Elements
  106. Removing Elements
  107. A List That Doesn't Update
  108. innerHTML
  109. Why innerHTML Is Dangerous
  110. JavaScript Recap
  111. Project: Cargo Ledger
  112. Tables
  113. Header Cells
  114. Table Sections
  115. Cells That Span
  116. HTML Recap
  117. Elements Inside Elements
  118. Children Only
  119. Siblings
  120. Table Borders
  121. Attribute Selectors
  122. :hover
  123. :focus
  124. First, Last and nth
  125. ::before and ::after
  126. More Pseudo-elements
  127. Specificity
  128. The Later Rule Wins
  129. Inheritance
  130. !important
  131. Background Images
  132. Gradients
  133. CSS Recap
  134. true and false
  135. === and ==
  136. And, Or, Not
  137. If/Else
  138. else if
  139. The Ternary
  140. While Loops
  141. for or while?
  142. break
  143. continue
  144. Objects
  145. Changing an Object
  146. Arrays of Objects
  147. Objects from the Page
  148. filter
  149. sort
  150. sort Changes the Array
  151. Reordering the Page
  152. Attributes
  153. classList
  154. A Toggle Button
  155. JavaScript Recap
  156. Project: Launch Board
  157. Text Fields
  158. Labels
  159. A Hint in the Box
  160. Forms
  161. What a Form Sends
  162. Email and Phone Fields
  163. Number Fields
  164. Date Fields
  165. Checkboxes
  166. Radio Buttons
  167. A Question over Choices
  168. Drop-down Lists
  169. Longer Texts
  170. Button Types
  171. Required Fields
  172. Length Limits
  173. Where a Form Goes
  174. HTML Recap
  175. Fonts in Fields
  176. Form Layout
  177. :focus-visible
  178. :valid and :invalid
  179. :user-invalid
  180. :checked
  181. Disabled Fields
  182. accent-color
  183. Spacing
  184. Hierarchy
  185. CSS Recap
  186. Reading a Box
  187. The Event Object
  188. The input Event
  189. The change Event
  190. Keyboard Events
  191. The submit Event
  192. preventDefault
  193. Truthy and Falsy
  194. A Default Value
  195. switch
  196. trim
  197. Searching a Text
  198. Cutting a Text
  199. Regular Expressions
  200. Regex Patterns
  201. The pattern Attribute
  202. Error Messages
  203. setCustomValidity
  204. An Error You Can Hear
  205. JavaScript Recap
  206. Project: Cargo Request
  207. Header and Footer
  208. The Main Part
  209. Landmarks
  210. Sections
  211. Articles
  212. Asides
  213. The Description
  214. The Viewport
  215. Special Characters
  216. Non-Breaking Spaces
  217. HTML Recap
  218. Flexbox
  219. Flex Direction
  220. Justify Content
  221. Align Items
  222. Gap
  223. Flex Wrap
  224. Flex Grow
  225. Flex Basis
  226. Flex Shrink
  227. Align Self
  228. Order
  229. Auto Margins
  230. Relative Position
  231. Absolute Position
  232. Fixed Position
  233. Sticky Position
  234. z-index
  235. CSS Recap
  236. Arrow Functions
  237. Default Parameters
  238. Scope
  239. Styles from JavaScript
  240. Bubbling
  241. Event Delegation
  242. A Script for Every Page
  243. Open or Closed
  244. JavaScript Recap
  245. Project: Spaceport Launch
  246. A Video
  247. A Video That Plays by Itself
  248. A Sound
  249. Captions
  250. A Picture and Its Caption
  251. HTML Recap
  252. Grid: Rows and Columns
  253. Sharing the Room: fr
  254. Rows
  255. Over Two Columns
  256. Grid Lines
  257. Inside a Cell
  258. The Layout in Words
  259. Many Columns at Once
  260. Never Narrower Than
  261. As Many as Fit
  262. Flex or Grid?
  263. Media Queries
  264. Where the Page Breaks
  265. Another Layout on a Phone
  266. Phone First
  267. A Picture for Each Screen
  268. Another Picture on a Phone
  269. CSS Recap
  270. Is It in the List?
  271. A Part of an Array
  272. An Array as One Text
  273. A Text as an Array
  274. Change Every Item: map
  275. One Method After Another
  276. Many Into One: reduce
  277. The First That Matches: find
  278. Is There One? Are They All?
  279. Every Key of an Object
  280. Keys and Values
  281. Each Key With Its Value
  282. Dates
  283. A Date to Read
  284. Days Between Two Dates
  285. Once, a Bit Later
  286. Again and Again
  287. Stop the Timer
  288. Your Own Play Button
  289. Sound On, Sound Off
  290. JavaScript Recap
  291. Project: Rover Status
  292. HTML Before ARIA
  293. A Button That Stays Pressed
  294. Only for the Eye
  295. HTML Recap
  296. A Value Named Once
  297. A Whole Theme in One Class
  298. A Change That Takes Time
  299. How the Change Moves
  300. Move It: translate
  301. Turn It, Grow It
  302. Keyframe Animations
  303. An Animation That Goes On
  304. Dark Mode
  305. Less Motion
  306. Only for Screen Readers
  307. CSS Recap
  308. A Function Inside an Object
  309. this
  310. null and undefined
  311. Stop at Nothing: ?.
  312. A Value to Fall Back On: ??
  313. Data as a Text: JSON.stringify
  314. The Text Back to Data: JSON.parse
  315. Kept After a Reload: localStorage
  316. Saving an Object
  317. Forget One Thing: removeItem
  318. Map
  319. Set
  320. Take the Keyboard There: focus()
  321. Changes Read Out Loud: aria-live
  322. The Theme on Every Page
  323. JavaScript Recap
  324. Project: My Tasks
  325. A Card Kept for Later
  326. Still Loading
  327. HTML Recap
  328. A Spinner
  329. Skeleton Cards
  330. A Light That Moves
  331. Only While It Loads
  332. CSS Recap
  333. The Page Doesn't Wait
  334. A Promise
  335. When the Value Comes
  336. A Promise That Fails
  337. async and await
  338. An async Function Gives a Promise
  339. Asking with fetch
  340. Reading JSON
  341. A Card for Each Starship
  342. Two Answers at Once
  343. Busy, Then Ready
  344. When the Answer Is an Error
  345. try and catch
  346. Throwing an Error
  347. Whatever Happens: finally
  348. Try Again
  349. Taking an Object Apart
  350. Taking an Array Apart
  351. Taking Apart What a Function Gets
  352. Spreading an Array
  353. A Copy with One Change
  354. Any Number of Values
  355. Sending Data
  356. A Form That Sends
  357. JavaScript Recap
  358. Project: Space Quiz
  359. A Script as a Module
  360. Sharing with export
  361. Using It with import
  362. The Main Thing of a File
  363. One Module, Two Pages
  364. Classes
  365. Methods in a Class
  366. A Class That Starts from Another
  367. What the First Class Already Does
  368. A Value Worked Out When Read
  369. A Value Checked When Written
  370. A Value Only the Class Can Touch
  371. Stopping on a Line
  372. Step by Step
  373. A Breakpoint in the Code
  374. Recap
  375. Project: Lost on the Station