By, smartwatches 31/10/2022

STEP 3-5 What is coding on web page?(Web staff forum) --Yahoo! News

delivery

0コメント0件

figure

If you want to know the table of contents of the web beginner, is the quiz web page only made in HTML? When you become a web person, you often hear the word HTML. To create content on a website, use HTML language. Documents that use these markup languages ​​(a language that describe the structure of the text) or a programming language to be instructed to a computer are called source code, and writing source code is called coding. Web pages are mainly created by mark -up languages ​​called HTML, CSS, and coding work by programming language JavaScript.・ WEB pages are made only in the language of HTML, and there are few opportunities for web staff to coding, but knowing how the web page is created is a site. It will be an important help in operating. Therefore, in 3-5, we will introduce the main languages, source code configuration, and coding guidelines used in web page coding. 

Main language used for coding on Web page

1/4

Part of Step 1-1

Part of Step 1-1のソースコード

Part of the source code indicating JavaScript

An example of the browser "Chrome".Right -click on the page to select "Display page source" from the menu that appears to see the source code.

Keep in mind that the main languages ​​used in web page coding are HTML, CSS, and JavaScript. These three have the following different roles to create pages.・ HTML: Hyper Text Markup Language is an abbreviation that reveals the “content structure” that you want to display on the web page. For example, it clarifies the structure that makes up documents such as "This is a headline", "this range is one paragraph", and "this is an image".・ CSS: Abbreviation for Cascading Style Sheets, simply called style sheet. Set "How to display the page". It can be said to be a language that sets design for each structure revealed in HTML. There are an internal style sheet described in the HTML file and an external style sheet to be created separately from the HTML file, but it is common for corporate sites to use external style sheets.・ JavaScript: This language has functions on the site, such as enlarging or reducing images on the web page, controlling videos, communicating with different sites. About the HTML file on the web page made in these languages.The files when using HTML and CSS as an external style sheet.CSS, JavaScript files.A extension called JS is attached.note that,.I think you may see an extension called HTM, but this is a remnant of the time when "extension is three characters".Currently,.htmlを使います。ここで、実際のソースコードを見てもらうために、Part of Step 1-1を例にあげてみましょう。このWebページのソースコードは、次になります。

やのような<>で囲まれたものをHTMLタグWhenいい、

When

の間は「2番目に大きい見出し」WhenいうこWhenを表し、

When

の間は「1つの段落」だWhenいうこWhenを表します。つまり、HTMLタグを使って、構造を明確にしているわけです。また、Whenの間は「1つのブロックWhenして扱う」こWhenを表します。ここでは、画像WhenキャプションをまWhenめて扱う構造にするために用いています。なお、は画像であるこWhenを示し、class="image-box-center"は、別途CSSで設定したimage-box-centerWhenいうデザインを用いるこWhenを示しています。なお、例にあげたソースコードにはJavaScriptの記述はありませんが、次のようにが書かれていたら、JavaScriptを使っているのだWhenわかります。Web担当者がJavaScriptを使う機会はないWhen思いますが、自分が担当しているページにJavaScriptが使われているのかどうかは知っておくWhenよいでしょう。なお、HTMLにはさまざまなバージョンがあり、バージョンが5の場合はtype="text/javascript"が省略され、単に