The href defines the document to which the link leads. This may be a web page in the same directory, a page somewhere else on the same server, a location within the current page, or a web page—or any another kind of document—stored on another server.
HTML & CSS
The id attribute provides a unique identifier for an element within the document. It may be used by an a element to create a hyperlink to this particular element.
HTML5 has two parsing modes or syntaxes: HTML and XML. The difference depends on whether the document is served with a Content-type: text/html header or a Content-type: application/xml+xhtml header.
Every programming language lets you add notes and other hints that help you understand what’s going on. Not all CSS is as understandable at first glance as, say, something like font-size.
This pseudo-class matches an element only if it’s the first child element of its parent element.
The frameset is used to group a collection of windows together, sometimes horizontally (using the rows attribute), sometimes vertically (using the cols attribute), or even a combination of horizontal and vertical arrangements.
The onmouseover attribute is one of the most commonly used event attributes. It captures the moment that a cursor crosses the boundary of an element, moving from outside to inside the element to which the attribute is applied.
The marquee element provides a way for browsers to render text that moves across the page without having to resort to JavaScript techniques.
The div element is currently the most common method for identifying the structural sections of a document and for laying out a web page using CSS.
The onclick event handler captures a click event from the users’ mouse button on the element to which the onclick attribute is applied.
Even if you've been coding CSS for a while, you probably still come across new stuff all the time. Here are 12 things you might not have been aware of.
em units in css are a powerful feature to have in your toolbox. This post introduces how they work with a practical use-case in the form of a demo.
Jon Cuthbert presents a simple approach to CSS class naming, building on methodologies like OOCSS, BEM, and others popular methods.
Read Introduction to CSS3 Font-Face Design and learn HTML & CSS with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Read CSS3: Text Styling and Other Basics and learn HTML & CSS with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Read Learn CSS3 Online and learn HTML & CSS with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Read A Look at the HTML5 Nav Element and learn HTML & CSS with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Read Setting CSS3 Border-Radius with Slash Syntax and learn with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Read Give Floats the Flick in CSS Layouts and learn with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.