Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Get Certified Upgrade Teachers Spaces
   ❮     
     ❯   

HOW TO

HowTo Home

Menus

Icon BarMenu IconAccordionTabsVertical TabsTab HeadersFull Page TabsHover TabsTop NavigationResponsive TopnavSplit NavigationNavbar with IconsSearch MenuSearch BarFixed SidebarSide NavigationResponsive SidebarFullscreen NavigationOff-Canvas MenuHover Sidenav ButtonsSidebar with IconsHorizontal Scroll MenuVertical MenuBottom NavigationResponsive Bottom NavBottom Border Nav LinksRight Aligned Menu LinksCentered Menu LinkEqual Width Menu LinksFixed MenuSlide Down Bar on ScrollHide Navbar on ScrollShrink Navbar on ScrollSticky NavbarNavbar on ImageHover DropdownsClick DropdownsCascading DropdownDropdown in TopnavDropdown in SidenavResp Navbar DropdownSubnavigation MenuDropupMega MenuMobile MenuCurtain MenuCollapsed SidebarCollapsed SidepanelPaginationBreadcrumbsButton GroupVertical Button GroupSticky Social BarPill NavigationResponsive Header

Images

SlideshowSlideshow GalleryModal ImagesLightboxResponsive Image GridImage GridImage GalleryScrollable Image GalleryTab GalleryImage Overlay FadeImage Overlay SlideImage Overlay ZoomImage Overlay TitleImage Overlay IconImage EffectsBlack and White ImageImage TextImage Text BlocksTransparent Image TextFull Page ImageForm on ImageHero ImageBlur Background ImageChange Bg on ScrollSide-by-Side ImagesRounded ImagesAvatar ImagesResponsive ImagesCenter ImagesThumbnailsBorder Around ImageMeet the TeamSticky ImageFlip an ImageShake an ImagePortfolio GalleryPortfolio with FilteringImage ZoomImage Magnifier GlassImage Comparison SliderFavicon

Buttons

Alert ButtonsOutline ButtonsSplit ButtonsAnimated ButtonsFading ButtonsButton on ImageSocial Media ButtonsRead More Read LessLoading ButtonsDownload ButtonsPill ButtonsNotification ButtonIcon ButtonsNext/prev ButtonsMore Button in NavBlock ButtonsText ButtonsRound ButtonsScroll To Top Button

Forms

Login FormSignup FormCheckout FormContact FormSocial Login FormRegister FormForm with IconsNewsletterStacked FormResponsive FormPopup FormInline FormClear Input FieldHide Number ArrowsCopy Text to ClipboardAnimated SearchSearch ButtonFullscreen SearchInput Field in NavbarLogin Form in NavbarCustom Checkbox/RadioCustom SelectToggle SwitchCheck CheckboxDetect Caps LockTrigger Button on EnterPassword ValidationToggle Password VisibilityMultiple Step FormAutocompleteTurn off autocompleteTurn off spellcheckFile Upload ButtonEmpty Input Validation

Filters

Filter ListFilter TableFilter ElementsFilter DropdownSort ListSort Table

Tables

Zebra Striped TableCenter TablesFull-width TableNested TableSide-by-side TablesResponsive TablesComparison Table

More

Fullscreen VideoModal BoxesDelete ModalTimelineScroll IndicatorProgress BarsSkill BarRange SlidersColor PickerEmail FieldTooltipsDisplay Element HoverPopupsCollapsibleCalendarHTML IncludesTo Do ListLoadersBadgesStar RatingUser RatingOverlay EffectContact ChipsCardsFlip CardProfile CardProduct CardAlertsCalloutNotesLabelsRibbonTag CloudCirclesStyle HRCouponList GroupList Group with BadgesList Without BulletsResponsive TextCutout TextGlowing TextFixed FooterSticky ElementEqual HeightClearfixResponsive FloatsSnackbarFullscreen WindowScroll DrawingSmooth ScrollGradient Bg ScrollSticky HeaderShrink Header on ScrollPricing TableParallaxAspect RatioResponsive IframesToggle Like/DislikeToggle Hide/ShowToggle Dark ModeToggle TextToggle ClassAdd ClassRemove ClassChange ClassActive ClassTree ViewRemove DecimalsRemove PropertyOffline DetectionFind Hidden ElementRedirect WebpageFormat a NumberZoom HoverFlip BoxCenter VerticallyCenter Button in DIVCenter a ListTransition on HoverArrowsShapesDownload LinkFull Height ElementBrowser WindowCustom ScrollbarHide ScrollbarShow/Force ScrollbarDevice LookContenteditable BorderPlaceholder ColorDisable Resizing of TextareaDisable Text SelectionText Selection ColorBullet ColorVertical LineDividersText DividerAnimate IconsCountdown TimerTypewriterComing Soon PageChat MessagesPopup Chat WindowSplit ScreenTestimonialsSection CounterQuotes SlideshowClosable List ItemsTypical Device BreakpointsDraggable HTML ElementJS Media QueriesSyntax HighlighterJS AnimationsJS String LengthJS ExponentiationJS Default ParametersJS Random NumberJS Sort Numeric ArrayJS Spread OperatorJS Scroll Into ViewGet Current DateGet Current URLGet Current Screen SizeGet Iframe Elements

Website

