Term
|
Definition
- Use <tags> to tell the browser how to format our content
|
|
|
Term
|
Definition
|
|
Term
|
Definition
- Makes top level heading
- Example: <h1>Anna Dowlin</h1>
|
|
|
Term
|
Definition
- Subheadings are made with
|
|
|
Term
|
Definition
- To make a normal paragraph
- Example: <p> Hi! I'm Anna Dowlin, a NYC-based maketer. Say hello!</p>
|
|
|
Term
|
Definition
- No matter what type of information you want from your users to get it from them you' ll need
- For example if you want in email from some one you will do
- <input type="email">
- the part type is an attribute
- the part email is the attribute's value
|
|
|
Term
|
Definition
- It a default text so users know what to type
- for example the way you do it is
- <input type="email" Placeholder="Your email">
|
|
|
Term
|
Definition
- the structure of the content that goes inside the tags
- browsers provide default style, but it's pretty ugly by itself
|
|
|
Term
|
Definition
- CSS control the style of the HTML content. It lets you change colors, fonts, layout and more
- for small project the easiest way to add CSS to your HTML file is by using a <style> tag
- for example <style>body{text-align:center;background:black;color:white;font-family:helvetica;}</style>
|
|
|
Term
|
Definition
- Where you choose which HTML elements you want to add style to
- For instance: <style>body{text-align:center;background:black;color:white;font-family:helvetica;}</style>
|
|
|
Term
|
Definition
- A property controls one aspect of an HTML element's style, such as text-align
- for example: <style>body{text-align:center;background:black;color:white;font-family:helvetica;}</style>
|
|
|
Term
|
Definition
- The value goes with the property
- For example: <style>body{text-align:center;background:black;color:white;font-family:helvetica;}</style>
- you can have multiple styple in the same <styple> tag. For instance <style>h1{text-align:center;}p{color:red;}</style>
|
|
|
Term
|
Definition
- The best way to select all elements at once is to have a parent element that contain all the other element
- So, we use <body>
- example:<body>
<h1>Anna Dowlin</h1> <p>Hi! I'm Anna, a NYC-based marketer. Say hello!</p> <input type="email" placeholder="Your email"> <input type="submit"> </body>
- We can apply style to he <body> and it will apply to all the element inside it
- Example: <style> body {text-align: center;}</style>
|
|
|
Term
|
Definition
- before body always comes another tag called <head>
- It wraps around the <style> tag and other element that aren't content on the page, such as <title> tag
|
|
|
Term
|
Definition
- The <title> tag control what show up in the browser tab
- <title>kedir hussen</title>
|
|
|
Term
|
Definition
- write it before everything else
- that tells the browser we' re sing the newest version, HTML5
|
|
|
Term
|
Definition
- Together the doctype, head, and body make up the basic foundation/ structure that every website starts from
- <!DOCTYPE html>
- <head>meta info goes here</head>
- <body>content goes here</body>
|
|
|
Term
|
Definition
- Used to add imgage
- The <img> tag uses the image located at the URL in the src attribute
- For Example: <img src="/assets/anna.png">
|
|
|
Term
|
Definition
|
|
Term
|
Definition
- The type of link you're used to. They include http:// and the full domain named before the directroy (/asset.logo/.png)
|
|
|
Term
|
Definition
- shortcut that allow you to skip the domain name. It only works if you're linking to file on the same domain as the current page
|
|
|
Term
|
Definition
- you can change the background's color using the background property
- you can also use it to change the background to an image
- For instance: background: url("http://dash.ga.co/assets/anna-bg.png")
|
|
|
Term
|
Definition
- How you prevent the backround from appearing "tiled"
- For example: background-size: cover;
|
|
|
Term
|
Definition
- This will center the background image on the page
- Example: background-position: center;
|
|
|
Term
|
Definition
- Let's make the paragraph's font little bigger
- For example: p {font-size: 22px;}
|
|
|
Term
|
Definition
- By setting border to 0, we can get rid of some of the default styling on our inputs
- Example: input { border: 0;padding: 10px;font-size: 18px;}
|
|
|
Term
|
Definition
- padding is the amount of space between the edge of an element and the suff inside it
- Example: input { border: 0;padding: 10px;font-size: 18px;}
|
|
|
Term
|
Definition
- Let increase font size to make it more proportionate to te rest of the text
- Example: input { border: 0;padding: 10px;font-size: 18px;}
|
|
|
Term
- input[type="submit"]{background: red; color: white;}
|
|
Definition
- You can select an element by one of its attribute using square batckets
|
|
|
Term
|
Definition
- You can change the background color using the color using the background property
- style>body {text-align: center;background: black;color: white;font-family: helvetica;}</style>
|
|
|
Term
|
Definition
- style>body {text-align: center;background: black;color: white;font-family: helvetica;}</style>
|
|
|
Term
|
Definition
- style>body {text-align: center;background: black;color: white;font-family: helvetica;}</style>
- the font family property lets you change the font
|
|
|