使用VS Code編制網頁
EMBED嵌入網頁
介紹純文字編輯器EDITOR與瀏覽器BROWSER
介紹哈佛大學資訊科學課程CS505
VS Code是微軟公司Microsoft提供的免費IDE整合開發環境,CTRL+放大
上課內容HTML, CSS, JAVASCRIPT, PYTHON是哈佛大學CS50的主要內容
CSS是階層樣式表(Cascading Style Sheet)三種使用方式:線內(in-line)、內部(internal)、外部(external)
CSS是階層樣式表三種使用方式:線內(in-line)、內部(internal)、外部(external)
CSS三種使用方式:
- 線內(in-line): 在標記指令內STYLE="..."
- 內部(internal): 用STYLE/STYLE定義區塊
- 外部(external): 另外.CSS檔案,讀取指令LINK REL HREF=
CSS內部(internal)法用STYLE/STYLE定義區塊
CSS內部(internal)就是使用網頁內STYLE/STYLE然後有三種設定方式:元素標記、類別CLASS、ID識別
JAVASCRIPT使用方式分:線內(in-line)、內部(internal)、外部(external),前者類似CSS內部法,而以SCRIPT/SCRIPT定義區塊
JAVASCRIPT三種使用方式:
- 線內(in-line): 只能使用於內建函數(方法)
- 內部(internal): 用SCRIPT/SCRIPT定義區塊
- 外部(external):另外.JS檔案,讀取指令SCRIPT SRC=/SCRIPT
段落Paragraph,==判斷是否相等,=給予值或屬性
程式語言最重要的三個結構:函數function、迴圈、判斷。
Paragraph, Click按下, ONCLICK按下滑鼠事件event
下午班級的程式碼
<STYLE>.a{font-size: 2em;border:solid 5px orange;}
</STYLE>
<body>
<p class="a">介紹純文字編輯器EDITOR與瀏覽器BROWSER</p>
<p>介紹哈佛大學資訊科學課程CS505</p>
<p>VS Code是微軟公司Microsoft提供的免費IDE整合開發環境,CTRL+放大</p>
<p>上課內容HTML, CSS, JAVASCRIPT, PYTHON是哈佛大學CS50的主要內容</p>
<p>CSS是階層樣式表(Cascading Style Sheet)三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS是階層樣式表三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS三種使用方式:<ul>
<li>線內(in-line): 在標記指令內STYLE="..."</li>
<li>內部(internal): 用STYLE/STYLE定義區塊</li>
<li>外部(external): 另外.CSS檔案,讀取指令LINK REL HREF=</li></ul></p>
develop project,程式開發, VS Code是一個IDE
=Integrated Development Environment
<p>CSS內部(internal)法用STYLE/STYLE定義區塊</p>
<p>CSS內部(internal)就是使用網頁內STYLE/STYLE然後有三種設定方式:元素標記、類別CLASS、ID識別</p>
<p>JAVASCRIPT使用方式分:線內(in-line)、內部(internal)、外部(external),前者類似CSS內部法,而以SCRIPT/SCRIPT定義區塊</p>
<p>JAVASCRIPT三種使用方式:<ul>
<li>線內(in-line): 只能使用於內建函數(方法)</li>
<li>內部(internal): 用SCRIPT/SCRIPT定義區塊</li>
<li>外部(external):另外.JS檔案,讀取指令SCRIPT SRC=/SCRIPT</li></ul></p>
<p>段落Paragraph,==判斷是否相等,=給予值或屬性</p>
<p>程式語言最重要的三個結構:<b>函數function</b>、迴圈、判斷。</p>
<p>Paragraph, Click按下, ONCLICK按下滑鼠事件event</p>
<button onclick="MONEY()">劉任昌按下執行</button>
<BUTTON ONCLICK="MY()">改變背景顏色</BUTTON>
</body>
<script>
function MY(){
document.body.style.backgroundColor = "tomato";
}
function MONEY() {/*宣告constant=,==判斷是否相等*/
const paragraphs = document.querySelectorAll("p");
for (let i = 0; i < paragraphs.length; i++) {
paragraphs[i].style.background = "darkgreen";
paragraphs[i].style.color = "white";
if (i % 2 == 0) /*if後面只執行一到指令所以不用{}*/
{
paragraphs[i].style.background = "blue";
paragraphs[i].style.color = "yellow";
paragraphs[i].style.fontWeight = "border";
}
}
}
</script>
作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://zhuo-1005.blogspot.com/2024/09/vs-code.html
回覆刪除https://chenyenhsun.blogspot.com/2024/09/vscode.html
回覆刪除https://jiachiangkuo.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除https://xin00.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除https://bfbfbfbfbfsgrjryjyrjj.blogspot.com/2024/09/461_29.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/7977872183872967676/6157005801977551235
回覆刪除https://pei940922.blogspot.com/2024/09/vs-code.html
回覆刪除https://www.blogger.com/blog/post/edit/7901195070899230922/352428602480989901
回覆刪除https://gghfrefgd.blogspot.com/2024/09/blog-post.html
回覆刪除作者已經移除這則留言。
回覆刪除https://zhou-wei-ling.blogspot.com/2024/09/vs-code.html
回覆刪除https://xiyuying.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript_29.html
回覆刪除https://christina-lqw.blogspot.com/2024/09/vs-code.html
回覆刪除作者已經移除這則留言。
回覆刪除https://shanny11336108.blogspot.com/2024/09/vs-code.html
回覆刪除https://www.blogger.com/blog/posts/8494189326650211235
回覆刪除https://gbsddik.blogspot.com/2024/09/vs-code.html
回覆刪除https://jiang-jia-ehen.blogspot.com/2024/09/vs-code.html
回覆刪除https://chrishong9595.blogspot.com/2024/09/vs-code.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/7142461537043228938/2168514955934395342
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://vovo8564513.blogspot.com/2024/09/vs-code.html
回覆刪除https://ting22222.blogspot.com/2024/09/vs-code.html
回覆刪除https://lu-cheng-yin-2024.blogspot.com/2024/09/930.html
回覆刪除作者已經移除這則留言。
回覆刪除https://ahonggg0304.blogspot.com/2024/09/vs-code.html
回覆刪除https://chiuerya0515.blogspot.com/2024/09/filecusersadministratordocumentschiu.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/5942962395596574745/6104789631723462444
回覆刪除https://xu-bing-wei-0804.blogspot.com/2024/09/css_29.html
回覆刪除https://tzuchenchu.blogspot.com/2024/09/vs-code.html
回覆刪除https://zyixnn.blogspot.com/2024/09/vscode.html
回覆刪除https://sccabout.blogspot.com/2024/09/programming.html
回覆刪除https://lin-yujing.blogspot.com/2024/09/vs-code.html
回覆刪除https://kiannc1201.blogspot.com/2024/09/vs-code.html
回覆刪除https://chinenkohana.blogspot.com/2024/09/vs-code.html
回覆刪除https://winnielee0311.blogspot.com/2024/09/vs-code_29.html
回覆刪除https://yangyami.blogspot.com/2024/09/vs-code.html
回覆刪除https://jamie941128.blogspot.com/2024/09/blog-post_30.html
回覆刪除https://bochen94.blogspot.com/2024/10/vs-code.html
回覆刪除https://chenwewen.blogspot.com/2024/09/css-javascript-pythoncs50-style-sheetin.html
回覆刪除作者已經移除這則留言。
回覆刪除https://d11117242.blogspot.com/2024/10/editorbrowser-cs505-html-css-javascript_20.html
回覆刪除