Lucia LADDERHTML Fundamentals Chapter 01

Loading learning progress…

HTML-01-04 · LESSON 4 / 4 · ± 8 MINUTES

Edit, Preview, Repeat

After this lesson, you can edit an HTML document and distinguish changes in body from metadata in head.

BEGIN WITH A QUESTION

Understanding begins with a question.

You have changed the code, but the display has not changed. Is the code wrong, the file unsaved, or a different file open? Develop a small habit that helps throughout the course.

Edit an HTML document and distinguish changes in body from metadata in head.

UNDERSTAND THE CONCEPT

01

The edit → save → view cycle

On your computer, save the code as index.html and open that file in a browser. After editing, save again and reload the tab. Make sure its name is not index.html.txt. Index.html is commonly used as a folder's main page name on web servers.

02

In Lucia's practice workspace

Type in the editor. The preview updates automatically after a short pause; Run preview updates it immediately. Check task evaluates the exercise goals and offers guidance. Code and learning position are saved in this browser when storage is available.

03

Change one thing and observe

Try changing h1 text first, then a paragraph. If the result is unexpected, inspect the part you just changed. A normal-looking preview does not guarantee correct markup: browsers can recover from many errors.

EXAMPLE / CONTEXT

Examples clarify concepts.

HTML EXAMPLE

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Exploration Log</title>
</head>
<body>
  <h1>Day two exploration</h1>
  <p>I found a new pattern in the sky.</p>
  <p>Tomorrow I would like to observe again.</p>
</body>
</html>

BROWSER RESULT

Change one sentence in body and observe the result. Changing title affects the document title, not the h1 text.

TRY TOGETHER

Practice clarifies understanding.

01 Changes to a local file have not appeared in the browser tab. What is a sensible first step?

Try as often as you need. The independent task that follows records lesson completion.

WRITE · OBSERVE · UNDERSTAND

Notes that keep growing

Change title to ‘Day Two Journal’, change h1 to ‘First Sprout’, and add a second paragraph describing a plan to care for the plant. Run the preview to see the result.

HTML
index.htmlHTMLLn 1, Col 112 lines2 spasi
Editor shortcuts & help
Ctrl + Space
Show suggestions · ↑ ↓ select · Enter accept · Esc close
Shift + Alt + F
Format code
Ctrl/⌘ + F
Find and replace text
Ctrl/⌘ + [ / ]
Decrease / increase indentation
Tab
Move focus; inside a snippet, move to the next field. Esc then Tab to exit.
Ctrl/⌘ + Z
Undo changes, including formatting

Suggestions use the language, snippets, and local code context. Formatting runs in your browser.

Document preview

Ctrl/⌘ + Enter runs the preview. Preview uses reading styles. Scripts and form submission are disabled. Sample illustration: assets/observatory.svg.

Return to the starter code?

All files in this task will be replaced with starter code. Completed lessons remain recorded.

TAKE THIS UNDERSTANDING WITH YOU

Practice gives a foundation.

  • Local HTML files follow the edit, save, and reload cycle.
  • In Lucia, the preview runs automatically and can be run again.
  • Changes to title and body have different effects.
DebuggingMetadata

A lesson is complete when the independent task meets its goals. Return to the reading at any time.

Take the Chapter Trial →

Lucia LEXICON / SHORT DEFINITION

Understand this concept

Search knowledge in Lucia

LADDER / LEARNING MATERIAL

What is HTML?HTML FundamentalsYour First HTML DocumentHTML FundamentalsInside the HeadHTML FundamentalsEdit, Preview, RepeatHTML FundamentalsTrial 1HTML FundamentalsTags vs. ElementsHTML FundamentalsUnderstanding AttributesHTML FundamentalsNesting & Void ElementsHTML FundamentalsComments & Character ReferencesHTML FundamentalsTrial 2HTML FundamentalsHeadings & ParagraphsHTML FundamentalsEmphasis, Importance & QuotesHTML FundamentalsListsHTML FundamentalsText with MeaningHTML FundamentalsTrial 3HTML FundamentalsLinks & URLsHTML FundamentalsFiles, Folders & NavigationHTML FundamentalsImages & Alternative TextHTML FundamentalsFigures, Audio & Video BasicsHTML FundamentalsTrial 4HTML FundamentalsPage LandmarksHTML FundamentalsSections & ArticlesHTML FundamentalsDiv, Span, ID & ClassHTML FundamentalsAccessible NavigationHTML FundamentalsTrial 5HTML FundamentalsWhen to Use a TableHTML FundamentalsRows & CellsHTML FundamentalsCaptions & HeadingsHTML FundamentalsAccessible TablesHTML FundamentalsTrial 6HTML FundamentalsForms & LabelsHTML FundamentalsInputs & Field ValuesHTML FundamentalsMore Form ControlsHTML FundamentalsBuilt-in Validation & SubmissionHTML FundamentalsTrial 7HTML FundamentalsPlan Your WebsiteHTML FundamentalsBuild the StructureHTML FundamentalsAdd Media & FormsHTML FundamentalsValidate, Debug & ReviewHTML FundamentalsMy First HTML WebsiteHTML Fundamentals

LEXICON / CONCEPTS

BrowserAn application for opening, displaying, and interacting with web pages.HTTPA protocol for exchanging requests and responses between web clients and servers.HTMLA markup language that gives structure and meaning to web content.JSONA text format for storing or exchanging structured data.DNSA distributed naming system that associates domain names with information such as IP addresses.HTTPSHTTP using TLS to protect data exchanges in transit.ServerSoftware or a computer that provides services to clients.URLAn address identifying a resource’s location and how to access it.Domain nameA hierarchical name identifying part of the internet’s naming system.LinkA reference you can follow to a resource or another part of a document.CSSA stylesheet language for controlling web document appearance and layout.JavaScriptA programming language that can add dynamic behavior to web pages.DOMA document representation structured as objects that APIs can read and modify.JSON objectA collection of name–value pairs in JSON, written inside curly braces.ArrayAn ordered sequence of JSON values, written inside square brackets.StringA sequence of characters representing text; JSON encloses it in double quotes.CompressionA way to represent data using less space.TransparencyAn image’s ability to let the background show through fully or partially.Raster imageAn image made from a pixel grid with defined dimensions.Alternative textText conveying an image’s function or meaning when the image cannot be seen.HTML elementA unit of markup that gives content structure or meaning.HTML tagA marker in angle brackets that opens or closes an element.HTML attributeAdditional information on an element’s opening tag.HeadThe part of an HTML document that holds page metadata.TitleThe name of an HTML document, usually displayed in browser tabs and bookmarks.MetaAn element for metadata not covered by other metadata elements.Character encodingRules connecting text characters with byte representations.ViewportThe area in which a browser displays a page on a device.Void elementAn HTML element with no child content or closing tag.Character referenceA way to write a character through a named or numeric reference in HTML.HeadingThe h1 through h6 elements, which identify heading levels in document content.Semantic HTMLUsing HTML elements according to their content’s meaning and function.AccessibilityThe practice of making content and interactions usable by people with varied abilities.HTML listA structure for grouping items, with or without meaningful order.Relative pathA resource address resolved from the document’s location or base URL.Figure & figcaptionElements that group self-contained content with a visible caption.LandmarkA major page region that helps users recognize and navigate its structure.HTML tableA row and column structure presenting data with two-dimensional relationships.HTML formA group of controls that lets users enter or select data.Form labelA name explaining a form control and connected to it programmatically.HTML validationChecking markup conformance or, for forms, compliance with declared field rules.