HTML elements: meta elements and self-enclosing elements

Screenshot 2024-06-17 224219
Hello, I started learing CSS but I got stuck at this part, I know how to use elements, but I don’t really know what a meta element is, or what a self-enclosing element is.

A meta is exactly what it says on the tin. An element that uses the meta tag. They are used to hold metadata about the page. A self-closing element is an element that doesn’t need a second closing tag. They look something like the following.

<meta myDataField="my data"/> 

More on meta elements. <meta>: The metadata element - HTML: HyperText Markup Language | MDN

3 Likes

Thank you! And thank you for using an example it makes sense now!

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.