World Wide Web Technology

CSS: Set width on inline elements with inline-block

With display:block elements we can freely set the hard width of them. However for inline elements, width:200px simply won’t work at all. One approach is to float the element which usually causes other problems and isn’t handy at all. So how to set width to inline elements without floating them in CSS? The answer is …

CSS: Set width on inline elements with inline-block Read More »

CSS: Curved or Rounded Corner Boxes and Images Using border-radius

In CSS3, border-radius is the rule you would use to achieve curved corner borderlines, but for now, IE and Opera doesn’t support this trick. With a little script help in the form of a .htc, you can make a cross browser compatible rounded corner box such as a <div> or an <img>. -moz-border-radius: 9px; -webkit-border-radius: …

CSS: Curved or Rounded Corner Boxes and Images Using border-radius Read More »

How to make IE6 to style HTML 5 tags?

HTML 5 comes with a bunch of new tags that IE6 cries that it doesn’t know them, thus refusing to style them according to the CSS. To baby-sit this stupid browser one last time, adding these JavaScript lines in the <head> of your web page that utilizes HTML 5 tags: <script> document.createElement(‘header’); document.createElement(‘nav’); document.createElement(‘section’); document.createElement(‘article’); …

How to make IE6 to style HTML 5 tags? Read More »

CSS: Rotate Text / Image Elements by 90, 180 or 270 Degrees

As a quick digest of this article by Jonathan. You can literally rotate any HTML element by a certain degree with CSS, be it text or image or something else. After testing across a few modern browsers, the only one that’s not supporting this rotation technique is Opera. The CSS rules you need for a …

CSS: Rotate Text / Image Elements by 90, 180 or 270 Degrees Read More »

Best CSS Books to Learn CSS Web Design

While HTML is the concrete of all web pages and websites, CSS is the spirit. It specifies the aesthetic aspect of all the web pages by design through presentation, conveying the ideas and sensations by visual languages. The first class of all web designers start with CSS. These are some of the best CSS books …

Best CSS Books to Learn CSS Web Design Read More »

Best Books of HTML and XHTML to Learn How to Create Web Pages / Sites with HTML and CSS

HTML is the language of the Web and all websites are written in HTML (XHTML). To learn creating website, the first thing you will need to learn is HTML. Period. Some of the selected books below are for beginners and some are for intermediary coders to consolidate your knowledge of HTML and CSS and practice …

Best Books of HTML and XHTML to Learn How to Create Web Pages / Sites with HTML and CSS Read More »

HTML Definition: What is HTML Defined – What does HTML stand for?

HTML is the abbreviation of Hyper Text Markup Language invented by Tim Berners-Lee, who’s also been called the father of the Web. HTML is what websites are written in. All websites on the Web are written in HTML that your browsers and email software recognize. It’s a way of representing, organizing and containing information as …

HTML Definition: What is HTML Defined – What does HTML stand for? Read More »

CSS Definition: What is CSS Defined and Explained

CSS standards for Cascading Style Sheets. It’s a descriptive programming language that specifies how web pages look like in appearance and style. Take a book for example. The texts in the book are content, just like the texts you are reading right now in a web page or HTML page. The publishers of the book …

CSS Definition: What is CSS Defined and Explained Read More »

Apache, PHP: Get Client Browser HTTP Request Headers Information

Every HTTP requests made by any client web browsers to an Apache should conform to the HTTP specification and provide certain set of headers information for the server to parse and understand. Useful headers information that can be retrieved in PHP by function apache_request_headers() includes: User-Agent: Operating System, browser and its version number, … Accept-Language: …

Apache, PHP: Get Client Browser HTTP Request Headers Information Read More »

PHP: Difference between htmlspecialchars() and htmlentities() Functions

2 functions exist in PHP to convert special characters to HTML entities (a kind of representations defined as in XML for web client such as browsers to recognize and render as special characters such as a spade: â™ , which can be represented as &#9824; in HTML), namely htmlspecialchars() and htmlentities(). But what’s the difference? The …

PHP: Difference between htmlspecialchars() and htmlentities() Functions Read More »

PHP: Send HTML Email (mail)

As we all know the simplest approach to create an email message and send it out is to use the php mail() function. A typical usage example would be: mail(‘[email protected]’, ‘Subject Title’, ‘Message body goes here.’); However, as the mail() function sends emails in text/plain mime type by default, if you include HTML code in …

PHP: Send HTML Email (mail) Read More »

PHP cURL: Fetching URL and Sending Request with Cookies

One of the things the remote web server inspects is the client cookie to know about the requester. If you need cURL to simulate a user browser that sends cookie information to the web server, you need the following options: $c = curl_init(‘http://www.example.com/needs-cookies.php’); curl_setopt ($c, CURLOPT_COOKIE, ‘user=ellen; activity=swimming’); curl_setopt ($c, CURLOPT_RETURNTRANSFER, true); $page = curl_exec …

PHP cURL: Fetching URL and Sending Request with Cookies Read More »

PHP cURL: Making POST Request to URL

By default, all HTTP requests made out by cURL is GET requests that simply fetches the URL and don’t submit any more POST variables. However, if you need to fetch and retrieve URL by the POST method with cURL, you need the snippet below: $url = ‘http://www.example.com/submit.php’; // The submitted form data, encoded as query-string-style …

PHP cURL: Making POST Request to URL Read More »

Scroll to Top