crop_rotate
Run
<!DOCTYPE html> <html> <head> <title>get element by Tag Name JavaScript</title> </head> <body> <h1>Welcome To Dom</h1> <p> Get element by id name</p> <p> Get elements by class name</p> <p> Get elements by tag name</p> <p> Get elements by name</p> <script> let paragraphs = document.getElementsByTagName('p'); //check Console document.write(paragraphs.length); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHRpdGxlPmdldCBlbGVtZW50IGJ5IFRhZyBOYW1lIEphdmFTY3JpcHQ8L3RpdGxlPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4gOjotd2Via2l0LXNjcm9sbGJhcnt3aWR0aDo3cHg7aGVpZ2h0OjdweDt9Ojotd2Via2l0LXNjcm9sbGJhci10cmFja3tiYWNrZ3JvdW5kOiNmZmY7fTo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWJ7Ym9yZGVyLXJhZGl1czo1cHg7YmFja2dyb3VuZDojMmY0NWZmO308L3N0eWxlPjwvaGVhZD4NCjxib2R5Pg0KICAgPGgxPldlbGNvbWUgVG8gRG9tPC9oMT4NCiAgIDxwPiBHZXQgZWxlbWVudCBieSBpZCBuYW1lPC9wPg0KICAgPHA+IEdldCBlbGVtZW50cyBieSBjbGFzcyBuYW1lPC9wPg0KICAgPHA+IEdldCBlbGVtZW50cyBieSB0YWcgbmFtZTwvcD4NCiAgIDxwPiBHZXQgZWxlbWVudHMgYnkgbmFtZTwvcD4NCiAgICA8c2NyaXB0Pg0KICAgICAgICBsZXQgcGFyYWdyYXBocyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdwJyk7DQogICAgICAgLy9jaGVjayBDb25zb2xlDQogICAgICAgIGRvY3VtZW50LndyaXRlKHBhcmFncmFwaHMubGVuZ3RoKTsNCiAgICA8L3NjcmlwdD4NCjwvYm9keT4NCjwvaHRtbD4=