Freeland - Nigerians Home
Register Now For More Features

Join the forum, it's quick and easy

Freeland - Nigerians Home
Register Now For More Features
Latest topics
» Google Search Box code for Wapkiz, wapka and waphosts site
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:36 pm by Kunlex

» 50 Best Web Fonts To Use In 2022 wapkiz, wapka and waphosts
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:34 pm by Kunlex

» Wapkiz, wapka and waphosts body background image code
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:33 pm by Kunlex

» Wapkiz user var about or rank to show in blog
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:31 pm by Kunlex

» Pro Evolution Soccer 2016 (PES 2016)
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:23 pm by Kunlex

» Working redirection code for wapka, wapkiz, waphosts and others
Topics tagged under css on Freeland - Nigerians Home EmptyWed Mar 23, 2022 4:18 pm by Kunlex

» How to Replace the Xiaomi Mi Max Screen
Topics tagged under css on Freeland - Nigerians Home EmptyFri Jan 03, 2020 7:40 pm by Kunlex

» How to know if someone is online on Instagram?
Topics tagged under css on Freeland - Nigerians Home EmptyFri Jan 03, 2020 7:28 pm by Kunlex

» How to hide Instagram posts from certain followers?
Topics tagged under css on Freeland - Nigerians Home EmptyFri Jan 03, 2020 7:28 pm by Kunlex

» How to Replace the Redmi Note 3/Redmi Note 3 Pro Screen
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 1:11 pm by Kunlex

» Fresh Tutorial of iPhone 7 Plus Cracked Screen Refurbishing
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 1:10 pm by Kunlex

» iPhone Data Recovery from Dead Logic Board / Phone
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 1:09 pm by Kunlex

» Reason why phone hangs up itself?
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 1:07 pm by Kunlex

» How To stop people from tagging you without your approval On Instagram
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 5:27 am by Kunlex

» How to you unmute someone on Instagram in 2020?
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 5:24 am by Kunlex

» Difference between WordPress.com and WordPress.org
Topics tagged under css on Freeland - Nigerians Home EmptyThu Jan 02, 2020 5:21 am by Kunlex

» Aircraft: Why cabin lights are dimmed during takeoff and landing?
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 8:56 pm by Kunlex

» Aircraft: Why window shades are raised up during takeoff and landing?
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 8:54 pm by Kunlex

» Genuine Reasons Why Most Ladies End Up Single In Life
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 9:58 am by Kunlex

» Reasons Why Some Girls Are Still Single
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 9:55 am by Kunlex

» What Is <! Doctype> And Why is it necessary to use in HTML5?
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 7:54 am by Kunlex

» What is XML?
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 7:50 am by Kunlex

» What does parsing XML means?
Topics tagged under css on Freeland - Nigerians Home EmptyWed Jan 01, 2020 7:48 am by Kunlex

» Mr Real – Onigbese
Topics tagged under css on Freeland - Nigerians Home EmptyTue Dec 31, 2019 9:29 pm by Kunlex

» Top 20 Talented Upcoming Artistes To Watch-out For In 2020
Topics tagged under css on Freeland - Nigerians Home EmptyTue Dec 31, 2019 6:55 am by Kunlex

» How To Redirect Xtgem, Wapkiz, Wapelf From Subdomain To Domain
Topics tagged under css on Freeland - Nigerians Home EmptyTue Dec 31, 2019 5:32 am by Kunlex

» How to embed CSS in HTML?
Topics tagged under css on Freeland - Nigerians Home EmptyTue Dec 31, 2019 5:29 am by Kunlex

» How to link a CSS stylesheet to an HTML document using Notepad?
Topics tagged under css on Freeland - Nigerians Home EmptyTue Dec 31, 2019 5:21 am by Kunlex

» What is HTML CSS and JavaScript?
Topics tagged under css on Freeland - Nigerians Home EmptyMon Dec 30, 2019 10:22 pm by Kunlex

» Differences between HTML, CSS and JavaScript
Topics tagged under css on Freeland - Nigerians Home EmptyMon Dec 30, 2019 10:20 pm by Kunlex

The most tagged keywords

Forum

Current date/time is Sat Apr 27, 2024 7:42 pm

Search found 2 matches for CSS

How to embed CSS in HTML?

#CSS can be added to #HTML elements in 3 ways:•

Inline - by using the style attribute in HTML elements.

Internal - by using a <style> element in the <head> section.

External - by using an external CSS file.

Inline Styles:
An inline style may be used to apply a unique style for a single element.
To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.
The example below shows how to change the color and the left margin of a <h1> element:
Program:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;margin-left:30px;">This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Topics tagged under css on Freeland - Nigerians Home Main-qimg-00b33e30d945917ec641107dc8c2bd4c

Internal Styles Sheet:
An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head> section of an HTML page:
Program:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Topics tagged under css on Freeland - Nigerians Home Main-qimg-b5dc2dfa0f4d897fbc7510c485ed0cd9

External Styles Sheet:
With an external style sheet, you can change the look of an entire website by changing just one file!
Each page must include a reference to the external style sheet file inside the <link> element. The <link> element goes inside the <head> section:
Program:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Topics tagged under css on Freeland - Nigerians Home Main-qimg-4ce47727f8dd5e100d4a8315ebd99f90



Source
by Kunlex
on Tue Dec 31, 2019 5:29 am
 
Search in: Webmaster
Topic: How to embed CSS in HTML?
Replies: 0
Views: 192

Differences between HTML, CSS and JavaScript

HTML is used to create the structure of a website.
All the content, elements and images are placed in a webpage using #HTML, it is a building block of the website. It is a markup language.

CSS provides beauty to the website. With #CSS you can decorate your website and its elements, you can place elements as and where you want and can change their look and feel.

Javascripts provides functionality to the website. It determines actions to be performed based on user interactions. It determines what will happen when a user clicks on a button, hover over an element, scrolls up to a certain height, etc. Since, #javascript is a programming language, you can do programming related tasks with JS.

Source
by Kunlex
on Mon Dec 30, 2019 10:20 pm
 
Search in: Webmaster
Topic: Differences between HTML, CSS and JavaScript
Replies: 0
Views: 220

Back to top

Jump to: