HTML & CSS
:::::::::::::::::::::::::::::::::::::HTML:::::::::::::::::::::::::::::::::::::::::
Hyper-Text Markup Language
HTML ( <html></html>) :
=> Head(<head></head>) :contains meta tags and title, links,refrences
=> Body(<body> </body>) :it contains body of the the html page
important tags found inside body of html page
1. heading tags : <h1></h1>, <h2></h2>, <h3></h13>, <h4></h4>,
2. paragraph tags : <p></p>
3. breaks : <br>
4. horizontal row : <hr>
5. strong tag to bold : <strong></strong> ,<b></b>
6. italic the letter : <em></em> , <i></i>
7. hyperlink tags to include links : <a href="" target =""></a>
8. image tag to include image or gif : <img src = "" alt="" ></img>
9. listing of objects : <ul></ul> (unorderd) , <ol></ol> (orderd) , <li></li> (list objects)
10. table creation :
<table>
<thread>
<th>(obj1)</th> <th>(obj2)</th> ..
. </thread>
<tbody>
<tr>
<td>(obj1)</td> <td>(obj2)</td> ....
</tr>
<tbody>
<table>
11. More frequent used elements :
divs ( <div></div> ) ,
spans (<span></span>),
headers (<header></,header>) ,
navs (<nav></nav>) ,
12. Creating forms :
<form action = "backend">
<label></label> <div> <input type = "" name = ""> </div>
<label></label> <div> <input type = "" name = ""> </div>
<label></label> <div> <input type = "" name = ""> </div>
.....
</form>
you can use many varities of input as :
<select name=""><option value = ""></option> <option value = ""></option> ....</select>
<textarea name = "" cols= "" rows= ""></textarea>
default<input type = "radio" >option1<input type = "radio">option2<input type = "radio" >..
<input type = "checkbox" name="">
<input type = "number" name = "">
<input type = "date" name="">
<input type = "email" name = "">
13. Block-level elements in html
- <div></div>
- <p>/<p>
- <h1> to <h6>
- <ul> , <ol>, <li>
- <form></form>
- <nav></nav>
- <header></header>
- <footer></footer>
- <section></section>
- <table> , <th> , <tr> ,<td> ,
- <articles></articles>
- <legend></legend>
- <blockquote></blockquote>
- <adress></adress>
- <fieldset></fieldset>
14. Inline-level elemetns in html
- <span></span>
- <a href= ''></a>
- <img>
- <br>
- <input>
- <label></label>
- <option></option>
- <strong></strong>
- <em></em>
- <textarea>
- <button>
- <code></code>
- <details></details>
- <summary></summary>
Any block element can be converted to inline element by using css property called Display : inline-block;
setting : id and classes
classes : can be common to multiple element , added by using attribute class=" class_name_1 class_name_2 ..."
Ids : must be unique for a element , added by using attribute id = "Id_name"
15. Symblos in HTML
search google , example for typing extra space use  ,
for pound symbol : £
for copyright symbol : ©
dollar symbol : &dollar
factor symbol : ¼
<, > etc are some more symbols , others can be founded by searching goolge or chat-gpt
16. Other famous symmentic tags searche by google and use them else no-need
<article>
<aside>
<details>
<figcaption>
<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<time>
:::::::::::::::::::::::::::::::::::::::::C S S:::::::::::::::::::::::::::::::::::
Cascade Style Sheet - 3
three ways to add css to html :
1. Inline: by using attributes
2. Internal : by writing css in html itself inside <style></style> tags anywhere
3. External: by writing css in any other .css file and addig path to html head by <link src ="stylesheet" href ="">
1. general syntax
target element(s): by using any of the selector below
- by tags
- by class
- by id
selector {
style prop 1:
style prop 2:
style prop 3:
}
2. Famous and common styles and their syntaxes
- border : thickness(2px) type(solid) color;
- background : color Imge Repeat-type Attachment(scroll/fixed/local) Position(top, bottom , left ..);
- color : color_for_text;
- font-style : (italic, bold);
Comments
Post a Comment