title-multiple-elements.html (758B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width"> 6 <title>Title One</title> 7 <title>Title Two</title> 8 <link rel="author" title="Deepith N" href="mailto:deepithdeekshith@gmail.com"> 9 <link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#the-title-element"> 10 <script src="/resources/testharness.js"></script> 11 <script src="/resources/testharnessreport.js"></script> 12 </head> 13 <body> 14 <div id="log"></div> 15 16 <script> 17 test(function() { 18 assert_equals(document.title, "Title One", "The document's title should be the content of the first <title> element."); 19 }, "Browsers must ignore <title> elements after the first one."); 20 </script> 21 </body> 22 </html>