HTML TAGS

TAGS
§  The content of a web page is enclosed within tags.
§  Tags are the hidden keywords within a web page that define how the web browser must format and display the content.
o  They implement an effect on the content specified between the tags.
§  Tags begin with the less-than (<) character and end with greater-than (>). These symbols are also called "angle brackets"
§  Tags types – container tag and standalone tag.
§  Container tags – has starting and closing tags – starting tag activates an effect that is discontinued by the closing tag.
§  Standalone tag – does not have a closing tag. The starting tag has a ‘/’ before the closing angle bracket indicating it is a standalone tag.
§  Tags attributes – tags attributes modifies how a tags effect is applied.
§  Attributes mat be optional or required.
o  Example – <img> tag src is a required attribute.
§  Multiple attributes can be used in a tag.
§  Values of attributes can be
o  user defined – defined by user or
§  Example – font size – any integer value specified by user
o  Pre-defined – choose one value from a set of pre-defined values.
§  Example – align – possible values – LEFT, RIGHT, CENTER, JUSTIFY

Comment Lines
Comments are generally used to explain / give hints about the purpose of a code block, which can help to edit / debug the source code at a later date. Comments in HTML are not processed or displayed in the browser. Comments are enclosed between <!-- and -->
Example. 
<!--This is a comment. -->
<!DOCTYPE>
§  The <!DOCTYPE> declaration is not an HTML tag;
§  It is an instruction to the web browser about what version of HTML the page is written in.
§  In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD which specifies the rules for the markup language, so that the browsers render the content correctly.
§  Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
HTML TAGS
1.   Document structure tags
2.   Text formatting tags
3.   List tags
4.   Hyperlink tags
5.   Image and Image maps
6.   Table tags
7.   Frame tags
8.   Executable content tags
9.   Form tags

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu