Last week we started writing code! We went over the basics of HTML and began understanding the fundamentals of opening and closing tags. We also had a test covering everything to date.
We learned that the "<p>" tag is an example of a marker that indicates the beginning of a paragraph. It is often referred to as the opening tag. The "</p>" tag is the marker indicating the end of the paragraph. Also known as the closing tag. The opening tag, closing tag, and everything in between is called an element.
Another thing we went over was attributes. The id="example" is an attribute. Attributes modify the element and create behaviour.
<!DOCTYPE html>
<html>
<head>
<title>Example
page</title>
</head>
<body>
<h1>This is the structure of basic code</h1>
</body>
</html>
This is the structure we covered and how to appropriately open and close tags.
No comments:
Post a Comment