Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Twelve Dynamic HTML Lessons : Page 8

From Cascading Style Sheets to higlighted text to toggling images on and off the page, here are twelve fancy things that you can learn to do today in DHMTL.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

Spanning the Web
Short lesson this time. Really short.

Ok, remember our friend <div> that we've been using all along? Well he's got a sister named <span> who works just like him, except she doesn't force new lines. So you can use <span> inline in your text to assign styles and ID's to different parts of your documents that you can then manipulate.

So, suppose you want to set a highlight on just one word in a paragraph, like we just did. Instead of setting a font tag, which really isn't what we needed, just use <span></span> to mark the section. This also means that once you've marked a section you can perform many of the same DHTML and CSS style tricks you've learned.

That's it for this lesson, short and sweet. The next lesson will provide you with some useful JavaScript.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date