Menu
×

Được chứng nhận

Ghi lại kiến ​​thức của bạn

Đăng nhập Đăng ký

Tạo Tài khoản Example.com.vn miễn phí để cải thiện trải nghiệm học tập của bạn

Người tìm đường và việc học của tôi

Theo dõi tiến độ học tập của bạn tại Example.com.vn và thu thập phần thưởng

Nâng cấp

Trở thành người dùng PLUS và mở khóa các tính năng mạnh mẽ (không có quảng cáo, lưu trữ, hỗ trợ, ..)

Bắt đầu từ đâu

Bạn không chắc chắn muốn bắt đầu từ đâu? Đi theo con đường được hướng dẫn của chúng tôi

Trình chỉnh sửa mã (Dùng thử)

Với trình chỉnh sửa mã trực tuyến của chúng tôi, bạn có thể chỉnh sửa mã và xem kết quả trong trình duyệt của mình

Video

Tìm hiểu những điều cơ bản về HTML qua video hướng dẫn thú vị và hấp dẫn

Mẫu

Chúng tôi đã tạo một loạt mẫu trang web đáp ứng mà bạn có thể sử dụng - miễn phí!

Web hosting

Lưu trữ trang web của riêng bạn và chia sẻ nó với mọi người với Example.com.vn Spaces

Tạo một máy chủ

Tạo máy chủ của riêng bạn bằng Python, PHP, React.js, Node.js, Java, C#, v.v.

Làm thế nào để

Bộ sưu tập lớn các đoạn mã cho HTML, CSS và JavaScript

Khung CSS

Xây dựng các trang web nhanh và phản hồi bằng cách sử dụng khung W3.CSS miễn phí của chúng tôi

Thống kê trình duyệt

Đọc xu hướng dài hạn của việc sử dụng trình duyệt

Tốc độ gõ

Kiểm tra tốc độ đánh máy của bạn

Đào tạo AWS

Tìm hiểu dịch vụ web của Amazon

Bộ chọn màu

Sử dụng công cụ chọn màu của chúng tôi để tìm các màu RGB, HEX và HSL khác nhau. Bánh xe màu hình tròn thể hiện sự chuyển màu trong quang phổ

Trò chơi mã

Trò chơi mã hóa W3Schools! Giúp linh miêu thu thập nón thông Logo Lynx

Đặt mục tiêu

Nhận hành trình học tập được cá nhân hóa dựa trên các kỹ năng và mục tiêu hiện tại của bạn

Bản tin

Tham gia bản tin của chúng tôi và có quyền truy cập vào nội dung độc quyền mỗi tháng

Việc làm

Thuê những tài năng công nghệ hàng đầu. Hợp lý hóa quy trình tuyển dụng của bạn để có đội ngũ phù hợp hoàn hảo

Lớp học

Hãy liên hệ để sử dụng Example.com.vn Plus và các chứng chỉ với tư cách là một tổ chức giáo dục

×
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP CÁCH W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS AN NINH MẠNG DỮ LIỆU KHOA HỌC

Tham chiếu JS

JS theo danh mục JS theo bảng chữ cái

JavaScript

Mảng JS Boolean JS Các lớp JS Ngày JS Lỗi JS JS toàn cầu JSON JSON Bản đồ JS Toán học JS Số JS Đối tượng JS Các toán tử JS Ưu tiên JS Lời hứa của JS JS RegExp
Công cụ sửa đổi: g i d m Nhóm: [abc] [^abc] [0-9] [^0-9] (x|y) Siêu ký tự: . \w \W \d \D \s \S \b \B \0 \n \f \r \t \v \xxx \xdd \uxxxx Bộ định lượng: + * ? {X} {X,Y} {X,} $ ^ ?= ?! Thuộc tính: hàm tạo toàn cục ignCase LastIndex nguồn nhiều dòng Phương thức: biên dịch() exec() test() toString()
Bộ JS Câu lệnh JS Chuỗi JS JS đã gõ mảng

Cửa sổ

Đối tượng cửa sổ Bảng điều khiển cửa sổ Lịch sử cửa sổ Vị trí cửa sổ Điều hướng cửa sổ Màn hình của giao diện Window

DOM HTML