Create a WebsiteMake a WebsiteMake a Static WebsiteHost a Static WebsiteMake a Website (W3.CSS)Make a Website (BS3)Make a Website (BS4)Make a Website (BS5)Create and View a WebsiteCreate a Link Tree WebsiteCreate a PortfolioCreate a ResumeMake a Restaurant WebsiteMake a Business WebsiteMake a WebBookCenter WebsiteContact SectionAbout PageBig HeaderExample Website

Grid

2 Column Layout3 Column Layout4 Column LayoutExpanding GridList Grid ViewMixed Column LayoutColumn CardsZig Zag LayoutBlog Layout

Google

Google ChartsGoogle FontsGoogle Font PairingsGoogle Set up Analytics

Converters

Convert WeightConvert TemperatureConvert LengthConvert Speed

Blog

Get a Developer JobBecome a Front-End Dev.Hire Developers

How TO - Make an HTML Book


Learn how to create an HTML Book that will work on all devices, PC, laptop, tablet, and phone.


First, Create a Basic HTML Page

HTML is the standard markup language for creating websites and CSS is the language that describes the style of an HTML document.

We will combine HTML and CSS to create a basic HTML Book.

First start with an HTML skeleton:

Example

<!DOCTYPE html>
<html>

<head>
<title>My Book</title>
<meta charset="UTF-8">
</head>

<body>
<h1>My Book</h1>
<p>HTML book created by me.</p>
</body>

</html>
Try it Yourself »

Example Explained

  • <!DOCTYPE html> The document type is HTML
  • <html> </html> The beginning and the end of the document
  • <head> </head> The beginning and the end of document information
  • <title> The title of the book ("My Book")
  • <meta charset="UTF-8"> The character set used (UTF-8)
  • <body> </body> The beginning and the end of the visible content
  • <h1> </h1> The beginning and the end of a heading
  • <p> </p> The beginning and the end of a paragraph

The code explained above are HTML tags.

HTML tags are used to define the content of an HTML dokument.

The tags start with a< (less-than sign) and end witn a> (greater-than sign).

This way<p> and</p> are usedto mark up the beginning and the end of a paragraph.

Note: If you want to study HTML in detail, please readour HTML Tutorial.

To be fully correct, there should be a language attribute added to the<html> tagto define the language used in the book:

<html lang="en">

Adding the following meta information will make your book display correctly on all devices, PC, laptop, tablet, and phone:

<meta name="viewport" content="width=device-width, initial-scale=1">

Example

<!DOCTYPE html>
<html lang="en">

<head>
<title>My Book</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
<h1>My Book</h1>
<p>HTML book created by me.</p>
</body>

</html>
Try it Yourself »

Create a Table of Content

Inside the<body> </body> elements, add a table of content:

<body>

<h1>Philosopy</h1>
<h3>Table of Contents</h3>

<p>1. Metaphysics</p>
<p>2. Epistemology</p>
<p>3. Logics</p>
<p>4. Ethics</p>
<p>5. Aesthetics</p>

</body>
Try it Yourself »

Add a Some Style

Add a styleheet to your book:

<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
Try it Yourself »

Note: If you want to study CSS in detail, please readOur CSS Tutorial.



Create an HTML page for Chapter 1

File:philosophy_chapter1.htm

<body>
<div>

<h1>1. Metaphysics</h1>

<h3>The nature of reality.</h3>

<p>Metaphysics is the part of philosophy that studies the nature of reality.</p>

<p>When we look around, we can see:</p>
<ul>
<li>Nature</li>
<li>Animals</li>
<li>People</li>
<li>Houses</li>
<li>Cars</li>
<li>and much more</li>
</ul>

<p>Is this Virtual Reality real?</p>

<p>In Metaphysics, the questions is:</p>
<ul>
<li>What is real?</li>
<li>Is what we see real?</li>
<li>Is there more than we see?</li>
<li>Is there more than we sence?</li>
<li>Is there something else?</li>
<li>Is there something more?</li>
<li>Is there another dimension?</li>
</ul>
</div>

</body>
Try it Yourself »

Add a Link to Chapter 1

<body>

<h1>Philosopy</h1>
<h3>Table of Contents</h3>

<p><a href="philosophy_chapter1.htm">1. Metaphysics</a></p>
<p>2. Epistemology</p>
<p>3. Logics</p>
<p>4. Ethics</p>
<p>5. Aesthetics</p>

</body>
Try it Yourself »

In the example above, we named the first chapter of the book:

"philosophy_chapter1.htm".

The name to use is up to you. Maybe it should be called "Metaphysics".

Anyway, continue as above and create the other chapters:

"philosophy_chaper2.htm"
"philosophy_chaper3.htm"
"philosophy_chaper4.htm"
"philosophy_chaper5.htm"


Add a Link to Each Chapter

<body>

<h1>Philosopy</h1>
<h3>Table of Contents</h3>

<p>
<a href="philosophy_chapter1.htm">1. Metaphysics</a>
</p>

<p>
<a href="philosophy_chapter2.htm">2. Epistemology</a>
</p>

<p>
<a href="philosophy_chapter3.htm">3. Logics</a>
</p>

<p>
<a href="philosophy_chapter5.htm">4. Ethics</a>
</p>

<p>
<a href="philosophy_chapter4.htm">5. Aesthetics</a>
</p>

</body>
Try it Yourself »


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp