HTML profile attribute


The purpose of the HTML profile attribute is to specify the URI to a file or a white space separated list of URIs of meta data (i.e. information about the webpage).

Supported elements

HTML profile attribute supports head element.


<head profile="value" >.....</head>

Type of value



A URI or a space-separated list of URIs.

Default value

There is no default value of HTML profile attribute.

Supported doctypes

HTML 4.01 strict, HTML 4.01 transitional, HTML 4.01 frameset.

Example of HTML profile attribute with form

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head profile="https://www.w3resource.com/profiles.html">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>html profile attribute example</title>
<link rel='stylesheet' href='test.css' type='text/css'>
<p>We are learning HTML profile attribute.</p>

Previous: HTML onunload attribute
Next: HTML readonly attribute

Test your Programming skills with w3resource's quiz.

Follow us on Facebook and Twitter for latest update.