Articles tagged with “html”
- Choosing the Best Title Separators
- While writing my previous article on creating the perfect WordPress title tags, I deliberately avoided discussing the use of separators in titles. I feel that the topic is worthy of its own article, enabling a more thorough exploration of the details. Title separators are the symbols, punctuation, and other characters used to distinguish between various parts of the ...
- Quick Reminder About Downlevel-Revealed Conditional Comments..
- NOTE: This entire article amounts to nothing more than an in-depth learning experience. After writing the article, I realized (painfully) that either format for the second iteration of the downlevel-revealed comment for XHTML is perfectly fine and displays no ill effects or unwanted characters in any browser. Thus, this article is essentially useless, but I am posting it anyway because I just hate deleting several hours of hard work..
As more and more people ...
- Absolute Horizontal and Vertical Centering via CSS
- Recently, a reader named Max encountered some scrolling issues while implementing our absolutely centered layout technique. Of course, by “absolutely centered” we are referring to content that remains positioned dead-center regardless of how the browser is resized. After noticing the scrollbar deficiency, Max kindly dropped a comment to explain the issue:
[...] the div solution works well, only one problem maybe somebody can help:...
- Bare-Bones HTML/XHTML Document Templates
- In this post I have assembled a concise collection of conforming, bare-bones document templates for the following doctypes:
Document Templates
XHTML 1.0
XHTML 1.0 Strict
XHTML 1.0 Transitional
XHTML 1.0 Frameset
XHTML Basic 1.0
XHTML 1.1
XHTML 1.1
XHTML Basic 1.1
HTML 4.01
...
- Rethinking Structural Design with New Elements in HTML 5
- [ Keywords: html, design, markup, structure, elements, header, footer, article, section, header, nav ]
HTML 5, also known as Web Applications 1.0, provides new markup elements that will change the way you design your web pages. The new elements replace commonly used divisions in web documents, facilitating an even greater degree of separation between structure (HTML) and presentation (...
- Unicode Character Reference for Bloggers
- [ Keywords: unicode, utf-8, encoding, character, reference, quote, copyright, bullet ]
Virtually every article written here at Perishable Press requires at least one or two “special” characters. Some of these characters — such as quotation marks, hyphens, and dashes — are very common, while others — such as the copyright symbol, bullet, and arrow — happen less frequently. As a blogger, I find myself repeatedly using a select ...
- Wrapping Your Head around Downlevel Conditional Comments
- [ Keywords: downlevel, conditional, comments, hidden, revealed, positive, negative, ie ]
If you think you understand the logic behind Microsoft’s downlevel conditional comments, you are sadly mistaken. Sure, they seem simple enough on the surface, but as you really try to wrap your head around how and why they work, the subtle complexities of downlevel conditional comments may leave you dazed and confused...
In our ...
- The Friendliest Link Targets in the Neighborhood
- [ Keywords: link, target, blank, replace, self, parent, top ]
The target attribute for anchor elements () specifies the location in which the referenced document should load. For example, to open a link in a new window, we would use a target value of _blank. Although this is a commonly employed technique, the target attribute has ...
- Embed Flash and Video via the object Tag
- Embed Windows Media Player via the object tag
Here is the general format for including .wmv files in web pages:
Embed Windows Media Player via object and classid
Here is the general format for including .wmv files in web pages using classid:
...
- Maximum and Minimum Height and Width in Internet Explorer
- Behold the seventh wonder of the virtual world: max/min-height and max/min-width properties are possible in Internet Explorer! Indeed, by taking advantage of IE’s proprietary CSS attribute, expression, you too can whip IE widths and heights into desirable proportions. The CSS expression attribute enables JavaScript commands to be executed within Internet Explorer. JavaScript via CSS? Thanks, Microsoft!
Why is this so great? Well, because in other, standards-compliant browsers, max/min-height and max/min-width properties are easily accomplished with this simple bit ...
- Embed External Content via iframe and div
- By using an within a , it is possible to include external web content in most any web document. This method serves as an excellent alternative to actual frames, which are not as flexible and definitely not as popular. Indeed, with CSS, the placement, sizing, and styling of div’s provides endless possibilities for embedding external or even internal web content into pages that would otherwise require the use of frames, Flash, or JavaScript. This method works ...
- Automatic Language Translation Methods
- As you may have noticed, Perishable Press recently added automatic language translation to each of our articles. The free, automatic translations are available as a series of image links (via corresponding country flag icons) next to each article’s individual post view. We have found that providing this free service is important as many of our visitors come from countries other than the United States, and therefore may be unable to read our articles as presented in the ...
- Auto-Focus Form Elements with JavaScript
- After digging through the WordPress source code, I stumbled upon this very useful JavaScript method for auto-focusing form elements upon page load. Here is the JavaScript code (place within the document head):
function formfocus() {
document.getElementById('element').focus();
}
window.onload = formfocus;
...and corresponding (X)HTML markup (abbreviated for clarity):
In this example, the first form element ...
- Exploring the (X)HTML Link Element
- Most Web authors are familiar with the <link> element included within the <head> element of many (X)HTML documents. The <link> element enables authors to associate external resources to the (X)HTML document. <link> element references include various types of metadata, navigation, and styling information. This brief post provides examples of these and other important uses of the (X)HTML <link> element....
- One Link to Open Them All
- Welcome to Perishable Press! This article explains several methods for opening multiple frames with a single link. For more excellent (X)HTML information, check out the (X)HTML tag archive. If you like what you see, I encourage you to subscribe to Perishable Press for a periodic dose of online ...
- Absolutely Centered Layout
- Absolute Centering with CSS & (X)HTML
Designing an absolutely centered layout involves centering a division both horizontally and vertically. When this is done, the centered division (or other element) is centered according to the browser window. To accomplish this, use this (X)HTML:
And employ this CSS (commented with explanations):
body {
background-color: #333; /* cosmetic */
margin: 0px; /* required */
}
div#wrapper {
background-color: red; /* cosmetic */
height: 0px; /* set to taste */
/* required */
position: absolute;
overflow: visible;
display: block;
width: 100%;
left: ...
- IE Scrollbar Colors
- Changing the color of scrollbars for Internet Explorer may very well be the oldest trick in the book. In fact, this post exists mostly for the sake of prosperity, as we here at Perishable Press strive to eliminate our entire offline library of website design notes by transferring them to the World Wide Web. Although library conversion requires time, patience, and determination, changing the color of IE scrollbars is relatively simple. Simply associate these CSS rules to ...
- XHTML Document Header Resource
- This XHTML header tags resource is a work in progress, perpetually expanding and evolving as new information is obtained, explored, and integrated. Hopefully, you will find it useful in some way. Even better, perhaps you will share any complimentary or critical information concerning the contents of this article.
Table of Contents
Important Information
XML Declaration
The !DOCTYPE
The html tag
...
- Optimize Convoluted Code via JavaScript
- Search engines loathe crawling through convoluted lines of code. Oceans of complex JavaScript scare away the priceless indexing and archiving efforts of most major search engines, which will generally abort a crawl upon encountering such mess. The good news is that search engines actually do not deploy JavaScript, so it is possible to use JavaScript to hide those miles of messy code by using the fundamental document.write function.
Place this function in an external JavaScript file, “navmenu.js”:
function navMenu() ...
- HTML Frames Notes Plus
- If you think that nobody uses frames anymore, think again. I personally know of one person who threw down some tuf HTML frame action for a personal site. So, in the interest of prosperity, we are hereby establishing this post as our official dumping ground for all HTML frame-related garbage.
Break your pages out of someone else’s frames
We begin our journey with a totally sick JavaScript method for breaking pages out of the illegitimate frames of some ineffectually ...
- Accessibility Notes Plus
- Just a few useful accessibility notes..
Add accesskey attributes to important list items, content areas, and any other key areas of the document.
Use alphanumeric characters as accesskey values, as in this example:
hhome
mmenu
ssearch
When an accesskey attribute is present within a link tag, pressing alt+letter on the keyboard is equivalent to double-clicking that link. Generally speaking, the presence of ...
- Stylish Deleted Text
- Fashion stylish deleted text in XHTML via the über obscure del tag.
Code example:
Terminate me.
Live example:
Terminate me.
- Obscure XHTML Tags
- Well, maybe not that obscure..
-- Preformatted character data
-- Renders as emphasized text
-- Renders as strong emphasized text
-- Renders font as teletype or monospace
-- Defines a definition term
-- Defines computer code text
-- Defines sample computer code
-- Defines keyboard text
-- Defines a variable
-- Defines a citation
-- XHTML Transitional only
-- Indicates deleted text
-- Indicates inserted text
-- Defines a definition list
-- Defines a definition term
-- ...
- Marquee Madness
- For reference purposes..
Marquee Madness
- Pipe Symbols
- Broken pipe symbol » ¦ [ ¦ ]
Unbroken pipe symbol » | [ | ]