Hello everyone,
This is part two, in my last post I gave a brief background as to what HTML, CSS, and JavaScript are as well as why we use them. Today I will talk about them a little more based on my personal experience using them. Just a little reminder HTML stands for Hypertext markup language and is the structure of a website. CSS stands for Cascading Style Sheets, and this is what you use to make your website look pretty. Finally, JavaScript which is what we use to make the website functional. Today in class we had the opportunity to use CSS in our in-class assignment. One thing you should remember when changing the style of your output is that you must create a new text within your code that represents the style of your work. At the very top of your screen when the document begins you will see the usual information <doctype>, <html>, and <body>. In this area between html and body you want to create a new line that says <style> this is where you would input your code to do things like change the color or fount size. First you want to label what you want to change after style followed by the curly brackets next you can choose color followed by colon and your color followed by semicolon. Below I will give you an example of how that should look. The green text is what you will add to change the style of your prompt/output.
<!DOCTYPE html>
<html>
<style>p{color:blueviolet; font: size 30px; } h1{color: rgb(247, 6, 166)};
body{background-color: rgb(43, 191, 228)};</style>
<body>
After you save and run the program you will be able to see the changes that were made in your code.
Leave a Reply
You must be logged in to post a comment.