Can the element .getElementsByTagName get the div tag under the specified id?

The "element" in the

question is a div, previously obtained through the var abc=document.getElementById () method
and then uses the var comn=abc.getElementsByTagName ("div") method to get the collection of div under the abc and report an error. Can"t
use the getElementsByTagName () method to get a collection of all the div under a div?

Mar.20,2021

it is suggested to attach the code. I happened to be in this situation, so I tried it and it was OK

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>getElementsByTagName</title>
</head>
<body>
    <div class="box">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
        </ul>
        <div id="content">
            <ul class="con">
                <li>11</li>
                <li>22</li>
                <li id="li3">33</li>
            </ul>
            <div></div>
        </div>
    </div>
</body>
<script type="text/javascript">
    var content = document.getElementById('content');
    var lis = document.getElementsByTagName('li');
    var box = document.getElementsByClassName('box');
    console.log(content);
    console.log(lis);
    console.log(box);
    var lis2 = box[0].getElementsByTagName('li');
    console.log(".",lis2);//.HTMLCollection(8)[li, li, li, li, li, li, li, li-sharpli3, li3: li-sharpli3]
    var lis3 = content.getElementsByTagName('li');
    console.log("id.",lis3);//id.HTMLCollection(3)[li, li, li-sharpli3, li3: li-sharpli3]
    var divs = content.getElementsByTagName('div');
    console.log("id.",divs);//id.HTMLCollection[div]
    var con = content.getElementsByClassName('con');
    console.log("id.",con);//id.HTMLCollection[ul.con]
    var con2 = box[0].getElementsByClassName('con');
    console.log(".",con2);//.HTMLCollection[ul.con]
    var con3 = content.getElementById('li3');
    console.log("id.id",con3);//
    var content2 = box[0].getElementById('content');
    console.log(".id",content2);//
</script>
</html>

add: I suddenly found that "id." is sometimes used. The tag may report an error, which may be the reason for the variable name, but it can be used directly without the variable name, and can be used directly (such as document.getElementById (). DocumentsByTagName ()) or changing the variable name

).
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35180-2bf82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35180-2bf82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?