Elements of HTML
ELEMENTS
There are two elements of HTML
1. TAGS
2. ATTRIBUTES
TAGS
Tag is the most important element of HTML.
There are millions of tags that are used in HTML. The angle brackets are used to describe a tag. e.g. if we need to show heading on a web page a heading tag is used. i.e. <h1>Pakistan</h1>
<h1> is the opening tag & </h1> is the closing tag. There are some important tags that need not to be closed.
ATTRIBUTES
A Piece of information which determine the properties of a field or tag in a database. Attribute is also an important element of HTML. It is used to format the text of a Web Page. Format means we can change the size, color, style of any text. it helps in adjusting text on a web page. There are a few examples of attributes.
- Attribute of color Color:green;
- Attribute of size Size:500px; E.T.C
No comments:
Post a Comment