- It accesses the paragraph
- It updates the paragraph's text
- It accesses the heading
- It accesses the heading's text
<html>
<body>
<h1 id="studio">SwimFit</h1>
<p id="trial">Try the free trial</p>
<script>
document.getElementById("trial");
</script>
</body>
</html>]]>The code is accessing the paragraph.