Created
June 15, 2021 15:54
-
-
Save kishoreandra/ac7c7f6087a00e972178bbfcd65497ff to your computer and use it in GitHub Desktop.
Best way of creating nested elements using JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="carousel-item active"> | |
<div class="row"> | |
<div class="col-md-4 mb-3"> | |
<div class="card"> | |
<img class="img-fluid" alt="100%x280" src="https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"> | |
<div class="card-body"> | |
<h4 class="card-title">Special title treatment</h4> | |
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | |
<div class="form-group"> | |
<label for="exampleFormControlSelect1">Example select</label> | |
<select class="form-control" id="exampleFormControlSelect1"> | |
</select> | |
<div class="form-check"> | |
<input class="form-check-input" type="checkbox" value="" id="defaultCheck1"> | |
<label class="form-check-label" for="defaultCheck1"> | |
Default checkbox | |
</label> | |
</div> | |
<div class="form-check"> | |
<input class="form-check-input" type="checkbox" value="" id="defaultCheck2" disabled> | |
<label class="form-check-label" for="defaultCheck2"> | |
Disabled checkbox | |
</label> | |
</div> | |
</div> | |
<div class="form-check"> | |
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked> | |
<label class="form-check-label" for="exampleRadios1"> | |
Default radio | |
</label> | |
</div> | |
<div class="form-check"> | |
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2"> | |
<label class="form-check-label" for="exampleRadios2"> | |
Second default radio | |
</label> | |
</div> | |
<div class="form-check disabled"> | |
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3" disabled> | |
<label class="form-check-label" for="exampleRadios3"> | |
Disabled radio | |
</label> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment