<< < 10 11 12 13 14 15 16 17 > >>   Sort: Date

Floating an Image to the Right Side in HTML
How To Float an Image to the Right Side? If you want to float an image to the right side of the paragraph instead of inline within a text line, you have to use the CSS property "float" to do this. The "float" property takes two values: "float: left" - Specifies that the image to be floated to the le...
2017-03-27, 246👍, 0💬

Converting Strings to Upper/Lower Case in PHP
How To Convert Strings to Upper or Lower Cases? Converting strings to upper or lower cases are easy. Just use strtoupper() or strtolower() functions. Here is a PHP script on how to use them: &lt;?php $string = "PHP string functions are easy to use."; $lower = strtolower($string); $upper = strtou...
2016-10-13, 246👍, 0💬

What Are HTML List Elements
What Are HTML List Elements? HTML offers 3 list elements: "ol" - Ordered List: A list of items with leading sequential numbers. "ul" - Unordered List: A list of items with leading bullets. "dl" - Definition List: A list of items with leading terms. Here are some generic rules about list elements: Li...
2017-06-16, 245👍, 0💬

Applying UUEncode to a String in PHP
How To Apply UUEncode to a String? UUEncode (Unix-to-Unix Encoding) is a simple algorithm to convert a string of any characters into a string of printable characters. UUEncode is reversible. The reverse algorithm is called UUDecode. PHP offeres two functions for you to UUEncode or UUDecode a string:...
2016-10-13, 245👍, 0💬

HTML Drop Down List 'option' Tag/Element
What Is an "option" Tag/Element? A "option" element is an inline element that you can use to define one option of a dropdown input field in a form. Here are basic rules about a "option" element: "option" elements are inline elements. "option" elements can only be used as sub-elements of "select" ele...
2017-04-01, 243👍, 0💬

Replacing a Substring in PHP
How To Replace a Substring in a Given String? If you know the position of a substring in a given string, you can replace that substring by another string by using the substr_replace() function. Here is a PHP script on how to use substr_replace(): &lt;?php $string = "Warning: System will shutdown...
2016-10-13, 242👍, 0💬

Finding a Substring in PHP
How to Find a Substring from a Given String? To find a substring in a given string, you can use the strpos() function. If you call strpos($haystack, $needle), it will try to find the position of the first occurrence of the $needle string in the $haystack string. If found, it will return a non-negati...
2016-10-13, 240👍, 0💬

HTML 'big' and 'small' Tags/Elements
What Are HTML "big" and "small" Tags/Elements? "big" and "small" elements are inline elements that you can use to specify text to be displayed in bigger and smaller font sizes respectively. Here are basic rules about "big" and "small" elements: "big" and "small" elements are inline elements. "big" a...
2017-07-21, 239👍, 0💬

The 'checked' Attribute of some HTML Elements
What Is Wrong with My "checked" Attribute Values? Attribute "checked" is an optional attribute for HTML element "input". In XHTML specification, attribute "checked" has only one predefined value: "checked". However, in HTML specification, attribute "checked" requires no value. If you are converting ...
2017-07-30, 238👍, 0💬

HTML Elements with EMPTY Contents
What Are the HTML Elements Defined with EMPTY Contents? The following HTML elements are defined to use the EMPTY content model: &lt;meta ... /&gt; - Element to provide meta data to the document. &lt;link ... /&gt; - Element to provide a link to a CSS file. &lt;br/&gt; - Eleme...
2017-07-30, 238👍, 0💬

Converting Leading Characters to Upper Case in PHP
How To Convert Leading Characters to Upper Case? If you are processing an article, you may want to capitalize the first character of a sentence by using the ucfirst() function. You may also want to capitalize the first character of every words for the article title by using the ucwords() function. H...
2016-10-13, 238👍, 0💬

Using HTML 'textarea' Input Fields
What Is a "textarea" Tag/Element? A "textarea" element is an inline element that you can use to define a large input area in a form. Here are basic rules about a "textarea" element: "textarea" elements are inline elements. "textarea" elements can only be used as sub-elements of "form" elements. A "t...
2017-04-04, 236👍, 0💬

