Tuesday, 21 July 2015

Web Designing Tutorials(How to use CSS Class and ID Selectors)

Then all the H1 headings you used between the two BODY tags would have the text between the two <H1> tags coloured red.
In other words, to use your new HTML selector, you don’t have to add anything else to your HTML code. Just use the tag in the normal way.
However, Class and ID selectors are slightly different

Web Designing Tutorials(Where to put your styles)

STYLES can be inserted into three locations: Inline, Embedded, and External.

Inline Style Sheets

You can place a style tag directly in a HTML Tag. This is called Inline. Inline styles will override ones placed elsewhere. Here’s an example of an Inline style:
<H1 STYLE = ‘Color: Red’>My Heading</H1>
To place a style in a HTML tag, do the following:

Web Designing Tutorials(Cascading Style Sheet Rules)

We’ve produced a video to go with this lesson. It’s recommended that you read the text below as well, though. The video is here:
A Cascading Stylesheet rule tells the browser what the HTML looks like, and what it should do. A rule can dictate what just one HTML tag should look like, or you can construct your own rule to be applied as and where you want it.
For example, a rule can be set up that tells the browser to format every <P> tag so that its first line is indented. Or you could construct your own paragraph rule, and just apply the style to certain paragraphs, not all paragraphs.
There are three parts to a Rule: The Selector, the Property, and the Value.

Web Designing Tutorials(An Introduction to Cascading Style Sheets)

HTML was not intended to be a graphic design tool. It was set up as a simple way to display text in a browser, rather like a word processor displays text on a page. Tags were added over the years in order to add a bit of colour and life into the basic white page (actually, grey at first). So along came things like images, tables, frames, and forms. These could all be presented on the page using straight HTML code.
Web designers clamoured for a better way to present their work on a web page. Plain HTML just wasn’t enough. After all, with HTML, in order to get text or an image exactly where you want it, you have to resort to complicated tables to force the alignment. And suppose you want colour behind a single paragraph of text, and not have to colour the entire page? Very tricky with straight HTML. And what about hyperlinks? Is there any way, with HTML, that we can turn the underline on and off?
These questions, and many more, were finally addressed by the introduction of Cascading Stylesheets. A Style is, basically, just another way to manipulate elements on a page, in order to bring a spark of life into your web design.

Web Designing Tutorials(HTML Lists )

You can insert a bulleted list onto your page with HTML. There are two types of lists to choose from: Ordered List and Unordered. An Ordered list is one that uses number, letters, roman numerals, or a combination. Like this:
An HTML Ordered Lists

Bold and Italics(Web Design)

Two more tags that come in useful are the Bold and Italic tags. They are quite easy to use. Here are the Bold tags:
<B> </B>
And here are the Italic tags:
<i> </i>
The text you want to change goes between the two tags:
<B> … Rest of Hamlet’s Soliloquy goes here</B>
<i> … Rest of Hamlet’s Soliloquy goes here</i>
If you want Bold and Italic text then you can nest the two:
<B><i> … Rest of Hamlet’s Soliloquy goes here</i></B>

Paragraph and BR breaks(Web Design)

If you’ve ever used a word processor like Microsoft Word then you know that to start a new paragraph all you need to do is to hit the Enter key on your keyboard. The cursor will then move down, ready for you to start typing. In HTML, however, you can’t do this. If you want to start a new paragraph, you have to use the P tags.
To try it out, add the following just below your Heading (You can use your own text, though, rather than type out the Hamlet soliloquy):
<P>To be, or not to be: that is the question: Whether ’tis nobler in the mind to suffer the slings and arrows of outrageous fortune, or to take arms against a sea of troubles, and by opposing end them? </P>
<P>To die: to sleep; no more; and by a sleep to say we end the heart-ache and the thousand natural shocks that flesh is heir to, ’tis a consummation devoutly to be wish’d.</P>
When you’ve finished, your HTML code should look like this: (Don’t worry about the indenting, though. We did ours just so it would look nice in this book. Only one press of the spacebar is recognised in HTML, everything else is ignored, including indents and carriage returns.)