Tampilkan postingan dengan label tag. Tampilkan semua postingan
Tampilkan postingan dengan label tag. Tampilkan semua postingan

Alert, Confirm, and Prompt boxes in Javascript

Posted by Unknown Sabtu, 15 Februari 2014 0 komentar
The three "commands" involved in creating alert, confirm, and prompt boxes are:
  • window.alert()
  • window.confirm()
  • window.prompt()
window.alert() :This command pops up a message box displaying whatever you put in it.
 
<body>
<script type="text/javascript">
window.alert("Iam an alert box!!!")
</script>
</body>
window.confirm():Confirm is used to confirm a user about certain action, and decide between two choices depending on what the user chooses.
 
<body>
<script type="text/javascript">
var x=window.confirm("Are you sure?")
if (x)
window.alert("Yes!")
else
window.alert("No")
</script>
</body>
window.prompt():Prompt is used to allow a user to enter something, and do something with that info:
 
<body>
<script type="text/javascript">
var y=window.prompt("Enter your name here...")
window.alert(y)
</script>
</body>

Baca Selengkapnya ....

Formatting and Styling Text in CSS

Posted by Unknown Kamis, 14 November 2013 0 komentar
Text indention [text-indent]
The property text-indent allows you to add an elegant touch to text paragraphs by applying an indent to the first line of the paragraph.
 
p {
text-indent: 10px;
}
Text alignment [text-align]
The CSS property text-align corresponds to the attribute align used in old versions of HTML. Text can either be aligned to the left, to the right or centred. In addition to this, the value justify will stretch each line so that both the right and left margins are straight.
 
p {
text-align: left;
}
h1{
text-align: right;
}
h2{
text-align: center;
}
b {
text-align: justify;
}
Text decoration [text-decoration]
The property text-decoration makes it is possible to add different "decorations" or "effects" to text. Some properties are underline, overline, line-through.
 
h1 {
text-decoration: underline;
}

h2 {
text-decoration: overline;
}

h3 {
text-decoration: line-through;
}

Letter space [letter-spacing]
The spacing between text characters can be specified using the property letter-spacing. The value of the property is simply the desired width.
 
h1 {
letter-spacing: 8px;
}

p {
letter-spacing: 5px;
}

Text transformation [text-transform]
The text-transform property controls the capitalization of a text.
  • capitalize
    Capitalizes the first letter of each word. For example: "angel mark" will be "Angel Mark".
  • uppercase
    Converts all letters to uppercase. For example: "angel mark" will be "ANGEL MARK".
  • lowercase
    Converts all letters to lowercase. For example: "ANGEL MARK" will be "angel mark".
  • none
    No transformations - the text is presented as it appears in the HTML code.
 
h1 {
text-transform: uppercase;
}

li {
text-transform: capitalize;
}

Baca Selengkapnya ....

Transferring user to new web page automatically

Posted by Unknown 0 komentar
 
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=http://eazyprogramming.blogspot.in/">
Use the code above inside your head tag and your web page will be redirected to "http://eazyprogramming.blogspot.in/" within 2 seconds.
Change the value of CONTENT="2" to some other integer to decrease or increase the delay of redirection of webpage.If "0" is given the change will be seen immediately.

Baca Selengkapnya ....

Special Effects in HTML - Marquee

Posted by Unknown Kamis, 24 Oktober 2013 0 komentar
If you want your text to move with in the screen, use the tag  <marquee>The text in between the tags will move horizontally.

<marquee bgcolor=pink> will give background color to marquee texts. 

<marquee bgcolor=orange width=100 height=20> will set height and width for marquee text.

<marquee bgcolor="orange" direction="right" height="20" width="100"> will set direction to marquee text.
<html>
<body>

This is a scrolling text
This is a scrolling text with background color
This is a scrolling text
This is a scrolling text
This is a scrolling text

</body>
</html>



Copy and download the code and try your self.

Baca Selengkapnya ....

Using Html Styles And Colors

Posted by Unknown Kamis, 26 September 2013 0 komentar
Using html Styles and Colors :
This post will help you to understand the use of div element and using styles and color elements perfectly.
Copy the code and try...
<html>
<body>







HTML STYLES AND COLORS





Text with space




Spannable
Text


</body>
</html>

Baca Selengkapnya ....

HTML Tags - Links

Posted by Unknown Rabu, 28 Agustus 2013 0 komentar
<a>
This
defines a hyperlink,which is used to link from one page to another.The most important attribute of the <a>element is the href attribute,which indicates the link's destination.

<base>
The <base> tag specifies the base URL/target for all relative URLs in a document.


 
<html>
<head>
<body>
Visit angel mark for more codes
</body>
</head>
</html>
 
<html>
<head>
<base href="http://eazyprogramming.blogspot.in/" >
</head>
<body>

blog
</body>
</html>

Baca Selengkapnya ....

HTML Basics

Posted by Unknown Sabtu, 24 Agustus 2013 0 komentar
HTML (Hypertext Markup Language) is the set of markup symbols or codes inserted in a file intended for display on a World Wide Web browser page. The markup tells the Web browser how to display a Web page's words and images for the user. Each individual markup code is referred to as an element or called a tag .
Some simple things to remember
  • The text between <html> and </html> describes the web page
  • The text between <body> and </body> is the visible page content


    HTML is a language for describing web pages.
  • HTML stands for Hyper Text Markup Language
  • HTML is a markup language
  • A markup language is a set of markup tags
  • The tags describe document content
  • HTML documents contain HTML tags and plain text
  • HTML documents are also called web pages

    HTML markup tags are usually called HTML tags
  • HTML tags are keywords (tag names) surrounded by angle brackets like <html>
  • HTML tags normally come in pairs like <b> and </b>
  • The first tag in a pair is the start tag, the second tag is the end tag
  • The end tag is written like the start tag, with a forward slash before the tag name
  • Start and end tags are also called opening tags and closing tags

Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android populer.