ArticleslgStudy

computer science

KHTML

KHTML is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand KHTML rather than just read about it. In short: KHTML is a discontinued browser engine that was developed by the KDE project. It originated as the engine of the Konqueror browser in the late 1990s.

KHTML — main illustration
KHTML — illustration

Key takeaways

  • KHTML belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect KHTML to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of KHTML from memory before moving on to harder problems.

Reference excerpt

KHTML is a discontinued browser engine that was developed by the KDE project. It originated as the engine of the Konqueror browser in the late 1990s. Its development has been ceased in 2016 and it was officially discontinued in 2023. Built on the KParts framework and written in C++, KHTML had relatively good support for Web standards during its prime. Engines that are forked from KHTML are used by most of the browsers that are widely used today, including WebKit (Safari) and Blink (Google Chrome, Chromium, Microsoft Edge, Opera, Vivaldi and Brave).

History

Origins KHTML was preceded by an earlier engine called khtmlw or the KDE HTML Widget, developed by Torben Weis and Martin Jones, which implemented support for HTML 3.2, HTTP 1.0, and HTML frames, but not the DOM, CSS, or JavaScript. KHTML itself came into existence on November 4, 1998, as a fork of the khtmlw library, with some slight refactoring and the addition of Unicode support and changes to support the move to Qt 2. Waldo Bastian was among those who did the work of creating that early version of KHTML.

Re-write and improvement The real work on KHTML actually started between May and October 1999, with the realization that the choice facing the project was "either do a significant effort to move KHTML forward or to use Mozilla" and with adding support for JavaScript as the highest priority. So in May 1999, Lars Knoll began doing research with an eye toward implementing the DOM specification, finally announcing on August 16, 1999 that he had checked in what amounted to a complete rewrite of the KHTML library—changing KHTML to use the standard DOM as its internal document representation. That in turn allowed the beginnings of JavaScript support to be added in October 1999, followed shortly afterwards with the integration of KJS by Harri Porten. In the closing months of 1999 and first few months of 2000, Knoll did further work with Antti Koivisto and Dirk Mueller to add CSS support and to refine and stabilize the KHTML architecture, with most of that work being completed by March 2000. Among other things, those changes enabled KHTML to become the second browser after Internet Explorer to correctly support Hebrew and Arabic and languages written right-to-left—before Mozilla had such support. KDE 2.0 was the first KDE release (on October 23, 2000) to include KHTML (as the rendering engine of the new Konqueror file and web browser, which replaced the monolithic KDE File Manager).

Other modules KSVG was first developed in 2001 by Nikolas Zimmermann and Rob Buis. However, by 2003, it was decided to fork the then-current KSVG implementation into two new projects: KDOM/KSVG2 (to improve the state of DOM rendering in KHTML underneath a more formidable SVG 1.0 render state) and Kcanvas (to abstract any rendering done within KHTML/KSVG2 in a single shared library, with multiple backends for it, e.g., Cairo/Qt, etc.). KSVG2 is also a part of WebKit.

Sunsetting KHTML was scheduled to be removed in KDE Frameworks 6. Active development ended in 2016, just the necessary maintenance to work with updates to Frameworks 5. It was officially discontinued in 2023.

Standards compliance The following standards are supported by the KHTML engine:

Descendants

KHTML and KJS were adopted by Apple in 2002 for use in the Safari web browser. Apple publishes the source code for their fork of the KHTML engine, called WebKit. In 2013, Google began development on a fork of WebKit, called Blink, which is now widely used in the most popular browsers such as Google Chrome, Microsoft Edge, Opera, Vivaldi, Brave and more.

See also

List of web browsers § KHTML-based Comparison of browser engines

References

External links Web Browser – the Konqueror website KHTML – KDE's HTML library – description at developer.kde.org KHTML at the KDE git repository From KDE to WebKit: The Open Source Engine That's Here to Stay – presentation at Yahoo! office by Lars Knoll and George Staikos on December 8, 2006 (video)

Illustrations

KHTML illustration

Worked examples

Example 1 — a first encounter with KHTML

Start with the simplest possible case. Write down what KHTML claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to KHTML before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about KHTML ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of KHTML

In research
KHTML appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses KHTML in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
KHTML is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1999 software, Free layout engines, Free software programmed in C++, so understanding it makes those chapters shorter.
In everyday life
Look for KHTML outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “KHTML” →

How to study KHTML in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what KHTML means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain KHTML out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is KHTML in simple terms?

KHTML is a discontinued browser engine that was developed by the KDE project. It originated as the engine of the Konqueror browser in the late 1990s.

Why does KHTML matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study KHTML?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on KHTML.

Tags

  • 1999 software
  • Free layout engines
  • Free software programmed in C++
  • KDE Frameworks
  • KDE Platform

Keep exploring