[{"data":1,"prerenderedAt":226,"buildId":227},["ShallowReactive",2],{"page-\u002Flearn\u002Fwhat-is-html":3},{"id":4,"title":5,"body":6,"description":208,"extension":209,"how_to_steps":210,"hub":183,"meta":211,"navigation":212,"path":213,"primary_keyword":214,"published_at":215,"schema_types":216,"seo":220,"status":221,"stem":222,"updated_at":223,"wave":224,"__hash__":225},"pages\u002Flearn\u002Fwhat-is-html.md","What Is HTML? A Plain-English Guide (2026)",{"type":7,"value":8,"toc":197},"minimark",[9,14,18,22,25,28,31,34,38,54,64,86,116,127,142,148,152,155,169,173,186,189,194],[10,11,13],"h2",{"id":12},"the-one-paragraph-answer","The one-paragraph answer",[15,16,17],"p",{},"What is HTML?\nHTML stands for HyperText Markup Language.\nIt is the set of tags you use to give a web page its structure and meaning.\nYou mark some text as a heading, other text as a paragraph, and a phrase as a link.\nA browser reads those marks and builds a page people can view and use.\nHypertext is text that can link to other pages or to a spot in the same page.\nYou can write a whole page in one HTML file and open it in a browser, with no server.",[10,19,21],{"id":20},"what-html-is-not","What HTML is not",[15,23,24],{},"HTML is a markup language.\nIt tells the browser that \"Saturday repair cafe\" is a heading and that \"See what we fix\" is a link.\nIt does not need a loop or a set of instructions for drawing those words on the screen.\nThe browser already knows how to show a heading and follow a link.\nYou can make a useful page that way, even before you learn to style it or write a program.",[15,26,27],{},"CSS, short for Cascading Style Sheets, is the language for how the page looks.\nIt can change the size of the heading, set the space around a paragraph, or move a sidebar under the main text on a phone.\nYou could make any text look large and bold with CSS, but that would not turn it into a heading that a screen reader can list.\nUse the HTML heading first, then choose how it looks.",[15,29,30],{},"JavaScript is a programming language that can add behavior to a page.\nAt the repair cafe, it could show how many booking slots remain after someone picks a date.\nA plain link to a page with opening hours does not need that extra step.\nA browser can follow it even where a script fails to load.\nSave scripts for jobs that need them, and use the browser's built-in behavior when it does what you want.",[15,32,33],{},"HTML also differs from the tool that makes the page.\nA site builder may store your words in a database and turn them into HTML when a visitor opens the page.\nA text editor may save the HTML as you wrote it.\nEither way, the browser needs to know which words are headings, what address a link points to, and what a form field is called.\nYou can inspect the page the browser received even if you do not have access to the tool that made it.",[10,35,37],{"id":36},"a-document-you-can-read-today","A document you can read today",[15,39,40,41,45,46,49,50,53],{},"Paste this page into a plain text editor, save it as ",[42,43,44],"code",{},"cafe.html",", and open the file in a browser.\nIf you see the tags on screen instead of a page, check that your editor saved a plain text file with an ",[42,47,48],{},".html"," ending, not ",[42,51,52],{},"cafe.html.txt",".\nThe sample uses a link to a heading in the same file, so you do not need a second file or an internet connection to try it.",[55,56,62],"pre",{"className":57,"code":59,"language":60,"meta":61},[58],"language-html","\u003C!doctype html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"utf-8\">\n  \u003Cmeta name=\"viewport\"\n        content=\"width=device-width, initial-scale=1\">\n  \u003Ctitle>Repair cafe\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cmain>\n    \u003Ch1>Saturday repair cafe\u003C\u002Fh1>\n    \u003Cp>Bring a broken lamp or a bike.\u003C\u002Fp>\n    \u003Cp>\u003Ca href=\"#hours\">See opening hours\u003C\u002Fa>\u003C\u002Fp>\n    \u003Ch2 id=\"hours\">Opening hours\u003C\u002Fh2>\n    \u003Cp>Saturday, 10 a.m. to noon.\u003C\u002Fp>\n  \u003C\u002Fmain>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[42,63,59],{"__ignoreMap":61},[15,65,66,67,69,70,73,74,77,78,81,82,85],{},"The first line asks the browser to use its modern rendering rules.\nThe ",[42,68,60],{}," element wraps the page, and ",[42,71,72],{},"lang=\"en\""," tells tools the text is in English.\nThe ",[42,75,76],{},"head"," holds information about the file, such as the title shown in the browser tab and the setting that lets the page fit a phone screen.\nThe ",[42,79,80],{},"body"," holds the visible content.\nThe ",[42,83,84],{},"main"," element marks the part that someone came to read, separate from any site-wide menu or footer you might add later.",[15,87,88,89,92,93,96,97,100,101,104,105,108,109,111,112,115],{},"A pair like ",[42,90,91],{},"\u003Cp>"," and ",[42,94,95],{},"\u003C\u002Fp>"," marks the start and end of an element, here a paragraph.\nThe slash marks the closing tag, while an attribute adds a setting to the opening tag.\nThe ",[42,98,99],{},"href"," attribute on the link points to ",[42,102,103],{},"#hours",", so the browser looks for the element with ",[42,106,107],{},"id=\"hours\"",".\nOn a short page the heading may already be in view, but you can still see the address end in ",[42,110,103],{}," after you follow the link.\nInside a page, give each ",[42,113,114],{},"id"," to just one element.",[15,117,118,119,122,123,126],{},"Change the ",[42,120,121],{},"h1"," to \"Sunday repair cafe\" and reload the file to see the heading change while the tab still says \"Repair cafe.\"\nNow change only the ",[42,124,125],{},"title"," and look at the tab again to see why the title and heading live in separate places.\nTry Tab and Enter to follow the hours link, and check that its words still tell you what will happen before you use it.",[15,128,129,130,133,134,137,138,141],{},"Next, put a list of items you can bring after the first paragraph.\nUse ",[42,131,132],{},"ul"," when the order does not matter, or ",[42,135,136],{},"ol"," for steps the reader needs to follow in order.\nPut each item inside its own ",[42,139,140],{},"li"," so the browser can tell a screen reader which items belong to the list.",[15,143,144,145,147],{},"To inspect the document after the browser has read it, open the developer tools and find the Elements panel.\nIt shows the page as a tree, with each element nested inside its parent.\nFind the link and you will see it inside a paragraph, which is inside ",[42,146,84],{},".\nThe tree can differ from the file you saved because a browser tries to recover from some markup mistakes.\nFor instance, if you forget to close a paragraph before a heading, the browser can end the paragraph there for you.\nUse the tree to find out what the browser built, then correct the source file so the structure says what you meant.",[10,149,151],{"id":150},"why-html-survived-every-trend","Why HTML survived every trend",[15,153,154],{},"Browsers keep handling old pages while adding new features to HTML.\nA library can move its site to a new publishing tool and still send readers a heading and a link that work much as they did before.\nHTML outlasts tools because the tool can change how it creates a page without asking the reader to change how they open one.\nThis is also why a short example like the repair cafe can run straight from a file on your computer.",[15,156,157,158,163,164,168],{},"There have always been arguments about what belongs in a document and what belongs in the way it is shown.\nNotes on the draft stylesheet ",[159,160,162],"a",{"href":161},"\u002Fwiki\u002Findex.php\u002FDraftStyleSheetIssues","from the 2007-2009 archive"," ask whether labels such as \"Big Issue\" should be in the document text or added by CSS.\nRead ",[159,165,167],{"href":166},"\u002Fpipermail\u002Flist_html4all.org\u002F2008-May\u002F000866.html","the original mailing list discussion"," for a different example: how markup could make the link between a quote and its source clear.\nThese are proposals and tests from that time, not rules for how to code today.\nThey show why giving the browser meaning still matters when more than one tool needs to read the page.",[10,170,172],{"id":171},"where-to-go-next","Where to go next",[15,174,175,176,180,181,185],{},"Pick one page you can finish in an evening, such as the opening hours for a club or the rules for a game.\nWrite the words first, give the page a title and a heading, then link to the next thing a visitor might need.\nOpen the file on a phone or make the browser window narrow.\nIf you add a photo, decide what someone who cannot see it needs to know.\nRead about ",[159,177,179],{"href":178},"\u002Flearn\u002Ffrom-html4-to-html5","the road from HTML4"," to see why a browser can still open decades-old pages.\nUse the ",[159,182,184],{"href":183},"\u002Flearn","Learn HTML hub"," to choose a guide for the part you want to try next.",[15,187,188],{},"Give the page to someone who has not seen it yet, ask them to find one piece of information, and notice what they read as a link.\nIf they miss an important heading, try a more specific name before you reach for a larger font.\nIf you include an address or a date, read it aloud with the words around it to check that it makes sense in context.\nEach fix gives you a concrete reason to revisit the markup.",[190,191,193],"h3",{"id":192},"do-i-still-need-to-read-html-if-ai-writes-the-first-draft","Do I still need to read HTML if AI writes the first draft?",[15,195,196],{},"Yes, if you want to check what the page does and fix it when something goes wrong.\nAsk the tool for a small page and find the parts you now recognize.\nMake one change yourself and check the result in the browser before you move on.",{"title":61,"searchDepth":198,"depth":198,"links":199},2,[200,201,202,203,204],{"id":12,"depth":198,"text":13},{"id":20,"depth":198,"text":21},{"id":36,"depth":198,"text":37},{"id":150,"depth":198,"text":151},{"id":171,"depth":198,"text":172,"children":205},[206],{"id":192,"depth":207,"text":193},3,"What HTML actually is, what it does, and why it still matters in the AI era. No jargon, real examples, and where to go next.","md",null,{},true,"\u002Flearn\u002Fwhat-is-html","what is html","2026-12-01T04:29:57Z",[217,218,219],"Article","BreadcrumbList","FAQPage",{"title":5,"description":208},"draft","learn\u002Fwhat-is-html","2026-12-01T05:35:41Z","0","vv-rvNRsAtclZipLdSPQ4q1-bQ3M__xxXQsw4OiK7-4",1796185435704,"a1d53563-3a78-4678-8315-e5bd6a5bd80c"]