Wednesday, January 24, 2018

Html uses elements to describe the Structure of Pages



Html uses elements to describe the Structure of Pages

We should take a gander at the code from the last page. There are a few distinct components. Each

component has an opening tag.




Tags act like containers. They tell you something about the information that lies
between their opening and closing tags.





Example:
  <html>
<body>
<h1>This is the Main Heading</h1>

<p>This text might be an introduction to the rest of
the page. And if the page is a long one it might
be split up into several sub-headings.
<p>

<h2>This is a Sub-Heading</h2>

<p> Many long articles have sub-headings so to help
you follow the structure
</p>

<h2>Another Sub-Heading</h2>
<p>Here you can see another sub-heading.</p>
</body>

</html


A Closer Look At Tags



1) The terms "tag" and "element"

are often used interchangeably.

2) Strictly speaking, however, an
element comprises the opening

3) tag and the closing tag and any
content that lies between them.





0 comments:

Post a Comment


Top