html title attribute style code example
Example 1: title tag html
<title>Title to appear in the browsers tab of the page</title>
Example 2: html title
<head>
<title>My page title</title>
</head>
<script>
document.title = "My new title";
</script>
Example 3: how to stilize title property css
[data-title]:hover:after {
opacity: 1;
transition: all 0.1s ease 0.5s;
visibility: visible;
}
[data-title]:after {
content: attr(data-title);
position: absolute;
bottom: -1.6em;
left: 100%;
z-index: 99999;
visibility: hidden;
white-space: nowrap;
background-color: #00FF00;
color: #111;
font-size: 150%;
padding: 1px 5px 2px 5px;
box-shadow: 1px 1px 3px #222222;
opacity: 0;
border: 1px solid #111111;
}
[data-title] {
position: relative;
}
Example 4: html title attribute
<body>
<p title="Popup here">hover me!</p>
</body>
<head>
<title>This is the tab title</title>
</head>
Example 5: html title
<head>
<title>This is the title of the Website</title>
</head>
Example 6: html title attribute
<head>
<title>This is your webpage title</title>
</head>