Jump to content
Hostul a fost schimbat. Daca vedeti serverul offline readaugati rpg.b-zone.ro sau 141.95.124.78:7777 in clientul de sa-mp ×

Cum as putea combina html cu CCS?


MoxZEM
 Share

Recommended Posts

Cu ce program pot sa combin html si cu CCS? sau merge si din notepad ++? vreau sa combin, de exemplu, h1{ } (ccs) cu html, <header>, </header> etc, sunt incepator la programarea html etc, mersi mult

Link to comment
Share on other sites

intai trebuie sa-ti scrii codul in doua documente diferite. adica unul pentru html, unul pentru css. iar cand vrei sa combini pe astea, adaugi un tag in <head> (in documentul HTML) care ar trebui sa arate (exemplar) asa:

 

<link rel="stylesheet" href="NumeleDocumentului.css">

 

deci intr-un exemplu cu cod complet HTML:

 

<!DOCTYPE html>

  <html>

    <head>

      <title>Aplicatia lui Mox</title>
     
<link rel="stylesheet" href="NumeleDocumentului.css">

    </head>

    <body>

      <h1>Aceasta este aplicatia mea</h1>

    </body>

 </html>

Link to comment
Share on other sites

Nu este nevoie sa fie in acelasi folder, trebuie sa scrii corect adresa la "href". De exemplu poti sa ai un folder separat numit design doar cu fisiere .css.

Daca este un link relativ, va indica fisierul de pe propriul site, de ex: href="/design/fisier.css">

Sau un URL complet, care de obicei este utilizat pentru a indica un fisier de pe alt site: href="https://www.google.com/design/fisier.css">.

Link to comment
Share on other sites

Parerea mea, foloseste sublime text 3, e foarte fain si simplu de folosit. Poti sa introduci direct CSS-ul in HTML, cu tag-ul "style" o sa iti las un link mai jos de pe w3school si sper sa te ajute. Bafta.

https://www.w3schools.com/html/html_css.asp

 

Topic inactiv

 

:topic_closed:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.