Apa itu html dan bagaimana cara kerjanya?


HTML adalah bahasa markup standar untuk membuat halaman Web


Apa itu HTML?

  • HTML adalah singkatan dari Hyper Text Markup Language
  • HTML adalah bahasa markup standar untuk membuat halaman Web
  • HTML menggambarkan struktur halaman Web
  • HTML terdiri dari serangkaian elemen
  • Elemen HTML memberi tahu browser cara menampilkan konten
  • Elemen HTML memberi label potongan konten seperti "ini adalah judul", "ini adalah paragraf", "ini adalah tautan", dll

Dokumen HTML Sederhana

Contoh




Judul halaman

Judul Pertama Saya

Paragraf pertama saya


Cobalah sendiri "

Contoh Dijelaskan

  • Deklarasi mendefinisikan bahwa dokumen ini adalah dokumen HTML5
  • Elemen adalah elemen root dari halaman HTML
  • Elemen berisi informasi meta tentang halaman HTML
  • </code> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)</li> <li>The <code><body></code> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.</li> <li>The <code><h1></code> element defines a large heading</li> <li>The <code><p></code> element defines a paragraph</li> </ul> <hr/> <h2>What is an HTML Element?</h2> <p>An HTML element is defined by a start tag, some content, and an end tag:</p> <p> <tagname> Content goes here.. </tagname> </p> <p>The HTML <strong>element</strong> is everything from the start tag to the end tag:</p> <p> <h1>My First Heading</h1> </p> <p> <p>My first paragraph.</p> </p> <table> <tr> <th>Start tag</th> <th>Element content</th> <th>End tag</th> </tr> <tr> <td><h1></td> <td>My First Heading</td> <td></h1></td> </tr> <tr> <td><p></td> <td>My first paragraph.</td> <td></p></td> </tr> <tr> <td><br></td> <td><em>none</em></td> <td><em>none</em></td> </tr> </table> <div> <p><strong>Note:</strong> Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!</p> </div> <hr/> <hr/> <h2>Web Browsers</h2> <p>The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly.</p> <p>A browser does not display the HTML tags, but uses them to determine how to display the document:</p> <p><img alt="View in Browser" src="img_chrome.png"></img></p> <hr/> <h2>HTML Page Structure</h2> <p>Below is a visualization of an HTML page structure:</p> <div><html> <div><head> <p><title>Page title

    This is a heading

    This is a paragraph.

    This is another paragraph.

    Note: The content inside the section (the white area above) will be displayed in a browser. The content inside the

    element will be shown in the browser's title bar or in the page's tab.</p> </div> <hr/> <h2>HTML History</h2> <p>Since the early days of the World Wide Web, there have been many versions of HTML:</p> <div> <p>This tutorial follows the latest HTML5 standard.</p> </div></p><p>

    _

Tanpa HTML, web seperti yang kita tahu tidak akan ada. HTML menciptakan struktur di web dari tata letak halaman dan paragraf hingga tautan, tag, dan atribut. Setiap kali kita online, disadari atau tidak, HTML kemungkinan besar hadir. Di sini kami akan menjelaskan beberapa konsep dasar HTML

Apa itu HTML?

HTML adalah sistem standar untuk menandai file teks yang membuat struktur untuk hampir semua halaman yang kita temukan dan gunakan di web. Itu HTML yang menambahkan jeda halaman, paragraf, huruf tebal, miring, dan banyak lagi. HTML berfungsi untuk membangun struktur ini dengan menggunakan tag yang memberi tahu browser apa yang harus dilakukan dengan teks.  

For example, to make a word appear bold, we put that word between the following tags bold. The first tag indicates the start of the word(s) that we want to bold, and the closing tag(/) indicates where we want the bold to stop. It’s the basis for pretty much every page on the web. If you are learning to code, this is the place to start.

Apa kepanjangan dari HTML?

HTML adalah singkatan dari Hypertext Markup Language. Hypertext adalah sejenis teks meta yang digunakan untuk mereferensikan potongan teks lainnya. Elemen Markup Language HTML berarti menyediakan serangkaian tanda yang menginstruksikan browser web tentang apa yang harus dilakukan dengan potongan teks tersebut.

Untuk apa HTML digunakan?

HTML adalah kerangka dari hampir semua situs web. Ini menyediakan tulang yang mendukung segala sesuatu yang lain di situs. Hal-hal umum yang digunakan untuk mendefinisikan HTML adalah