HTML as you all know is a language that lets us design web pages. It contains tags which help in presenting such good visuals on the screen. There are a lot of browsers being used currently. Though all the browsers display the properties in the same way there are some browser specific attributes too.
There are three parts in a web page. The HTML part, script part, css part. The HTML part contains all the tags which will appear on the screen. The script part helps in the web page being dynamic. This part will be similar to any other programming languages. The most popular one being javascript. We shall see about this in future.
The css part helps in assigning the formatting to the tags in the HTML. There are class and id assigned to each element/tags in the HTML document. They both serve the same purpose, helping to assign the formatting to particular elements using css.
The css and scripts can be either included in the same HTML document or written as separate files and include them into the HTML file.
Id is is used in elements where the formatting will appear for only that element alone. Class is used when there are many elements which will contain the same formatting. For example : The text box whenever they appear on the screen will need to have the same formatting. So they will be having the same class name.
The elements in HTML are either block elements or inline elements. <dev> is a block level element which acts as a container to contain other block level and inline elements. The formatting style for the block elements will be inherited in all the elements which it contains.
<span> is an inline element which is used to span the formatting style in the text which it contains.
To create the layout of the web page we can either go for <div> or <table>. Though it is now established that <div> is the proper way to do create the layout.
Some characters are reserved in HTML. It is not possible to use the less than (<) or greater than (>) signs in your text, because the browser will mix them with tags. To actually display reserved characters, we must use character entities in the HTML source code. For example we can use @lt to make '<' to print on the screen.
There are various events which are there to monitor the web page. Sometimes you may have to sign in in a new website. You will be giving a new password. If your password is small or not proper the website will print the problem once you leave the text box. This can be done by combining events and corresponding client side scripts.
The webpage http://w3schools.com/html/html_quick.asp will contain quick view of syntax of all the available tags and entities available in the HTML.
No comments:
Post a Comment