DevTools Console JavaScript
Получаем глобальный объект
window
document
Получаем doctype
window.document.doctype
Можно опустить "window"
Получаем doctype
document.doctype
window.document.documentElement
window.document.dir
window.document.head
window.document.charset
window.document.title
window.document.URL
window.document.createElement("div");
window.document.getElementsByTagName("div");
window.document.querySelector(".myClass");
window.document.getElementById("myElement");
window.document.getElementsByClassName("myClass");