3.3 HTML Tags and Attributes
The key to HTML is in the tags. Tags are keywords enclosed in less than “<” and greater than”>” signs that indicate what kind of content is coming up. The HTML documents can be opened in a special program called browser. A browser can interpret the HTML tags and then show the formatted document on the screen for the users.
When a web page is to be developed, the following are to be planned.
- Content of the Page
- Appearance of the Page
The appearance of the web page is coded in HTML language using HTML tags.
A HTML tag is a keyword which is a command giving instructions to the browser about how to display the content specifying the appearance of the content. The following are the salient features of a HTML tag.
A tag consists of keywords enclosed between”<” and “>” symbols, Examples are <HEAD>, <H1>, <HR>
The end of the tag is marked by the symbol”</”. Most of the tags have end tag, which begins with </. For example </H1> is the end tag for <H1>.
A tag may have some attributes. Attribute is a name-value pair separated by an equals(=) sign. Attributes offer a variety of options for the contained text. They are properties of a command of a tag. You can use this tag for drawing a horizontal line. This tag has the following attributes:
- Size (thickness of the line)
- Width
- Alignment
These are represented as follows:
<HR SIZE=10 WIDTH = 25% ALIGN = left >
Related Posts:
Subscribe Here (or)
HTML Tutorials
- Introduction To HTML
- 3.2 Brief history of HTML
- 3.3 HTML Tags and Attributes
- 3.4 HTML Documents
- 3.4.1 HTML Headings
- 3.5 HTML Text Formatting
- 3.6 Linking Web Pages using Hyper Links
- 3.7 Using Images and pictures in Web Page
- HTML Tutorial Summary
- 4.0. Objectives
- 4.1 Introduction
- 4.2 Incorporating Lists in Web pages
- 4.2.2. The START and TYPE attributes
- 4.2.3. Unordered Lists
- 4.2.4. Definition lists
- 4.3. Displaying Tables in HTML
- 4.4. Getting User Input with HTML forms
- 4.4.1. Form Elements
- 4.5. Dividing the screen-display using Frames and Frameset Element
- 4.5.1. Nested Framesets
- 4.7. Let us sum up
Leave a Reply