Web platform features explorer

📃 June 2003 release notes

New in Safari

The following features are now available in Safari:

  • <a>: The <a> element creates a hyperlink to any resource that's accessible via a URL, such as web pages, files, email addresses, or locations within the same page.
  • Absolute positioning: The position: absolute CSS declaration removes an element from the normal flow and positions it relative to its containing block, which is often the root element, or closest positioned ancestor.
  • <address>: The <address> element represents contact information for a person or people, or for an organization.
  • Alerts: The window.alert(), window.confirm(), and window.prompt() methods open modal dialogs for notifying the user, asking for confirmation, or entering text.
  • Array (initial support): Arrays are ordered lists of JavaScript values.
  • Array splice(): The array splice() method changes an array in-place. You can use it to delete items, overwrite items, or insert items, starting from an index.
  • <b>: The <b> HTML element draws reader's attention to text, styling text as bold by default.
  • background-color: The background-color CSS property sets the fill color of an element, behind any content and background images or gradients.
  • Borders: The border CSS property sets the color, style, and width of the line around an element.
  • <button>: The <button> HTML element represents a button that triggers some action, such as submitting a form or opening a dialog, styled as a labeled rectangular box by default.
  • Color: The color CSS property sets the primary foreground color of an element, which is used for text, the default border color, and text decorations.
  • Content: The content CSS property sets the content inside of an element or pseudo-element, replacing the current value. It's often used with the ::before and ::after pseudo-elements to generate cosmetic content.
  • Cookies: The Set-Cookie HTTP header stores limited amounts of data that persist across request and response, creating shared state between the browser and server.
  • Date: The Date object represents a single moment in time.
  • Display: The display CSS property sets the display behavior of an element's box within its layout and sets the layout behavior for its child elements.
  • display: list-item: The display: list-item CSS declaration renders an element with the box layout of a <li> HTML element.
  • <div>: The <div> HTML element is the generic container for content.
  • DOM: The DOM (Document Object Model) API represents HTML and XML documents as trees of nodes. You can use the API to inspect and modify the structure and content of a document.
  • em unit: The em CSS length unit is a font-relative length equal to the specified font size. In an element with a 2 inch font, 1em equals 2 inches.
  • Events: The Event API and the addEventListener() method on objects that receive events (event targets) represent and handle significant things happening on a page. Many APIs fire events for a wide range of situations relating to those APIs, such as an image loading, a user clicking, or a value changing.
  • ex unit: The ex CSS length unit is a font-relative length equal to the used x-height of the first available font. X-height is often equal to the height of the lowercase x.
  • ::first-letter: The ::first-letter CSS pseudo-element selects the first letter in an element for styling.
  • ::first-line: The ::first-line CSS pseudo-element selects the first line of text in an element for styling.
  • Fixed positioning: The position: fixed CSS declaration removes an element from the normal flow and positions it relative to the viewport or page.
  • float and clear: The float CSS property aligns an element to either side of its container, allowing text and inline elements to flow around it. The clear CSS property sets whether an element is moved below floating elements that proceed it.
  • font-family: The font-family CSS property sets the desired font face for text, along with optional fallback font faces.
  • Font shorthand: The font CSS property shorthand sets multiple font properties, including style, weight, size, and font family.
  • font-size: The font-size CSS property sets the text height.
  • font-style: The font-style CSS property sets the text style, with normal, italic, and oblique options.
  • font-variant: The font-variant CSS property is a shorthand for font-variant-alternates, font-variant-caps, font-variant-east-asian, font-variant-emoji, font-variant-ligatures, font-variant-numeric, and font-variant-position.
  • font-weight: The font-weight CSS property controls the thickness of a font. It is set explicitly with the keyword bold or a number, or relative to the inherited thickness with the keywords bolder or lighter.
  • Functions: Functions are series of statements that can be called and return a value. The function keyword (as in function () { }) and arrow (=>) expression create functions. The JavaScript functions protocol includes default and rest parameters and binding to this.
  • <head>: The <head> element contains machine-readable information (metadata) about the document, such as the title, <script> and <style> elements, and <meta> elements.
  • <html>: The <html> element represents the top-level of an HTML document and is referred to as the root element.
  • HTTP authentication: The Authorization and WWW-Authenticate headers authenticate a user with a server.
  • HTTP/1.1: HTTP/1.1 is a network protocol used by browsers and servers. It has been superseded by HTTP/2 and HTTP/3.
  • <i>: The <i> HTML element identifies idiomatic content, styling text as italic by default.
  • Image maps: The <area> and <map> elements define a clickable area on an image.
  • <img>: The <img> element adds an image into the document.
  • @import: The @import CSS at-rule loads styles from another stylesheet.
  • inherit: The inherit keyword resets any CSS property to the computed value of that property from the parent element.
  • <input>: The <input type="text"> HTML element allows the user to enter information into a form. By default, an <input> element is a text input.
  • <input type="button">: The <input type="button"> HTML element represents a button that triggers some action, such as submitting a form or opening a dialog, styled as a labeled rectangular box by default. Not to be confused with the <button> element, which contains HTML content.
  • <input type="hidden">: The <input type="hidden"> HTML element represents a form field that is not shown visually but is still included in the form submission.
  • <input type="image">: The <input type="image"> HTML element is an image that can be used to submit a form, like the <input type="submit"> element.
  • <input type="password">: The <input type="password"> HTML element represents a field for users to enter a password. The password is hidden from view, typically replaced by dots or asterisks.
  • <input type="radio">: The <input type="radio"> HTML element represents one button in a group such that only one can be chosen at a time.
  • <input type="reset">: The <input type="reset"> HTML element represents a button that sets all form fields to their initial values.
  • <input type="submit">: The <input type="submit"> HTML element represents a button that triggers an action on its associated <form>, such as sending the form data to a server.
  • Language: The navigator.language read-only property returns a string representing the preferred language of the user, usually the language of the browser UI. The navigator.languages read-only property returns an array of strings representing the user's preferred languages.
  • letter-spacing: The letter-spacing CSS property controls the amount of space between each letter in an element or block of text.
  • line-height: The line-height CSS property sets the spacing between text baselines, oriented to the horizontal or vertical writing mode.
  • List style: The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
  • Location: The location global object represents the current page's address. You can use it to get the parts of the address (such as location.hostname or location.pathname) or navigate to another URL.
  • margin: The margin CSS property sets space around an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.
  • <meta>: The <meta> element represents metadata about the page used by the browser or search engines, including description, keywords, and character sets.
  • Mouse events: Mouse events, such as click, mousedown, or mousemove, fire when users interact with an input or pointing device such as a mouse, trackpad, or touchscreen.
  • Named colors: Some CSS color values can be referenced by name, such as red or limegreen. They stand in for specific RGB color values.
  • @namespace: The @namespace CSS rule sets a default namespace or namespace prefix. Namespace prefixes allow CSS selectors to distinguish elements with the same name but different document types, such as the HTML <a> element and the SVG <a> element.
  • Navigator: The window.navigator API is a generic global object, under which many other, more interesting APIs are located. It doesn't do anything interesting on its own.
  • Math and numbers: The number type (and Number object) represents floating-point numbers, such as 42 or -4.201, while the Math API contains mathematical functions and constants. JavaScript can also represent boundless negative and positive values as Infinity or not-a-number as NaN (as in 0 * Infinity).
  • Object: Objects in JavaScript are collections of key-value pairs.
  • padding: The padding CSS property sets space between an element's edge and its contents. It is a shorthand for padding-top, padding-right, padding-bottom, and padding-left.
  • Physical properties: The physical CSS properties, top, right, bottom, and left, set the inset position of an element relative to the corresponding side of a container determined by the element's position property.
  • Position: The position CSS property sets the origin position of an element to an element, the element's scrollport, or the viewport.
  • Regular expressions: The RegExp object represents a regular expression, a notation for matching text patterns.
  • Relative positioning: The position: relative CSS declaration offsets the position of an element relative to its position in the normal flow.
  • :root: The :root pseudo-class matches the root element of the document, usually the <html> element.
  • Screen: The window.screen property contains information about the screen of the output device that the referenced window is being rendered on.
  • <select>: The <select> element provides a menu of options for a user to pick from, typically rendered as a dropdown list.
  • setInterval: The setInterval() global function repeatedly executes provided code on a given delay, and the accompanying clearInterval() cancels the interval.
  • <span>: The <span> HTML element is the generic inline container for content.
  • Static positioning: The position: static CSS declaration positions an element in the normal flow. A statically positioned element ignores physical and logical properties such as top or inset-block-start.
  • String (initial support): The string type (and String object) represents a sequence of characters.
  • <style>: The <style> element embeds an inline CSS stylesheet in a document.
  • style (attribute): The style global HTML attribute applies inline CSS styling declarations to individual elements.
  • System colors: The system color CSS keywords, such as ButtonBorder or LinkText, allow you to match default colors from the user agent.
  • Tables: The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
  • text-align: The text-align CSS property sets the horizontal placement of the inner content of a block element.
  • text-decoration: The text-decoration CSS property sets the style and color of decorative lines including underline, overline, line-through, or a combination of lines.
  • text-indent: The text-indent CSS property sets the size of the empty space (indentation) at the beginning of lines in a text.
  • text-transform: The text-transform CSS property sets text case and capitalization.
  • <title>: The <title> element sets the title of the document and exposes it to users via the UI of the browser or app they're using and through assistive technology.
  • <u>: The <u> HTML element makes non-textual annotations, styling text as underlined by default.
  • vertical-align: The vertical-align CSS property sets the vertical alignment of inline, inline-block, and table cell elements. It has no effect on block-level elements.
  • white-space: The white-space CSS property sets how white space is collapsed and how lines wrap. It is a shorthand for white-space-collapse and text-wrap-mode.
  • Width and height: The width and height CSS properties set the preferred physical size of an element.
  • Window: The window global object represents a browser tab or iframe and its relationship to the document and other tabs. It's also a generic global object, under which many other APIs are located.
  • word-spacing: The word-spacing CSS property sets the amount of white space between words.
  • z-index: The z-index CSS property orders overlapping elements, with higher values appearing in front of or on top of lower values.