簡體   English   中英

如何將主題實現到 html?

[英]How to implement theme to html?

好的,所以我 100% 是編程新手。 問題格式也可能是錯誤的。 問題:html 的主題? html 還是初學者。 希望它至少在我所學的情況下看起來在美學上令人賞心悅目。 還沒有 CSS 知識。 我一直在尋找我想放在我的頁面上的任何東西(表情符號)。 我搜索了谷歌並做了寫的,但它仍然沒有顯示主題。 好的,這是您可以看到的代碼,稍后我會添加更多內容(我知道這對你們所有人來說都沒什么):

<html>
  <head>
    <meta charset=“UTF-8”>
     <meta name="viewport" content="width=device-width, initial-scale=1">
      <meta name="theme-color" content="#f7cac9">
       <title>Galaxia
       </title>
  </head>
    <body>

  <h3 style = "position:absolute; right:150px; top:-10px; background-color:pink;">
    Welcome to my weird abode &#x1F98B;
  </h3>
  <br>
  <br>
  <!-- added two br tags because otherwise heading and paragraph overlap -->
  
  <div class="coder">
    <p>This is a html example from me for now,
        <br>
        have fun.:) </p>
    </div>

</body>
</html>

先感謝您!

In order to add styles to your HTML page, you use css (with the file extension.css -- for example styles.css ). 要使 styles 在您的 html 頁面上可見,您將在頭部部分包含<link rel="stylesheet" href="styles.css"/> 例如,在 css 文件中,您可以包括:

h3 {
    color: #f7cac9;
}

然后,添加鏈接 rel 后,html 頁面中的 h3 元素將變為粉紅色。 希望這會有所幫助,或者。 您可以在 html 頁面中添加標簽。

這是將 css 添加到 html 頁面的示例。 通過添加.coder {背景:綠色},背景顏色變為綠色:

 .coder { background-color: green; }
 <html> <head> <meta charset=“UTF-8”> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#f7cac9"> <title>Galaxia </title> </head> <body> <h3 style = "position:absolute; right:150px; top:-10px; background-color:pink;"> Welcome to my weird abode &#x1F98B; </h3> <br> <br> <,-- added two br tags because otherwise heading and paragraph overlap --> <div class="coder"> <p>This is a html example from me for now. <br> have fun::) </p> </div> </body> </html>

就像其他人的帖子一樣。

  • HTML - 是一種標記語言。 你會對瀏覽器說:嘿,這是一個段落... <p>This is a paragraph</p>
  • CSS - 你會讓事情看起來更好。 您可以更改所有 colors、背景、fonts、尺寸、邊距...

w3schools.com是查找快速教程的好地方,也是一個了解的好地方。

它很有名,很多人都在使用它。

我希望你繼續推動。

第一步是最難的!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM