Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Programiranje

Ići dole

Programiranje Empty Programiranje

Počalji  Admin Pon Jul 04, 2011 3:13 pm

Programiranje Sxc_progfaksevi02
Admin
Admin
Admin

Broj poruka : 94
Datum upisa : 04.07.2011
Lokacija : tu negde

Nazad na vrh Ići dole

Programiranje Empty Re: Programiranje

Počalji  Admin Sre Jul 06, 2011 6:00 pm

Evo kako da ubaciš link na sajt

<a href="url">Link text</a>
The href attribute specifies the destination of a link.
Example
<a href="http://www.w3schools.com/">Visit W3Schools</a>
Clicking on this hyperlink will send the user to W3Schools' homepage.
TML Links - The target Attribute
The target attribute specifies where to open the linked document.
The example below will open the linked document in a new browser window or a new tab:
<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>


Here is the code to add a simple scrolling text from right to left side
<marquee> add text here </marquee>

If you want some more attraction,then try these,
Add a blue background color to the text:
<marquee bgcolor="#99CCFF"> add text here </marquee>

The above attributes tells the text which direction to scroll.
Use the code below:
<marquee direction="right" bgcolor="#99CCFF">scrolling text here</marquee>

Pausing the text when mouse is over the text:
It is very useful when the reader wants to read the text,and the scrollamount is big, so that he will put the mouse over the text to pause the text and read the matter:
Here is the code to do this
<marquee behavior="alternate" direction="left" bgcolor="#CCCCCC" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="2" scrolldelay="50"> add scrolling text here</marquee>

HTML VIDEO
Sa youtube copy embed html na primer:
<object style="height: 390px; width: 640px"><param name="movie" value="https://www.youtube.com/v/psuC197yC-Q?version=3"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="https://www.youtube.com/v/psuC197yC-Q?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390"></object>

or
<iframe title="YouTube video player" class="youtube-player" type="text/html"
width="640" height="390" src="https://www.youtube.com/embed/W-Q7RMpINVo"
frameborder="0" allowFullScreen></iframe>

HTML Images
HTML images are defined with the <img> tag.
Example

<img src="w3schools.jpg" width="104" height="142" />
HTML Images - The <img> Tag and the Src Attribute
In HTML, images are defined with the <img> tag.
The <img> tag is empty, which means that it contains attributes only, and has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.
Syntax for defining an image:
<img src="add url here" alt="some_text"/>
HTML Images - The Alt Attribute
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
The value of the alt attribute is an author-defined text:
<img src="boat.gif" alt="Big Boat" />


HTML Images - Set Height and Width of an Image
The height and width attributes are used to specify the height and width of an image.
The attribute values are specified in pixels by default:
<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" />

HTML Tables
Tables are defined with the <table> tag.
A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.
Table Example
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
HTML Tables
Apples 44%
Bananas 23%
Oranges 13%
Other 10%

HTML Unordered Lists
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black circles).
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
How the HTML code above looks in a browser:
• Coffee
• Milk
• HTML Forms
• HTML forms are used to pass data to a server.
• A form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.
• The <form> tag is used to create an HTML form:
<form>
.
input elements
.
</form>

