Thursday, August 31, 2017

Elements & Attributes

HTML Elements

Any start and end tag in HTML and the middle part is called an element. Such as <h1> this is an example of element. </ H1>. Here is the <h1> header 1 start and </ h1> header in the last tag. Written, <h1> This is an example of element. </ H1> An element. Some tags have no elements such as <br />, <img /> etc.

Thread tag
Element content
Last tag
<H1>
This is an element
</ H1>
<P>
This is the paragraph.
</ P>
<br />


<Img />



Generally there are no elements of tags that do not have the last tag. This type of tag includes the / symbol, and before that a space is to be given.



Some HTML Attributes
Tag
Attributes
<Font>
Size = "5" face = "Tahoma" color = "red"
<H1> .... <H6> <p>
Align = "center" align = "left" align = "right" title = "Bangladesh"
<Body>
Bgcolor = "green" background = "../ images / ele.png"
<Div>
Id = "book" class = "pen" align = "center"
<Img> <table>
Height = "100px" width = "50px" border = "5px"
<Input />
Type = "text" name = "TextField"
 
Example Programs
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<Font size = "5" face = "Tahoma" color = "red">
This is a paragraph
</ Font>
</ Body>
</ Html>


Open a Notepad and enter the code at the top and save the file by clicking on Save as by clicking on File name: index.html, Save as type: All files, save index.html file with Mozilla Firefox, and look like a picture next to it.


No comments:

Post a Comment

Flash Addition Tags

Flash Addition One of the most interesting elements of the Flash Animation Web site. Attractive navigation bars, banners, buttons, etc. t...