HTML 'link' Tag/Element

Q

What Is an HTML "link" Tag/Element?

✍: FYIcenter.com

A

A "link" element is an optional sub-element of the "head" element. A "link" element is used to specify Cascading Style Sheet (CSS) file. Here is good example of a link element:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
 <head>
  <title>My First CSS Example</title>
  <link rel="stylesheet" type="text/css" href="/_fyi.css" />
 </head>
 <body>
  <p>Hello world!</p>
 </body>
</html>

If you view the above the XHTML document, the browser will fetch _fyi.css and use its contents as CSS entries.

 

HTML 'style' Tag/Element

HTML 'script' Tag/Element in 'head' Element

HTML Document Structure and Head Level Tags

⇑⇑ HTML Tutorials

2024-01-10, 1291🔥, 0💬