• ________________________________________
• HTML Forms - The Input Element
• The most important form element is the input element.
• The input element is used to select user information.
• An input element can vary in many ways, depending on the type attribute. An input element can be of type text field, checkbox, password, radio button, submit button, and more.
• The most used input types are described below.
• ________________________________________
• Text Fields
• <input type="text" /> defines a one-line input field that a user can enter text into:
<form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
• How the HTML code above looks in a browser:
• First name:
Last name:
• Note: The form itself is not visible. Also note that the default width of a text field is 20 characters.
• ________________________________________
• Password Field
• <input type="password" /> defines a password field:
<form>
Password: <input type="password" name="pwd" />
</form>
• How the HTML code above looks in a browser:
• Password:
• Note: The characters in a password field are masked (shown as asterisks or circles).
• ________________________________________
• Radio Buttons
• <input type="radio" /> defines a radio button. Radio buttons let a user select ONLY ONE one of a limited number of choices:
<form>
<input type="radio" name="sex" value="male" /> Male<br />
<input type="radio" name="sex" value="female" /> Female
</form>
• How the HTML code above looks in a browser:
• Male
Female
• ________________________________________
• Checkboxes
• <input type="checkbox" /> defines a checkbox. Checkboxes let a user select ONE or MORE options of a limited number of choices.
<form>
<input type="checkbox" name="vehicle" value="Bike" /> I have a bike<br />
<input type="checkbox" name="vehicle" value="Car" /> I have a car
</form>
• How the HTML code above looks in a browser:
• I have a bike
I have a car
• ________________________________________
• Submit Button
• <input type="submit" /> defines a submit button.
• A submit button is used to send form data to a server. The data is sent to the page specified in the form's action attribute. The file defined in the action attribute usually does something with the received input:
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form>
• How the HTML code above looks in a browser:
• Username:
• If you type some characters in the text field above, and click the "Submit" button, the browser will send your input to a page called "html_form_action.asp". The page will show you the received input.
• ________________________________________

HTML Frames
With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.
The disadvantages of using frames are:
• Frames are not expected to be supported in future versions of HTML
• Frames are difficult to use. (Printing the entire page is difficult).
• The web developer must keep track of more HTML documents
________________________________________
The HTML frameset Element
The frameset element holds one or more frame elements. Each frame element can hold a separate document.
The frameset element states HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.
________________________________________
The HTML frame Element
The <frame> tag defines one particular window (frame) within a frameset.
In the example below we have a frameset with two columns.
The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The document "frame_a.htm" is put into the first column, and the document "frame_b.htm" is put into the second column:
<frameset cols="25%,75%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
</frameset>
Note: The frameset column size can also be set in pixels (cols="200,500"), and one of the columns can be set to use the remaining space, with an asterisk (cols="25%,*").
________________________________________
Basic Notes - Useful Tips
Tip: If a frame has visible borders, the user can resize it by dragging the border. To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag.
Note: Add the <noframes> tag for browsers that do not support frames.
Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags! However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags! See how it is done in the first example

Syntax for adding an iframe:
<iframe src="URL"></iframe>
The URL points to the location of the separate page.
________________________________________
Iframe - Set Height and Width
The height and width attributes are used to specify the height and width of the iframe.
The attribute values are specified in pixels by default, but they can also be in percent (like "80%").
Example
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>



________________________________________
Iframe - Remove the Border
The frameborder attribute specifies whether or not to display a border around the iframe.
Set the attribute value to "0" to remove the border:
Example
<iframe src="demo_iframe.htm" frameborder="0"></iframe>



________________________________________
Use iframe as a Target for a Link
An iframe can be used as the target frame for a link.
The target attribute of a link must refer to the name attribute of the iframe:
Example
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://www.w3schools.com" target="iframe_a">W3Schools.com</a></p>

Admin
Admin
Admin

Broj poruka : 94
Datum upisa : 04.07.2011
Lokacija : tu negde

Nazad na vrh Ići dole

Programiranje Empty Re: Programiranje

Počalji  Admin Sre Jul 06, 2011 6:00 pm

The HTML script Element
The <script> tag is used to define a client-side script, such as a JavaScript.
The script element either contains scripting statements or it points to an external script file through the src attribute.
The required type attribute specifies the MIME type of the script.
Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
The script below writes Hello World! to the HTML output:
Example
<script type="text/javascript">
document.write("Hello World!")
</script>


Tip: To learn more about JavaScript, visit our JavaScript tutorial!
________________________________________
The HTML noscript Element
The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.
The noscript element can contain all the elements that you can find inside the body element of a normal HTML page.
The content inside the noscript element will only be displayed if scripts are not supported, or are disabled in the user’s browser:
Example
<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>

Admin
Admin
Admin

Broj poruka : 94
Datum upisa : 04.07.2011
Lokacija : tu negde

Nazad na vrh Ići dole

Programiranje Empty Re: Programiranje

Počalji  Sponsored content


Sponsored content


Nazad na vrh Ići dole

Nazad na vrh


 
Dozvole ovog foruma:
Ne možete odgovarati na teme u ovom forumu