Content deleted Content added
m Reverted 1 edit by 68.212.167.99 (talk) to last revision by Zeuge der Unity |
No edit summary |
||
(31 intermediate revisions by 25 users not shown) | |||
Line 1:
{{Short description|Software for editing HTML}}{{Use dmy dates|date=December 2021}}{{Multiple issues|
{{Original research|date=April 2024}}
{{More footnotes needed|date=April 2024}}
{{more citations needed|date=August 2019}}
}}{{HTML}}
▲A '''HTML editor''' is a [[Computer program|program]] used for editing [[HTML]], the [[Markup language|markup]] of a [[web page]]. Although the HTML markup in a web page can be controlled with any [[text editor]], specialized HTML editors can offer convenience, added functionality, and organisation. For example, many HTML editors handle not only HTML, but also related technologies such as [[Cascading Style Sheets|CSS]], [[XML]] and [[JavaScript]] or [[ECMAScript]]. In some cases they also manage communication with remote web servers via [[File Transfer Protocol|FTP]] and [[WebDAV]], and [[version control systems]] such as [[Subversion (software)|Subversion]] or [[Git (software)|Git]]. Many [[word processing]], [[graphic design]] and [[page layout]] programs that are not dedicated to [[web design]], such as [[Microsoft Word]] or [[Quark XPress]], also have the ability to function as HTML editors.
==Types of editors==▼
[[Text editors]] intended for use with HTML usually provide at least [[syntax highlighting]]. Some editors additionally feature [[template (file format)|templates]], [[toolbar]]s and [[keyboard shortcut]]s to quickly insert common [[HTML element]]s and structures. [[Wizard (software)|Wizards]], [[tooltip]] prompts and [[Autocomplete|autocompletion]] may help with common tasks.▼
Text editors commonly used for HTML typically include either built-in functions or integration with external tools for such tasks as [[version control]], link-checking and [[Validator|validation]], [[HTML Tidy|code cleanup and formatting]], spell-checking, uploading by FTP or WebDAV, and structuring as a project. Some functions, such as link checking or validation may use [[web app|online tools]], requiring a network connection.▼
▲[[Text editors]] intended for use with HTML usually provide at least [[syntax highlighting]]. Some editors additionally feature [[template (file format)|templates]], [[toolbar]]s , and [[keyboard shortcut]]s to quickly insert common [[HTML element]]s and structures. [[Wizard (software)|Wizards]], [[tooltip]] prompts, and [[Autocomplete|autocompletion]] may help with common tasks.
▲Text editors commonly used for HTML typically include either built-in functions or integration with external tools for such tasks as [[version control]], link-checking and [[Validator|validation]], [[HTML Tidy|code cleanup and formatting]], spell-checking, uploading by FTP or WebDAV, and structuring as a project. Some functions, such as link checking or validation, may use [[web app|online tools]], requiring a network connection.
Text editors require user understanding of HTML and any other web technologies the designer wishes to use like CSS, JavaScript and [[server-side scripting]] languages.▼
▲Text editors require user understanding of HTML and any other web technologies the designer wishes to use, like CSS, JavaScript and [[server-side scripting]] languages.
To ease this requirement, some editors allow editing of the markup in more [[graphic organizer|visually organized]] modes than simple color highlighting, but in modes not considered WYSIWYG. These editors typically include the option of using [[palette window]]s or [[dialog box]]es to edit the text-based parameters of selected [[Object (computer science)|objects]]. These palettes allow editing parameters in individual fields, or inserting new tags by filling out an onscreen form, and may include additional [[widget (computing)|widgets]] to present and select options when editing parameters (such as previewing an image or text styles) or an outline editor to expand and collapse HTML objects and properties.
==
{{unreferenced section|date=September 2016}}
[[Image:W3c amaya 10 fullmode enwiki xfce4therapy.png|thumb|250px|[[Amaya (web browser)|Amaya]] 10 HTML editor]]
WYSIWYG HTML editors provide an editing interface
The WYSIWYG view is achieved by embedding a [[Browser engine|layout engine]]. This may be custom-written or based
[[WYSIWYM]] (what you see is what you ''mean'') is an alternative paradigm to WYSIWYG editors. Instead of focusing on the format or presentation of the document, it preserves the intended meaning of each element. For example, page headers, sections, paragraphs, etc., are labeled as such in the editing program
===
A given HTML document will have an inconsistent appearance on various [[Computing platform|platforms]] and computers for several reasons:
;Different browsers and applications will render the same markup differently.
:The same page may display slightly differently,
;Web browsers, like all computer software, have [[computer bug|bugs]].
:They may not conform to current [[Web standards|standards]]. It is hopeless to try to design Web pages around all of the common browsers' current bugs: each time a new version of each browser comes out, a significant proportion of the [[World Wide Web]] would need re-coding to suit the new bugs and the new fixes. It is generally considered much wiser to design to standards, staying away from 'bleeding edge' features until they settle down, and then wait for the browser developers to catch up to your pages, rather than the other way round.<ref>{{cite web|url=http://www.w3.org/People/Bos/DesignGuide/designguide.html |title=An essay on W3C's design principles |publisher=
;A single visual style can represent multiple semantic meanings
:Semantic meaning, derived from the underlying structure of the HTML document, is important for search engines and also for various accessibility tools. On paper, we can tell from context and experience whether bold text represents a title,
;Modern
:Modern
==Valid HTML markup==
HTML is a structured [[markup language]]. There are certain rules on how HTML must be written if it is to conform to [[W3C]] standards for the World Wide Web. Following these rules means that web sites are accessible on all types and makes of computer, to able-bodied and people with disabilities, and also on [[wireless]] devices like mobile phones and PDAs, with their limited bandwidths and screen sizes. However, most HTML documents on the web do not meet the requirements of W3C standards. In a study conducted in 2011 on the 350 most popular web sites (selected by the Alexa index), 94 percent of websites fail the web standards markup and style sheet validation tests, or apply character encoding improperly. Even those syntactically correct documents may be inefficient due to an unnecessary use of repetition, or based upon rules that have been [[Deprecation|deprecated]] for some years.
Current W3C recommendations on the use of CSS with HTML were first formalised by W3C in 1996<ref>{{cite web|url=http://www.w3.org/TR/CSS1 |title=Cascading Style Sheets, level 1 |publisher=
These guidelines emphasise the separation of content (HTML or XHTML) from style (CSS). This has the benefit of delivering the style information once for a whole site, not repeated in each page, let alone in each HTML element. WYSIWYG editor designers have been struggling ever since with how best to present these concepts to their users without confusing them by exposing the underlying reality. Modern WYSIWYG editors all succeed in this to some extent, but none of them has succeeded entirely.
Line 54:
}}</ref> It should not be considered ready for the World Wide Web, until its HTML and CSS syntax have been successfully [[Validator|validated]] using either the free W3C validator services ([http://validator.w3.org/ W3C HTML Validator] and [http://jigsaw.w3.org/css-validator/ W3C CSS Validator]) or some other trustworthy alternatives.<ref name="RefactoringHtml"/>
[[Accessibility]] of web pages by those with physical, eyesight or other disabilities is not only a good idea considering the ubiquity and importance of the web in modern society, but is also mandated by law. In the U.S., the [[Americans with Disabilities Act]] and in the UK, the [[Disability Discrimination Act]] place requirement on web sites operated by publicly funded organizations. In many other countries similar laws either already exist or soon will.<ref name="RefactoringHtml"/> [[Web Content Accessibility Guidelines|Making pages accessible]] is more complex than just making them valid; that is a prerequisite but there are many other factors to be considered.<ref>{{cite web|url=http://www.w3.org/TR/WCAG20/|title=Web Content Accessibility Guidelines (WCAG) 2.0|publisher=
Whatever software tools are used to design, create and maintain web pages, the quality of the underlying HTML is dependent on the skill of the person who works on the page. Some knowledge of HTML, CSS and other scripting languages as well as a familiarity with the current W3C recommendations in these areas will help any designer produce better web pages, with a WYSIWYG [https://jsfeed.io/ HTML editor] and without.<ref>{{cite web|url=http://www.w3.org/MarkUp/Guide/ |title=Dave Raggett's Introduction to HTML |publisher=
==See also==
Line 70:
{{HTML editors}}
{{Authority control}}
{{DEFAULTSORT:Html Editor}}
|