This paper proposes a human interface device framework for interactive applications including educational contents in ubiquitous environments. Recently, mobile and portable devices such as iPad, iPhone and Android tablet PC have become common and popular. We should use these devices for providing learners with more attractive educational contents supporting various intuitive interfaces. Using the proposed framework, it becomes possible to easily develop such educational contents. Furthermore, the combined use of the framework with WebIB, which is a software development system for Web 3D contents, it also becomes possible to develop more attractive educational contents using 3D graphics that run on Web and Digital TV. To clarify the usefulness of the framework, this paper introduces interactive application examples including 3D educational contents available on Web and Digital TV actually developed using the proposed framework and WebIB.