From 09d62f0afe96d09824664fdd39f424c7a47ab9d5 Mon Sep 17 00:00:00 2001 From: 4Mnish <97612359+4Mnish@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:13:24 +0530 Subject: [PATCH 1/4] Create Demo --- MCA1/1B/70-ManishSinghPapola-2101107/Demo | 1 + 1 file changed, 1 insertion(+) create mode 100644 MCA1/1B/70-ManishSinghPapola-2101107/Demo diff --git a/MCA1/1B/70-ManishSinghPapola-2101107/Demo b/MCA1/1B/70-ManishSinghPapola-2101107/Demo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/MCA1/1B/70-ManishSinghPapola-2101107/Demo @@ -0,0 +1 @@ + From e6dba4e26aebfbc01471d4d64a908cda77476c33 Mon Sep 17 00:00:00 2001 From: 4Mnish <97612359+4Mnish@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:37:47 +0530 Subject: [PATCH 2/4] Add files via upload --- MCA1/1B/70-ManishSinghPapola-2101107/Ans2.txt | 34 ++++++++++++ .../1B/70-ManishSinghPapola-2101107/ans1.html | 53 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 MCA1/1B/70-ManishSinghPapola-2101107/Ans2.txt create mode 100644 MCA1/1B/70-ManishSinghPapola-2101107/ans1.html diff --git a/MCA1/1B/70-ManishSinghPapola-2101107/Ans2.txt b/MCA1/1B/70-ManishSinghPapola-2101107/Ans2.txt new file mode 100644 index 0000000..37691fb --- /dev/null +++ b/MCA1/1B/70-ManishSinghPapola-2101107/Ans2.txt @@ -0,0 +1,34 @@ +How to Link a CSS File to an HTML File(i.e., External CSS) + +You can link your CSS file to your HTML file by adding a link element inside the head element of your HTML file, like so: + + + +
+ + + + + + + +The link element has many uses, and it is important to specify the right attributes so that you can use it to import an external CSS stylesheet. We'll look at some important attributes now. + +1.The rel attribute-The first of the two indispensable attributes is the rel attribute. You will use this attribute to tell the browser what the relationship is with the imported file. + + You'll write rel="stylesheet" to tell the browser that you are importing a stylesheet. + +2.The src attribute-The second indispensable attribute is the src attribute, which specifies the file to import. + + A common situation is that the CSS file and the HTML file are in the same folder. In such a case you can write src="style.css". + + If the CSS file and the HTML file are in different folders, you need to write the correct file that needs to go from the HTML file to the CSS file. + + For example, a common situation is that the CSS file is in a folder that is a sibling to the HTML file, like so: + + project --- index.html + css ---------- style.css + In this case you would need to write a path like "css/styles.css". + +3.The type attribute- + You use the type attribute to define the type of the content you're linking to. For a stylesheet, this would be text/css. But since css is the only stylesheet language used on the web, it is not only optional, but it is even a best practice not to include it. \ No newline at end of file diff --git a/MCA1/1B/70-ManishSinghPapola-2101107/ans1.html b/MCA1/1B/70-ManishSinghPapola-2101107/ans1.html new file mode 100644 index 0000000..89e9022 --- /dev/null +++ b/MCA1/1B/70-ManishSinghPapola-2101107/ans1.html @@ -0,0 +1,53 @@ + + + +