logo

HTMLってどうやって書くの?

HTML はの頭字語です。 ハイパーテキストマークアップ言語 。 WebページやWebアプリケーションの作成に使用されます。 HTML は Web 上で広く使用されている言語です。この記事では、HTML の書き方を学びます。

ここでは、まず HTML ページを作成する手順をステップバイステップで示します。

ステップ1 - テキスト エディタを開いてコードを記述します。

npドット

初心者向けに簡単にダウンロードできるテキスト エディターはさまざまありますが、最適なテキスト エディターはメモ帳 (Windows の場合) と TextEdit (Mac の場合) です。 Windows では、デフォルトのテキスト エディタは次のとおりです。 メモ帳 , 一方、Mac では、デフォルトのエディターは TextEdit です。 Windows では、次のように開くことができます。 メモ帳 以下のスクリーンショットに示すように、[スタート] をクリックしてメモ帳と入力し、エディターを起動します。

HTMLの書き方

を使用することもできます。 メモ帳++ Windows のテキスト エディタを使用して HTML プログラムを作成します。基本を学んだ後は、次のような他のプロのエディターを使用できるようになります。 Notepad++、Sublime Text、Vim、

ステップ2 - 次に、テキスト エディタで HTML プログラムの作成を開始します。 HTML タグは、開始タグ () と終了タグ () で囲まれます。段落を作成する必要があるとします。HTML では、段落を開くタグを入力することで段落が作成されます。

次に閉じた段落タグを入力します

bash 配列

HTMLの書き方

コード行を記述した後、単に 入力 次の行に進みます。

ステップ 3: 次のいずれかの方法でファイルを保存します .html または一緒に .htm 以下のスクリーンショットに示すように、拡張子。

HTMLの書き方

ステップ 4: これで、.html ファイルを実行できるようになります。これを行うには、ファイルを保存した場所に移動する必要があります。次に、対応するファイルを選択して右クリックし、ファイルを実行する目的の Web ブラウザを選択します。次のスクリーンショットを見れば明らかです。

HTMLの書き方

ブラウザをクリックすると、ファイルの出力を示す Web ページが表示されます。

ここで、HTML を始める方法、または HTML プログラムを作成する方法を見てみましょう。

どの HTML ドキュメントでも、基本的にはドキュメント タイプでドキュメントを始めることができます。 鬼ごっこ タグ、および 鬼ごっこ 。までにタグを閉じる必要があります そして タグ。それは次のように書かれます -

オラクルテーブルの作成
 

タグには、Web ブラウザに表示されるコードを記述することができます。 Web ページのタイトルを作成するには、以下に示すように head タグを含めます。

 <title < pre> <p>There are various tags in HTML for performing different tasks. There are six headings in HTML that are <a href="/html-heading"> <strong><h1>, <h2>, <h3>, <h4>, <h5>, and <h6></h6></h5></h4></h3></h2></h1></strong> </a> . These headings should be closed with their corresponding closing tags.</p> <p>There are various properties and rules to write HTML code. For more information, you can visit our <strong>HTML tutorial</strong> .</p> <p>We can create paragraphs in HTML by using the </p><p> tag , to create a hyperlink we can use the anchor tag, i.e.,  <a href=" ">  </a>, we can also add unordered and ordered lists by adding <ul> and <ol> tags . An image can be inserted by using the .</ol></ul></p> <p>To add the style to a specific html tag or to the group of the html tags, we can use the CSS. There are three ways to use CSS in HTML that are Inline CSS , Internal or embedded CSS, and using the External CSS . Let&apos;s see the brief description of these ways -</p> <p> <strong>Inline CSS -</strong> Inline CSS uses style attribute to style the HTML elements. It is used to apply style to a single element.</p> <p> <strong>Internal or Embedded CSS -</strong> It defines CSS using  <strong></strong> tag in the section. To use internal CSS, we can use id and class attributes.</p> <p> <strong>External CSS -</strong> It defines all CSS properties in a separate .css file. Then we have to include that file using the tag in the  section.</p> <p>So, for more information, one should visit our HTML tutorial, where you will find a detailed and easier description of <a href="/html-tags">HTML tags</a> .</p> <hr></title>