answersLogoWhite

0

CSS Cascading Style Sheets

A widely used style sheet language, the Cascading Style Sheets (CSS) describes the layout of HTML, XHTML, and XML documents. CSS separates the presentation from the content of the document to provide accessibility and flexibility.

423 Questions

Who invented the web software Cascading Style Sheet?

CSS was originally invented by the World Wide Web Consortium to make it easier for web developers to input information about the font size, color, family, etc. and use the same information on more than one page

Are Cascading style sheets the files inserted into an HTML document that control the appearance of the web pages including layout colors and fonts?

CSS files, which stands for Cascading Style Sheets. CSS can be set up as a separate file which can be referenced by a webpage or you can have CSS directly in a HTML document. HTML itself can also be used to control fonts and colours.

How you can create a rounded border on HTML Table?

You can use the code from below example:

<TABLE BORDER=5 BORDERCOLOR=BLUE>

<TR>

<TD>Row1Column1</TD>

<TD>Row1Column2</TD>

</TR>

<TR>

<TD>Row2Column1</TD>

<TD>Row2Column2</TD>

</TR>

</TABLE>

What does serif and sans-serif mean?

Serif and sans-serif refer to styles of fonts. A serif is a stylistic embellishment -- or fancy piece -- so serif fonts are fonts that have extra pieces while sans-serif (sans meaning without) are fonts that don't.

