Difference between revisions of "HTML: HyperText Markup Language"

From Parallel Library Services
Jump to navigation Jump to search
Line 13: Line 13:
An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<" and ">".  The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <title> tag can be written as <Title>, <TITLE>, or in any other way.
An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<" and ">".  The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <title> tag can be written as <Title>, <TITLE>, or in any other way.


[[File:DOM tree.svg|Document Object Model (DOM) tree]]
[[File:DOM tree.svg|thumb|Document Object Model (DOM) tree]]


HTML also has a [[DOM: Document Object Model|Document Object Model]], which is an interface that treats an HTML document as a tree structure, with each node defined as an object. DOM methods (e.g. with JavaScript) use access to the objects in this tree to change their structure, style or content. Objects have event handlers, which execute after an event (such as a mouse click) happens.
HTML also has a [[DOM: Document Object Model|Document Object Model]], which is an interface that treats an HTML document as a tree structure, with each node defined as an object. DOM methods (e.g. with JavaScript) use access to the objects in this tree to change their structure, style or content. Objects have event handlers, which execute after an event (such as a mouse click) happens.


[[Category: Glossary]]
[[Category: Glossary]]

Revision as of 23:17, 24 November 2021

https://developer.mozilla.org/en-US/docs/Web/HTML

The HyperText Markup Language, or HTML, is the building block of the Web. It uses "markup" to annotate text, images, and other content for display and is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.

HTML markup includes special "elements" such as

<head>, <title>, <body>, <header>, <footer>, <article>, <section>, <p>, <div>, <span>, <img>, <aside>, <audio>, <canvas>, <datalist>, <details>, <embed>, <nav>, <output>, <progress>, <video>, <ul>, <ol>, <li> 

and many others.

An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<" and ">". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <title> tag can be written as <Title>, <TITLE>, or in any other way.

Document Object Model (DOM) tree

HTML also has a Document Object Model, which is an interface that treats an HTML document as a tree structure, with each node defined as an object. DOM methods (e.g. with JavaScript) use access to the objects in this tree to change their structure, style or content. Objects have event handlers, which execute after an event (such as a mouse click) happens.