HTML is necessary for creating any webpage that you find on the internet. It presents text, images, links, forms and similar items using tags in a special system. For either beginners or those who plan to become web developers, it's important to learn how HTML forms the base of web pages.
The most important components of an HTML document are:
- Tags
- Attributes
- Elements
It's important to understand how the two are joined to affect a webpage's design and content.
1) HTML Tags
Tags make HTML possible. They set out the way content should behave or look when displayed on the internet. Most of the time, the tags used in HTML pair a start tag and an end tag.
Syntax
- <tagname>Content goes here</tagname>
The tag at the start of a content section, such as <p>, marks the beginning of its layout or purpose. This tag indicates the ending of a paragraph: </p>. What's inside the tags is the content that gets altered.
Some tags, though, are self-closing or do not need content-they have functions, even without any content inside. These are tags, for example, <br> for new lines and <img> for photos.
Comments
Post a Comment