Can Two HTML Forms Be Nested
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two forms directly. XHTML schema does not allow that. Yes. You can nest two forms indirectly. See the tutorial example below. No. Two nested form do not work as two forms. Browsers will treat them as one...
2017-04-01, 233👍, 0💬

Converting Character to ASCII Value in PHP
How To Convert a Character to an ASCII Value? If you want to convert characters to ASCII values, you can use the ord() function, which takes the first charcter of the specified string, and returns its ASCII value in decimal format. ord() complements chr(). Here is a PHP script on how to use ord(): &...
2016-10-13, 232👍, 0💬

Reformatting a Paragraph of Text in PHP
How To Reformat a Paragraph of Text? You can wordwrap() reformat a paragraph of text by wrapping lines with a fixed length. Here is a PHP script on how to use wordwrap(): &lt;?php $string = "TRADING ON MARGIN POSES ADDITIONAL RISKS AND IS NOT SUITABLE FOR ALL INVESTORS. A COMPLETE LIST OF THE RI...
2016-10-13, 231👍, 0💬

HTML 'textarea' Element Attributes
What Are the Attributes of a "textarea" Element? There are several commonly used attributes for a "textarea" element: rows="n" - Required attribute. Used to specify the number of rows of the text input area. cols="n" - Required attribute. Used to specify the number of columns of the text input area....
2017-04-04, 230👍, 0💬

Generating Character from ASCII Value in PHP
How To Generate a Character from an ASCII Value? If you want to generate characters from ASCII values, you can use the chr() function. chr() takes the ASCII value in decimal format and returns the character represented by the ASCII value. chr() complements ord(). Here is a PHP script on how to use c...
2016-10-13, 228👍, 0💬

HTML Element Contents
What Is the XHTML Element Content? The content of an HTML element is everything you entered between the opening tag and the closing tag of the element. Here are some good examples of XHTML element contents: &lt;!-- An empty table cell --&gt; &lt;td&gt;&lt;/td& amp;gt;&lt;!-- ...
2017-07-30, 227👍, 0💬

HTML Element Content Models
What Are the HTML Element Content Models? There are 4 content models defined for HTML elements: 1. EMPTY - No content. Nothing between the opening tag and the closing tag. For example: &lt;br/&gt; - "br" element has no content. &lt;br&gt;&lt;/br& amp;gt;- Same as above. &lt;m...
2017-07-30, 218👍, 0💬

"link" - Link Object Files (*.obj)
How to use "link" command tool to link objet files? If you have object files previously compiled by your or others, you can follow this tutorial to link them into executable files: 1. Create a simple C++ program, Hello.cpp, with a text editor: #include &lt;iostream&gt; using namespace std; v...
2017-08-21, 214👍, 0💬

"Hello.c" - Compile and Run C Program
How to use Visual Studio command tools to compile and run a C program? If you want to compile and run a standard C program with Visual Studio command tools, you can follow this tutorial: 1. Create a simple C program, Hello.c, with a text editor: #include &lt;stdio.h&gt; void main() { printf(...
2017-08-21, 213👍, 0💬

Convert XML to JSON with PHP
How to convert an XML document to a JSON text string with PHP language? Currently, there is no built-in function or any standard extension that you can use to convert an XML document to a JSON text string. But you can use the following PHP example, xml_to_json_converter.php, to convert an XML docume...
2017-08-17, 201👍, 0💬

What Is Visual Studio Command Prompt
What is Visual Studio Command Prompt? Visual Studio Command Prompt is command line window with all required environment variables defined to run Visual Studio command line tools. Visual Studio command line tools includes: cl (the compiler) - To compile and link source code files into apps, libraries...
2017-08-21, 200👍, 0💬

WPF App with VC# and XAML in Visual Studio 2017
How to build a WPF application with VC# and XAML in Visual Studio 2017? If you want to build a WPF (Windows Presentation Foundation) application with VC# and XAML in Visual Studio 2017, you can follow this tutorial 1. Start Visual Studio 2017 with .NET development environment. 2. Click "File &gt...
2017-08-13, 199👍, 0💬

<< < 10 11 12 13 14 15 16 17 > >>   Sort: Date