Answers for "html web css"

CSS
1

css with html

//this is my code
in order to link html page to css then you must write this line in the html page
<link href="style.css" rel="stylesheet" type="text/css" />

however you must write this line inside the <head> tag in the wanted html page

href="style.css" --> it refer to the name of the css page that you want this 
html page to connect to.
  
type="text/css" --> this part is optional and you don't have to write it
Posted by: Guest on March-29-2022
0

website html css

<!-- html structure + 3 types of CSS -->
<!DOCTYPE html>
  <head>
  	<!-- meta + favico + viewport -->
  	<style src="css/myExternalStyleSheet.css" /> <!-- EXTERNAL CSS -->
    <style id="myInternalStyles">     <!--- INTERNAL CSS --->
    	body {
        	color: blue;
            background-color: red;
        }
    <style>
    <script src="js/myExternalJavaScript.js">
    	function ohThisMyInternalJS(){
        	alert("hi");
        }
    </script>
  </head>
  <body>
    <header>
      <nav>
        <a href="index.html">Home</a>
      </nav>
    </header>
    <div class"pageContent" style="color:yellow"> <!--- INLINE CSS --->
      This is a good site.
    </div>
    <footer></footer>
  </body>
</html>
Posted by: Guest on January-27-2022

Browse Popular Code Answers by Language