Front End, HTML/CSS, IT, Uncategorized

CSS Class and ID Simple Exercise with Solution


Using external CSS style sheet, create the following design:

  • Main Div as a container for all the following elements. Use #EEE as a background color: It contains:
  • First Div:
  • Add an id for the div.
  • Use an rgba background color. Green value is 9, red is 3, blue is 33, and the alpha value is 0.9.
  • Insert your full name using heading one.
  • Center your name.
  • Use “Comic Sans MS” font.
  • Use 30 pixels font size.
  • Use ff5722 hex value as a color for the heading.
  • Second Div:

Continue reading “CSS Class and ID Simple Exercise with Solution”

Front End, IT, javascript, Uncategorized

(15) AngularJs Filters Example (Uppercase, Lowercase, and Date)

In the following example:

We will display the students information in the following format:

  • First name: Uppercase
  • Last name: Uppercase
  • Gender: Uppercase
  • Spec: Lowercase
  • Level: Uppercase
  • Date of Birth (DOB): Date Format

You can refer to AngularJs Date Format Reference to now more about date format.




Front End, IT, javascript, Uncategorized

(13) AngularJs ng-repeat example (using module and controller)


We recommend you to review a simple example of ng-repeat directive before reading this post.

In the following example:

  • Using AngularJs controller and module, we create an array of students.
  • Each student has (first name, last name, gender, specialization, and level) information.
  • Then, we display the students information in an html page.
  • To display each student information, we use “ng-repeat” directive.
Front End, IT, javascript, Uncategorized

(12) AngularJs Two Way Data Binding Example (Student Information Form)

  • Using the AngularJs two way data binding, when you type the student information in the input field (Enter student information part), the value will immediately be displayed on the view part (View student information part).
  • Now, we don’t need any custom code to move data from the model to the view or from the view to the model.
  • ng-model directive can be used with the (input, select, and textarea) html tags.
Front End, IT, javascript, Uncategorized

(11) AngularJs ng-src directive

In the following example, we want to display the country properties using AngularJs Code:

  • Country Flag: Path of the flag image.
  • Country Name: Palestine
  • Country Capital: Jerusalem
  • Country Language: Arabic

1. Create the module, controller, and your data.

You can return to previous AngularJs posts to learn how to write AngularJs module and controller.
AngularJs Module and Controller

Continue reading “(11) AngularJs ng-src directive”