Getting started:
Related tutorials:
| function appendChildren(decorateDivFunction) { | |
| var allDivs = document.getElementsByTagName("div"); | |
| allDivs = [].slice.call(allDivs, 0); | |
| for (var i = 0; i < allDivs.length; i++) { | |
| var newDiv = document.createElement("div"); | |
| decorateDivFunction(newDiv); | |
| allDivs[i].appendChild(newDiv); | |
| } | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Company page</title> | |
| </head> | |
| <body> | |
| <p>Welcome! Here you can find the following things:</p> | |
| <ol> | |
| <li><em><a href="#logo">Company's logo</a></em></li> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Avatar</title> | |
| <style> | |
| /* Write your CSS solution here (do not edit the surrounding HTML) */ | |
| .avatar { | |
| height: 150px; | |
| width: 150px; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Modal Dialog</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
| </head> |
Getting started:
Related tutorials: