Displaying images using img tag in HTML

The IMG element is used to incorporate images into an HTML document. The common attributes used are SRC, ALT (required by HTML 4), WIDTH, and HEIGHT (recommended for practical reasons). IMG is an inline element, and can be used anywhere text can be used. Images can be put into a sentence, in a table cell, […]
Continue reading…

Enjoyed this post? Share it!

 
 

Horizontal rule HR tag in HTML

The horizontal rule HTML element can be used to add a visible separation line to a document. The amount of vertical space inserted between a rule and the content that surrounds it depends on the browser. The HR element is an empty element. The appearance of a horizontal rule should be controlled by the STYLE […]
Continue reading…

Enjoyed this post? Share it!

 
 

Headings in HTML pages

The heading elements of an HTML document organize the content in a way similar to an outline. There are six levels of headings, which correspond to the levels of an outline. The top (most important) level heading uses the H1 tag, and the lowest (least important) supported level uses the H6 tag. Typically, browsers render […]
Continue reading…

Enjoyed this post? Share it!

 
 

Creating a HTML page

Development of HTML pages can start with a basic template, which includes the framework elements. Specific information can then be added to the page as needed. An HTML page begins with a Document Type Definition (DTD), which identifies the specification against which the page should be interpreted. This is followed by the page itself, embedded […]
Continue reading…

Enjoyed this post? Share it!

 
 

Empty elements in HTML

Tags for empty elements do not occur in pairs. They consist of the keyword enclosed in “angle brackets.” No page text is contained within them. For example, the horizontal rule tag, keyword HR, puts a horizontal line on the page. Example: <P> This is a paragraph, which will be formatted into left justified lines to […]
Continue reading…

Enjoyed this post? Share it!

 
 

Introduction to HTML

Hypertext markup language, HTML, is the basic language of the web page. Writing HTML is not programming. HTML is not a procedural language. Writing HTML is more like word processing than programming. Like word processing, there are two approaches to write an HTML page. There are WYSIWYG (What You See Is What You Get) editors […]
Continue reading…

Enjoyed this post? Share it!