To see examples of the difference, you can take a look at the fonts on your computer, Times New Roman (with the tiny lines on the top and bottom of the upper-case "i" so that it doesn't look like an lower-case "L") is a serif font, while Arial is a sans-serif font.

Because the brain reads serif fonts more quickly, most novels are written in serif fonts and textbooks in sans-serif.

How do you make a list that lists its items with squares in HTML?

<li>Enter the text that you want to list here</li>

<li>Enter the next item that you want to list here</li>

And so on until all the items you want to list are listed.

What is an anchor in a webpage?

The HTML anchor tag is a tag that looks like this:

It's most often used to produce links using the href attribute, eg

http://wiki.answers.com">Example.com!

The text inside the tag (or an image if you'd like) is what becomes "clickable." By default, underlined and blue in most browsers.

Difference between in-line and cascading style sheet?

Internal is normally called embedded CSS. It is place between the style tags which are place between the head tags on an HTML page.

Inline CSS uses the style="" attribute and styles the tags directly. It will override any previous CSS styling.

What are inline styles embedded styles and external style sheets?

While inline styles in web design uses the same properties that can be found in style sheets, in the way you are meaning style sheets no, inline styles are not style sheets. Inline styles are used when you are needing the use a specific rule once on one page or if you are needing to use a specific rule in place of a rule that would normally get used from an internal or external style sheet. In the cascading priority of things inline styles override internal style sheet rules which override external style sheet rules.

How do you create a link for a css file?

You can create or edit a CSS file by saving a .txt document as .css.

You can type or edit CSS in your favourite word editor. There are many free text editors on the www that will help to achieve this task

A CSS editor can be a notepad, wordpad or any other simple text editor, professional designers use advanced code editors made just for web programming.

Once the changes are made to the CSS file, simply press save.

Make sure when making/editing a CSS file to use a pure text editor and that the file contains NO HTML coding tags. See:

CSS Tutorials might help you.

How do you add a background color for all h1 elements?

h1 {

color: #f00;

}

Yields red H1 headers in shorthand for #ff0000 that is used in HTML. This will work in all cases unless an ID or a class overrides it.

What is the correct place to refer to an external style sheet in an HTML document?

In this example, I'm using a filename titled style.css located in the CSS folder:

<link href="css/style.css" rel="stylesheet" type="text/css" />

Insert this line inside your <head> tag. It then refers to an external stylesheet.

What is CSS ID?

An ID in CSS is identified by the octothorpe symbol (#). An ID in CSS references the ID attribute in HTML and they should have the same name. For example lets say I have the following code in my HTML:

<small id="copyright">Copyright &#169;2015 &#8212; David Trower. All Rights Reserved.</small>

Notice the id="copyright" on the <small> element? That is the ID. In CSS, if I want to stylize this element by referencing that ID I would use the following CSS code:

#copyright {

color: #9CBDDE;

}

Notice how what follows the octothorpe (#) symbol in the CSS code is the same as the value of the ID attribute in HTML (both are the word copyright). An ID is to be a unique identifier within a document. It should appear once, and only once, within a single document.

Write the XHTML and CSS code for an embedded style sheet that configures a background color of white and a text color of green?

The XHTML code to embed an external stylesheet would look like:

<link rel="stylesheet" href="style.css" type="text/css" />

The CSS code would need to be placed in a separate document and would need to be saved as style.css. The CSS code need to make the background white and the text green would look like:

body {

background-color: #ffffff;

text-color: #008000;

}

This code will make your content display in green text against a white background.

Where can you find free css templates?

Online; just type "css templates" into your favourite search engine.

What are the advantages and disadvantages of CSS?

The advantages of using CSS include: more precise formatting, separation of HTML content from appearance, saves time, easier site maintenance, and web accessibility. Some disadvantages to using CSS include, inconsistent browser support and large initial time commitment. In all honesty, though in terms of web design, for long term use, for expandability, and for ease of making changes as well as being respected by fellow web designers you should use CSS. The advantages greatly overshadow the disadvantages.

What are the Differences between style sheet and templates?

Templates can be composed of HTML/XHTML files, images, and a CSS file. They all work together to make a site, but the CSS has the control over how it looks.

A CSS file by itself is just that. A CSS file of no use until it is linked to bt web pages to use its styling properties.

How do you make the text bold in CSS?

Use the text-transform property.

style.css (Example)

body

{text-transform: uppercase;}

This example makes any text in the tag uppercase (In the browser, of course. Not the source code).


To change text to just the H1 tag:

h1{

text-transform: uppercase;

}

What is more complicated CSS or javascript?

Javascript is much harder. HTML doesn't have logic in it, it's more just a way to organize data. Javascript is a language with logic and many different levels of understanding. In web programming you use html to layout the page, make boxes, add images, etc. Javascript and CSS is then used when your page needs to get smarter and look better.

It depends on what your are trying to do. Generally, JavaScript is more difficult than HTML.

How do you create forms using ASP and HTML?

You can use a WYSIWYG html editor to drag and drop html form controls and program their function. An html editor such as Microsoft Front Page or Adobe DreamWeaver can do these tasks.

When is external css used?

It is sipmply a link to a stylesheet that is separate from the HTML document and contained in the Head element of the document. This references something I did:

<link href="crigbypubs.css" type="text/css" rel="stylesheet" media="screen"/>

<link href="print.css" type="text/css" rel="stylesheet" media="print"/>

done in XHTML

Which is the correct CSS syntax?

There are many places to learn the correct syntactical parts of the standard which is now CSS 2.1, and CSS 3.0 in the wings. Whole books are dedicated to this subject. I have one that site that uses nothing but version 1.0, but they will degrade gracefully down to Internet Explorer 3, Netscape Navigator 2.02 and pre-Opera 3.6 Links are attached.

What is a CSS property?

CSS Property

CSS Properties define what aspect of the selector will be changed or styled. (ie. In this example, Color is the CSS Property that will be changed to black: "color:black;".)

What is disadvantage of external style?

It will be overridden by inline and internal stylesheets. Generally in most circumstances, a well written external one will load faster unless you complicate too much. I usually use two stylesheets on pages; one with the basic declarations and the other with specialized declarations.

What are difference css 2.0 and css 3.0?

CSS 3 contains the old CSS specifications and new modules has been added.

Example of new modules:

  • Background and border styles
  • Box
  • Text effects
  • Transformations
  • Animations
  • Selectors