Tài liệu HTML Phần tử HTML Thuộc tính HTML Bộ sưu tập HTML Danh sách nút HTML Danh sách DOMToken HTML Kiểu HTML
căn chỉnhNội dung căn chỉnhCác mục căn chỉnhHoạt hình tự độngChậm trễ hoạt hìnhHướng hoạt hìnhThời gian hoạt hìnhĐiềnHoạt hình chế độLặpĐếm hoạt hìnhTên hoạt hìnhThời gianHoạt hình chức năngPlayState nền nềnNền đính kèmNền màuNền hình ảnhNền gốcVị trí nềnLặp lạiKích thước mặt sauĐường viền hiển thịBottomBiên giới màuBottomTráiBiên giới bán kínhBottomBottomBiên giới bán kínhBottomBiên giới phong cáchBottomWidth borderBiên giới màuHình ảnh Lặp lại đường viềnHình ảnhĐường viền látHình ảnhĐường viền nguồnHình ảnhĐường viền chiều rộngBiên giới bên tráiBiên giới màuTráiBiên giới kiểuTráiBiên giới chiều rộngBiên giới bán kínhBiên giới bên phảiBiên giới màu sắcPhảiPhong cách biên giớiPhảiBiên giới chiều rộngBiên giới khoảng cáchBiên giới phong cáchBiên giới trênTopMàu sắc biên giớiTopLeftĐường viền bán kínhTopRightRadius borderTopStyle borderTopWidth borderWidth Bottom boxShadow box Chú thích bên Dấu nháy bênMàu ràng clip màu cộtĐếm cộtĐiền cộtKhoảng cách cộtQuy tắcCột màuQuy tắcCột kiểuQuy tắcCột chiều rộngCột chiều rộngBộ đếm tăngĐặt lại cssHiển thị hướng con trỏ nổi Phông chữ kiểu Phông chữ biến thể Phông chữ có trọng lượng Kích thướcĐiều chỉnh cách ly độ cao biện minhNội dung chữ bên tráiKhoảng cách dòngDanh sách chiều caoDanh sách phong cáchPhong cáchDanh sách hình ảnhPhong cáchDanh sách vị tríPhong cáchLề lềBottomLề tráiLề phảiLề phảiCao nhất tối đaChiều rộng tối thiểuChiều cao tối thiểuĐối tượng chiều rộngĐối tượng phù hợpVị trí độ mờ thứ tự trẻ mồ côi phác thảo Phác thảoMàu sắcPhác thảo kiểuPhác thảo kiểuChiều rộng trànX trànĐệm đệmBottom đệm bên tráiPhần đệm bên phảiTrang trênBreakSau trangBreakTrước trangBreakBáo giá vị trí gốc thay đổi kích thước cuộn bên phảiBảng hành viCăn chỉnh kích thước văn bảnCăn chỉnhVăn bản cuốiVăn bản trang tríTrang tríVăn bản màuTrang tríVăn bản dòngTrang tríPhong cách văn bản Thụt lề văn bản Văn bản tràn Văn bản bóng Chuyển đổi biến đổi trên cùng Biến đổi gốc Chuyển đổi phong cách Chuyển đổi thuộc tính Chuyển đổi thời lượng Chuyển đổi thời gian Chuyển đổi chức năng Trì hoãn unicode Người dùng Bidi Chọn theo chiều dọc Căn chỉnh chiều rộng hiển thị Từ ngắt khoảng cách từBọc góa phụ zChỉ mục

Sự kiện HTML

Sự kiện HTML Đối tượng sự kiện HTML Thuộc tính sự kiện HTML Phương thức sự kiện HTML

API web

API Canvas API Bảng điều khiển API Tìm nạp API Toàn màn hình Định vị địa lý API API lịch sử API Lưu trữ API MediaQueryList API xác thực API Web API

Đối tượng HTML

<a> <abbr> <địa chỉ > < khu vực> <bài viết> <sang một bên> <audio> <b> <base> <bdo> <blockquote> <body> <br> <button> <canvas> <caption> <cite > <code> <col> <colgroup> <datalist> <dd> <del> <details> <dfn> <dialog> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> < hình> <footer> <form> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <ins> <input> nút <input> hộp kiểm <input> màu <input> ngày <input> ngày giờ <input> datetime-local <input> email <input> tệp <input> ẩn <input> hình ảnh <input> tháng <input> số <input> mật khẩu <input> radio <input> phạm vi <input> đặt lại <input> tìm kiếm <input> gửi <input> văn bản <input> thời gian <input> url <input> tuần <kbd> <label> <legend> <li> <link> <map> <mark> <menu> <menuitem> <meta> <meter> <nav> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <s> <samp > <script> <section> <select> <small> <source> <span> <strong> <style> <sub> <tóm tắt > <sup> <table> <tbody> <td> <tfoot> <th> < thead> <tr> <textarea> <time> <title> <track> <u> <ul> <var> <video>

Tài liệu tham khảo khác

Khai báo CSSStyle Chuyển đổi JS


Các phần tử DOM HTML


Đối tượng phần tử

Trong HTML DOM, đối tượng Element đại diện cho một phần tử HTML, như P, DIV, A, TABLE hoặc bất kỳ phần tử HTML nào khác.


Thuộc tính và phương thức

Các thuộc tính và phương thức sau có thể được sử dụng trên tất cả các phần tử HTML:

Property / Method Description
accessKey Sets or returns the accesskey attribute of an element
addEventListener() Attaches an event handler to an element
appendChild() Adds (appends) a new child node to an element
attributes Returns a NamedNodeMap of an element's attributes
blur() Removes focus from an element
childElementCount Returns an elements's number of child elements
childNodes Returns a NodeList of an element's child nodes
children Returns an HTMLCollection of an element's child elements
classList Returns the class name(s) of an element
className Sets or returns the value of the class attribute of an element
click() Simulates a mouse-click on an element
clientHeight Returns the height of an element, including padding
clientLeft Returns the width of the left border of an element
clientTop Returns the width of the top border of an element
clientWidth Returns the width of an element, including padding
cloneNode() Clones an element
closest() Searches the DOM tree for the closest element that matches a CSS selector
compareDocumentPosition() Compares the document position of two elements
contains() Returns true if a node is a descendant of a node
contentEditable Sets or returns whether the content of an element is editable or not
dir Sets or returns the value of the dir attribute of an element
firstChild Returns the first child node of an element
firstElementChild Returns the first child element of an element
focus() Gives focus to an element
getAttribute() Returns the value of an element's attribute
getAttributeNode() Returns an attribute node
getBoundingClientRect() Returns the size of an element and its position relative to the viewport
getElementsByClassName() Returns a collection of child elements with a given class name
getElementsByTagName() Returns a collection of child elements with a given tag name
hasAttribute() Returns true if an element has a given attribute
hasAttributes() Returns true if an element has any attributes
hasChildNodes() Returns true if an element has any child nodes
id Sets or returns the value of the id attribute of an element
innerHTML Sets or returns the content of an element
innerText Sets or returns the text content of a node and its descendants
insertAdjacentElement() Inserts a new HTML element at a position relative to an element
insertAdjacentHTML() Inserts an HTML formatted text at a position relative to an element
insertAdjacentText() Inserts text into a position relative to an element
insertBefore() Inserts a new child node before an existing child node
isContentEditable Returns true if an element's content is editable
isDefaultNamespace() Returns true if a given namespaceURI is the default
isEqualNode() Checks if two elements are equal
isSameNode() Checks if two elements are the same node
isSupported() Deprecated
lang Sets or returns the value of the lang attribute of an element
lastChild Returns the last child node of an element
lastElementChild Returns the last child element of an element
matches() Returns true if an element is matched by a given CSS selector
namespaceURI Returns the namespace URI of an element
nextSibling Returns the next node at the same node tree level
nextElementSibling Returns the next element at the same node tree level
nodeName Returns the name of a node
nodeType Returns the node type of a node
nodeValue Sets or returns the value of a node
normalize() Joins adjacent text nodes and removes empty text nodes in an element
offsetHeight Returns the height of an element, including padding, border and scrollbar
offsetWidth Returns the width of an element, including padding, border and scrollbar
offsetLeft Returns the horizontal offset position of an element
offsetParent Returns the offset container of an element
offsetTop Returns the vertical offset position of an element
outerHTML Sets or returns the content of an element (including the start tag and the end tag)
outerText Sets or returns the outer text content of a node and its descendants
ownerDocument Returns the root element (document object) for an element
parentNode Returns the parent node of an element
parentElement Returns the parent element node of an element
previousSibling Returns the previous node at the same node tree level
previousElementSibling Returns the previous element at the same node tree level
querySelector() Returns the first child element that matches a CSS selector(s)
querySelectorAll() Returns all child elements that matches a CSS selector(s)
remove() Removes an element from the DOM
removeAttribute() Removes an attribute from an element
removeAttributeNode() Removes an attribute node, and returns the removed node
removeChild() Removes a child node from an element
removeEventListener() Removes an event handler that has been attached with the addEventListener() method
replaceChild() Replaces a child node in an element
scrollHeight Returns the entire height of an element, including padding
scrollIntoView() Scrolls the an element into the visible area of the browser window
scrollLeft Sets or returns the number of pixels an element's content is scrolled horizontally
scrollTop Sets or returns the number of pixels an element's content is scrolled vertically
scrollWidth Returns the entire width of an element, including padding
setAttribute() Sets or changes an attribute's value
setAttributeNode() Sets or changes an attribute node
style Sets or returns the value of the style attribute of an element
tabIndex Sets or returns the value of the tabindex attribute of an element
tagName Returns the tag name of an element
textContent Sets or returns the textual content of a node and its descendants
title Sets or returns the value of the title attribute of an element
toString() Converts an element to a string

×

Liên hệ bán hàng

Nếu bạn muốn sử dụng dịch vụ của Example.com.vn với tư cách là một tổ chức giáo dục, nhóm hoặc doanh nghiệp, hãy gửi email cho chúng tôi:
[email được bảo vệ]

Báo cáo lỗi

Nếu bạn muốn báo cáo lỗi hoặc nếu bạn muốn đưa ra đề xuất, hãy gửi email cho chúng tôi:
[email được bảo vệ]

Example.com.vn được tối ưu hóa cho việc học tập và đào tạo. Các ví dụ có thể được đơn giản hóa để cải thiện khả năng đọc và học. Các hướng dẫn, tài liệu tham khảo và ví dụ liên tục được xem xét để tránh sai sót, nhưng chúng tôi không thể đảm bảo tính chính xác hoàn toàn của mọi nội dung. Trong khi sử dụng W3Schools, bạn đồng ý đã đọc và chấp nhận các điều khoản sử dụng , chính sách cookie và quyền riêng tư của chúng tôi.

Bản quyền 1999-2024 của Refsnes Data. Đã đăng ký Bản quyền. Example.com.vn được cung cấp bởi W3.CSS .