Powered by Tech-Attacks
Showing posts with label CSS - Cascading Style Sheets. Show all posts
Showing posts with label CSS - Cascading Style Sheets. Show all posts

How to Use Character Entities in CSS and HTML and JavaScript

Sometimes, when using scripts, we must write special characters like accents by using a special set of codes called character entities, however these don't always look good or we get a question mark or other strange symbols. Usually, this is solved if the character encoding is done right but the logic may not always work.

In Blogger, special characters most of the time appear correctly, but when it is about other services, like external files, things can get complicated.

For example, this usually looks good and when you click script the below code, you should see the letters in the right way:
alert(" á é í ó ú ☺ ✛ ❤ ");

Basics of CSS - Cascading Style Sheets - Introduction to CSS with example

CSS is the acronym for: ‘Cascading Style Sheets’.
CSS is an extension to basic HTML that allows you to style your web pages
in other words we can say
CSS stands for Cascading Style Sheets
Styles

It defines how to display HTML elements
Styles were added to HTML 4.0 to solve a problem
External Style Sheets can save a lot of work
External Style Sheets are stored in CSS files.


Before you continue you should have a basic understanding of the following HTML
If you want to learn HTML Basics first then
Click Here for -> HTML Basics - HTML Introduction Different versions of HTML.
Click Here for -> Introduction to HTML Tags, Attributes and Elements - HTML "Hello World" Program.