HTML 'link' Tag/Element


What Is an HTML "link" Tag/Element?



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"
  <title>My First CSS Example</title>
  <link rel="stylesheet" type="text/css" href="/_fyi.css" />
  <p>Hello world!</p>

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


⇒HTML Document Structure and Head Level Tags

⇒⇒HTML Tutorials

2017-02-20, 990👍, 0💬