- HTML Tag
- Definition and Usage
- Browser Support
- Attributes
- Global Attributes and Events
- Event Attributes
- Related Pages
- Default CSS Settings
- COLOR PICKER
- Report Error
- Thank You For Helping Us!
- HTML Атрибут default
- Применение
- Пример
- Пример
- Поддержка браузеров
- HTML Атрибут default
- ВЫБОР ЦВЕТА
- Сообщить об ошибке
- Ваше предложение:
- Спасибо Вам за то, что помогаете!
- CSS Default Values Reference
- tag in HTML
- Syntax
- Use of the tag
- Browser support
- Attributes
- CSS default properties
HTML Tag
Specify a default URL and a default target for all links on a page:
Definition and Usage
The tag specifies the base URL and/or target for all relative URLs in a document.
The tag must have either an href or a target attribute present, or both.
There can only be one single element in a document, and it must be inside the element.
Browser Support
Attributes
Attribute | Value | Description |
---|---|---|
href | URL | Specifies the base URL for all relative URLs in the page |
target | _blank _parent _self _top | Specifies the default target for all hyperlinks and forms in the page |
Global Attributes and Events
Event Attributes
The tag does not support any event attributes.
Related Pages
Default CSS Settings
COLOR PICKER
Report Error
If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
Thank You For Helping Us!
Your message has been sent to W3Schools.
Top Tutorials
Top References
Top Examples
Get Certified
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.
HTML Атрибут default
Атрибут default используется по умолчанию, логический атрибут.
Когда default присутствует, он указывает, что трек должен быть включен, если предпочтения пользователя не указывается, на другой трек.
Примечание: Должно быть не более одного атрибута default в элементе track , для каждого элемента media .
Применение
Атрибут default можно использовать для следующего элемента:
Пример
Пример
Видео с двумя дорожками субтитров. «Английский» субтитры по умолчанию:
Поддержка браузеров
Числа в таблице указывают первую версию браузера, которая полностью поддерживает атрибут.
Атрибут | |||||
---|---|---|---|---|---|
default | 18.0 | 10.0 | 31.0 | 6.0 | 15.0 |
HTML Атрибут default
Мы только что запустили
SchoolsW3 видео
ВЫБОР ЦВЕТА
Сообщить об ошибке
Если вы хотите сообщить об ошибке или внести предложение, не стесняйтесь отправлять на электронное письмо:
Ваше предложение:
Спасибо Вам за то, что помогаете!
Ваше сообщение было отправлено в SchoolsW3.
ТОП Учебники
ТОП Справочники
ТОП Примеры
Получить сертификат
SchoolsW3 оптимизирован для бесплатного обучения, проверки и подготовки знаний. Примеры в редакторе упрощают и улучшают чтение и базовое понимание. Учебники, ссылки, примеры постоянно пересматриваются, чтобы избежать ошибок, но не возможно гарантировать полную правильность всего содержания. Некоторые страницы сайта могут быть не переведены на РУССКИЙ язык, можно отправить страницу как ошибку, так же можете самостоятельно заняться переводом. Используя данный сайт, вы соглашаетесь прочитать и принять Условия к использованию, Cookies и политика конфиденциальности.
CSS Default Values Reference
The table below shows the default CSS browser values for all HTML elements.
Element | Default CSS Value | Try it |
---|---|---|
a:link | color: (internal value); text-decoration: underline; cursor: auto; | Try it » |
a:visited | color: (internal value); text-decoration: underline; cursor: auto; | Try it » |
a:link:active | color: (internal value); | Try it » |
a:visited:active | color: (internal value); | Try it » |
abbr | None. | |
address | display: block; font-style: italic; | Try it » |
area | display: none; | |
article | display: block; | |
aside | display: block; | |
audio | None. | |
b | font-weight: bold; | Try it » |
base | None. | |
bdi | None. | |
bdo | unicode-bidi: bidi-override; | |
blockquote | display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 40px; margin-right: 40px; | Try it » |
body | display: block; margin: 8px; | Try it » |
body:focus | outline: none; | Try it » |
br | None. | |
button | None | |
canvas | None. | |
caption | display: table-caption; text-align: center; | Try it » |
cite | font-style: italic; | Try it » |
code | font-family: monospace; | Try it » |
col | display: table-column; | Try it » |
colgroup | display: table-column-group | Try it » |
datalist | display: none; | |
dd | display: block; margin-left: 40px; | Try it » |
del | text-decoration: line-through; | Try it » |
details | display: block; | |
dfn | font-style: italic; | Try it » |
dialog | None. | |
div | display: block; | Try it » |
dl | display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; | Try it » |
dt | display: block; | Try it » |
em | font-style: italic; | Try it » |
embed:focus | outline: none; | |
fieldset | display: block; margin-left: 2px; margin-right: 2px; padding-top: 0.35em; padding-bottom: 0.625em; padding-left: 0.75em; padding-right: 0.75em; border: 2px groove (internal value); | Try it » |
figcaption | display: block; | |
figure | display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 40px; margin-right: 40px; | Try it » |
footer | display: block; | |
form | display: block; margin-top: 0em; | Try it » |
h1 | display: block; font-size: 2em; margin-top: 0.67em; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
h2 | display: block; font-size: 1.5em; margin-top: 0.83em; margin-bottom: 0.83em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
h3 | display: block; font-size: 1.17em; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
h4 | display: block; margin-top: 1.33em; margin-bottom: 1.33em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
h5 | display: block; font-size: .83em; margin-top: 1.67em; margin-bottom: 1.67em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
h6 | display: block; font-size: .67em; margin-top: 2.33em; margin-bottom: 2.33em; margin-left: 0; margin-right: 0; font-weight: bold; | Try it » |
head | display: none; | |
header | display: block; | |
hr | display: block; margin-top: 0.5em; margin-bottom: 0.5em; margin-left: auto; margin-right: auto; border-style: inset; border-width: 1px; | Try it » |
html | display: block; | |
html:focus | outline: none; | |
i | font-style: italic; | Try it » |
iframe:focus | outline: none; | |
iframe[seamless] | display: block; | |
img | display: inline-block; | Try it » |
input | None. | |
ins | text-decoration: underline; | Try it » |
kbd | font-family: monospace; | Try it » |
label | cursor: default; | Try it » |
legend | display: block; padding-left: 2px; padding-right: 2px; border: none; | Try it » |
li | display: list-item; | |
link | display: none; | |
main | None. | |
map | display: inline; | |
mark | background-color: yellow; color: black; | Try it » |
menu | display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; | |
menuitem | None. | |
meta | None. | |
meter | None. | |
nav | display: block; | |
noscript | None. | |
object:focus | outline: none; | |
ol | display: block; list-style-type: decimal; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; | Try it » |
optgroup | None. | |
option | None. | |
output | display: inline; | |
p | display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; | Try it » |
param | display: none; | |
picture | None. | |
pre | display: block; font-family: monospace; white-space: pre; margin: 1em 0; | Try it » |
progress | None. | |
q | display: inline; | Try it » |
q::before | content: open-quote; | Try it » |
q::after | content: close-quote; | Try it » |
rp | None. | |
rt | line-height: normal; | |
ruby | None. | |
s | text-decoration: line-through; | Try it » |
samp | font-family: monospace; | Try it » |
script | display: none; | |
section | display: block; | Try it » |
select | None. | |
small | font-size: smaller; | Try it » |
source | None. | |
span | None. | |
strike | text-decoration: line-through; | Try it » |
strong | font-weight: bold; | Try it » |
style | display: none; | |
sub | vertical-align: sub; font-size: smaller; | Try it » |
summary | display: block; | |
sup | vertical-align: super; font-size: smaller; | Try it » |
table | display: table; border-collapse: separate; border-spacing: 2px; border-color: gray; | Try it » |
tbody | display: table-row-group; vertical-align: middle; border-color: inherit; | |
td | display: table-cell; vertical-align: inherit; | |
template | None. | |
textarea | None. | |
tfoot | display: table-footer-group; vertical-align: middle; border-color: inherit; | |
th | display: table-cell; vertical-align: inherit; font-weight: bold; text-align: center; | |
thead | display: table-header-group; vertical-align: middle; border-color: inherit; | |
time | None. | |
title | display: none; | |
tr | display: table-row; vertical-align: inherit; border-color: inherit; | |
track | None. | |
u | text-decoration: underline; | Try it » |
ul | display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1 em; margin-left: 0; margin-right: 0; padding-left: 40px; | Try it » |
var | font-style: italic; | Try it » |
video | None. | |
wbr | None. |
tag in HTML
in HTML is the parent tag, that contains each and every element tags of the HTML document inside of it, except for the tag. It is also known as the root element. You can only use one pair of opening and closing tags.
- Categories: None.
- Contexts in which this element can be used: As the document’s document element.
Wherever a subdocument framework is allowed in a compound document. - Content model: A element followed by a element.
- Tag omission in text/html: The start tag can be omited, if the first thing inside the element is not a comment.
The end tag can be omited too, if the element is not immediately followed by a comment. - Content attributes: Global attributes.
manifest — Application cache manifest (Depreciated later) - Allowed ARIA role attribute values: None
- Allowed ARIA state and property attributes: None
- DOM Interface: interface HTMLHtmlElement:HTMLElement<>;
Note:
For more details, please refer the spec reference given below, in the Source heading.
Syntax
Note:
The contents inside of the tag can only be and tag.
is always outside of the container.
Use of the tag
Hello there!!
This is a sample paragraph!!
Browser support
Note:
Since this is an essential part of the HTML document, every browser will support the tag by default.
Attributes
Note:
tag also supports the global attributes.
- manifest * — Has the URI of the .appcache file, which has the list of files that should be cached locally, for offline use. It’s use has been discouraged, and instead, replaced with service workers.
- version * — Specifies about the version of the HTML, that is being used. Has been replaced with the tag.
Warning!:
Don’t use this tag, by any means! This attribute is very much outdated, and has only been added for the sake of understanding. It has been removed from almost every browser, from the version 4.01 specification. Use for specifying the version of the HTML document.
- xmlns — This attribute is used to define the namespace for the XML of the given document. This is a must for documents that parse with XML parsers, and is optional for text/html documents. The default value is http://www.w3.org/1999/xhtml. Do note that this is only if you want to conform to XHTML standards.
* these attributes are not supported/ to be removed by any major browsers.
Note:
Use of lang attribute is encouraged for identifying the language, and thus, this can help the screen readers to determine the proper language to speak in.
Failure to do so may result in mispronunciation.
This also makes sure that the metadata, like , or is announced properly.
CSS default properties
Note:
This can vary for different browsers. To check the exact default attributes, create an HTML file with just the and tags, and execute it in the preferred browser. Then, proceed to the developer tools(F12 is the universal shortcut for any desktop browser, but there are other shortcuts like Ctrl + Shift + I on Windows or Cmd + Opt + I on Mac), and check the properties of the tag.
This same method can be tried on any other tags too, but care must be taken that no CSS properties (including inline, internal and external types) are added.
The and tags were added automatically in this document, you can ignore them.
Warning!:
Do remember that tags can inherit properties, and so it would be in the best to define a tag without the outer parent element!!