HTML Basics-Important Tags, Attributes and usage Made Simple-The Hyper Text Markup Language is in fact a way to define the layout of the page. It is a text file and the browsers while opening it, try to find the HTML codes, images and links inserted in the text and act accordingly do display the layout. The Hyper Text Markup Language uses tags attributes to instruct the browsers. Important tags and their related attributes, values are given below -
The
Tag or Break Row
Tag or Break Row
This Tag is used to break the row. This is an empty tag, means this tag has no end tag. It is very useful while writing some thing like an address or a poetry. Any thing written after
or
start from the next line. Please note that this tag can not be used to separate the paragraphs.
or
start from the next line. Please note that this tag can not be used to separate the paragraphs.
The - Tag
This tag works just opposite to the
tag mentioned above. It is a container tag, means it has an end tag . The entire text between the and tags will be displayed in a single line and in case the text is too long horizontal scrolling may result. This tag is considered a non standard tag and classified as non confirming in HTML5.
tag mentioned above. It is a container tag, means it has an end tag . The entire text between the
The
Tag
Tag
This tag is used to display a horizontal ruler or to define other thematic changes. In comparison it is used more in semantic terms than in presentational terms.
Attributes used with
Tag
Tag
Align – Values used – ‘Left’, ‘Right’or ‘Centre’
Color – Color name as ‘Blue’ ‘Red’or HTML Color code as #000000 for black and “#FF0000” for Red
Noshade – Used if no shadow is to be shown
Width – Defines the width of the ruler in pixels.
Size – It defines the height of the horizontal line. The measuring unit is pixel.
The -Tag
This tag is used to define the color of the font, face of the font and size of the font. However this tag is not supported in the HTML version5.
Attributes used with Tag
Color – Color of the font is defined by color name like “Red”, “Blue” or by HTML color code like “#FF0000” for Red and “#0000FF” for blue
Face – Face is used to define the font used like “Calibri”, “Arial” etc.
Size – Size is used to define the size of the font. The font size is defined in number between 1 to 7, however browser’s default font size is 3.
Font size is also defined as “+1”, “+2” or “-1”, “-2” and so on. Here “+2” means the font size is 2 units larger than the standard size and “-1” means the font size is 1 units smaller than the standard size
See the examples -
Text to be written!
Text to be written!
The