Html link tag Part - 15
Автор: Tamil Developer Studio
Загружено: 2023-06-01
Просмотров: 338
The HTML link tag, link, is used to define a relationship between the current HTML document and an external resource. It is commonly used to link stylesheets, icons, or other external files to an HTML page. The link tag is placed within the head section of an HTML document.
t's break down the different attributes of the link tag:
rel: This attribute specifies the relationship between the current document and the linked resource. The most commonly used value is "stylesheet" when linking a CSS (Cascading Style Sheets) file. Other possible values include "icon" for specifying a favicon, "preload" for preloading content, or "alternate" for alternate versions of the document, among others.
href: This attribute specifies the URL (Uniform Resource Locator) of the linked resource. It can be a relative or absolute URL. The browser uses the href attribute to fetch the linked resource.
In addition to the rel and href attributes, you can also include some optional attributes in the link tag:
type: This attribute specifies the MIME type of the linked resource. It is typically used when linking non-HTML files, such as stylesheets or scripts. The type attribute is optional, as browsers can often infer the type based on the file extension.
media: This attribute specifies the media device or media type for which the linked resource is intended. It is used to define different stylesheets for different media, such as screen, print, or handheld devices. The media attribute is optional.
This example links an external CSS file called "styles.css" to the HTML document. The stylesheet is intended for screen media and has a MIME type of "text/css".
It's important to note that the link tag is a void element, which means it does not have a closing tag. The closing slash ("/") at the end of the tag (e.g., link ... /) is optional and indicates that it is a self-closing tag.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: